2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="src/"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
723 # include <sys/types.h>
726 # include <sys/stat.h>
737 # if !STDC_HEADERS && HAVE_MEMORY_H
743 # include <strings.h>
746 # include <inttypes.h>
764 program_transform_name
857 ac_precious_vars='build_alias
873 # Initialize some variables set by options.
875 ac_init_version=false
876 # The variables have the same names as the options, with
877 # dashes changed to underlines.
885 program_transform_name=s,x,x,
893 # Installation directory options.
894 # These are left unexpanded so users can "make install exec_prefix=/foo"
895 # and all the variables that are supposed to be based on exec_prefix
896 # by default will actually change.
897 # Use braces instead of parens because sh, perl, etc. also accept them.
898 # (The list follows the same order as the GNU Coding Standards.)
899 bindir='${exec_prefix}/bin'
900 sbindir='${exec_prefix}/sbin'
901 libexecdir='${exec_prefix}/libexec'
902 datarootdir='${prefix}/share'
903 datadir='${datarootdir}'
904 sysconfdir='${prefix}/etc'
905 sharedstatedir='${prefix}/com'
906 localstatedir='${prefix}/var'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE}'
910 infodir='${datarootdir}/info'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 # Accept the important Cygnus configure options, so we can diagnose typos.
937 case $ac_dashdash$ac_option in
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946 -build | --build | --buil | --bui | --bu)
947 ac_prev=build_alias ;;
948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949 build_alias=$ac_optarg ;;
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956 cache_file=$ac_optarg ;;
959 cache_file=config.cache ;;
961 -datadir | --datadir | --datadi | --datad)
963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
964 datadir=$ac_optarg ;;
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
973 -disable-* | --disable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980 eval enable_$ac_feature=no ;;
982 -docdir | --docdir | --docdi | --doc | --do)
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
992 -enable-* | --enable-*)
993 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
996 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
997 { (exit 1); exit 1; }; }
998 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
999 eval enable_$ac_feature=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148 sbindir=$ac_optarg ;;
1150 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1151 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1152 | --sharedst | --shareds | --shared | --share | --shar \
1154 ac_prev=sharedstatedir ;;
1155 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1156 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1157 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159 sharedstatedir=$ac_optarg ;;
1161 -site | --site | --sit)
1163 -site=* | --site=* | --sit=*)
1166 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1169 srcdir=$ac_optarg ;;
1171 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1172 | --syscon | --sysco | --sysc | --sys | --sy)
1173 ac_prev=sysconfdir ;;
1174 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1175 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1176 sysconfdir=$ac_optarg ;;
1178 -target | --target | --targe | --targ | --tar | --ta | --t)
1179 ac_prev=target_alias ;;
1180 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1181 target_alias=$ac_optarg ;;
1183 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1186 -version | --version | --versio | --versi | --vers | -V)
1187 ac_init_version=: ;;
1190 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid package name: $ac_package" >&2
1194 { (exit 1); exit 1; }; }
1195 ac_package=`echo $ac_package| sed 's/-/_/g'`
1196 eval with_$ac_package=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid package name: $ac_package" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_package=`echo $ac_package | sed 's/-/_/g'`
1205 eval with_$ac_package=no ;;
1208 # Obsolete; use --with-x.
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216 x_includes=$ac_optarg ;;
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223 x_libraries=$ac_optarg ;;
1225 -*) { echo "$as_me: error: unrecognized option: $ac_option
1226 Try \`$0 --help' for more information." >&2
1227 { (exit 1); exit 1; }; }
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1234 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1235 { (exit 1); exit 1; }; }
1236 eval $ac_envvar=\$ac_optarg
1237 export $ac_envvar ;;
1240 # FIXME: should be removed in autoconf 3.0.
1241 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250 if test -n "$ac_prev"; then
1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252 { echo "$as_me: error: missing argument to $ac_option" >&2
1253 { (exit 1); exit 1; }; }
1256 # Be sure to have absolute directory names.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1262 eval ac_val=\$$ac_var
1264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1268 { (exit 1); exit 1; }; }
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1276 target=$target_alias
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280 if test "x$build_alias" = x; then
1281 cross_compiling=maybe
1282 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1283 If a cross compiler is detected then cross compile mode will be used." >&2
1284 elif test "x$build_alias" != "x$host_alias"; then
1290 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292 test "$silent" = yes && exec 6>/dev/null
1295 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 { echo "$as_me: error: Working directory cannot be determined" >&2
1299 { (exit 1); exit 1; }; }
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 { echo "$as_me: error: pwd does not report name of working directory" >&2
1302 { (exit 1); exit 1; }; }
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$0" ||
1310 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$0" : 'X\(//\)[^/]' \| \
1312 X"$0" : 'X\(//\)$' \| \
1313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1337 ac_srcdir_defaulted=no
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1342 { (exit 1); exit 1; }; }
1344 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1347 { (exit 1); exit 1; }; }
1349 # When building in place, set srcdir=.
1350 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 # Remove unnecessary trailing slashes from srcdir.
1354 # Double slashes in file names in object file debugging info
1355 # mess up M-x gdb in Emacs.
1357 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 \`configure' configures this package to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1442 if test -n "$ac_init_help"; then
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-checkmem turn on ccmalloc debugging
1450 --enable-debug turn on debugging
1451 --enable-profiling turn on profiling
1452 --enable-warnings turn on compiler warnings
1453 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1454 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1467 --with-tags[=TAGS] include additional configurations [automatic]
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CXX C++ compiler command
1477 CXXFLAGS C++ compiler flags
1479 CXXCPP C++ preprocessor
1480 F77 Fortran 77 compiler command
1481 FFLAGS Fortran 77 compiler flags
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" || continue
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1547 generated by GNU Autoconf 2.60
1549 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1550 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1551 This configure script is free software; the Free Software Foundation
1552 gives unlimited permission to copy, distribute and modify it.
1556 cat >config.log <<_ACEOF
1557 This file contains any messages produced by compilers while
1558 running configure, to aid debugging if configure makes a mistake.
1560 It was created by $as_me, which was
1561 generated by GNU Autoconf 2.60. Invocation command line was
1573 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1574 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1575 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1576 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1577 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1579 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1580 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1582 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1583 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1584 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1585 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1586 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1587 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1588 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 test -z "$as_dir" && as_dir=.
1597 echo "PATH: $as_dir"
1613 # Keep a trace of the command line.
1614 # Strip out --no-create and --no-recursion so they do not pile up.
1615 # Strip out --silent because we don't want to record it for future runs.
1616 # Also quote any args containing shell meta-characters.
1617 # Make two passes to allow for proper duplicate-argument suppression.
1621 ac_must_keep_next=false
1627 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1628 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1629 | -silent | --silent | --silen | --sile | --sil)
1632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1635 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1637 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1638 if test $ac_must_keep_next = true; then
1639 ac_must_keep_next=false # Got value, back to normal.
1642 *=* | --config-cache | -C | -disable-* | --disable-* \
1643 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1644 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1645 | -with-* | --with-* | -without-* | --without-* | --x)
1646 case "$ac_configure_args0 " in
1647 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1650 -* ) ac_must_keep_next=true ;;
1653 ac_configure_args="$ac_configure_args '$ac_arg'"
1658 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1659 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1661 # When interrupted or exit'd, cleanup temporary files, and complete
1662 # config.log. We remove comments because anyway the quotes in there
1663 # would cause problems or look ugly.
1664 # WARNING: Use '\'' to represent an apostrophe within the trap.
1665 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1666 trap 'exit_status=$?
1667 # Save into config.log some information that might help in debugging.
1672 ## ---------------- ##
1673 ## Cache variables. ##
1674 ## ---------------- ##
1677 # The following way of writing the cache mishandles newlines in values,
1679 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1680 eval ac_val=\$$ac_var
1684 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1685 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1688 _ | IFS | as_nl) ;; #(
1689 *) $as_unset $ac_var ;;
1694 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1695 *${as_nl}ac_space=\ *)
1697 "s/'\''/'\''\\\\'\'''\''/g;
1698 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1701 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1709 ## ----------------- ##
1710 ## Output variables. ##
1711 ## ----------------- ##
1714 for ac_var in $ac_subst_vars
1716 eval ac_val=\$$ac_var
1718 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 echo "$ac_var='\''$ac_val'\''"
1724 if test -n "$ac_subst_files"; then
1726 ## ------------------- ##
1727 ## File substitutions. ##
1728 ## ------------------- ##
1731 for ac_var in $ac_subst_files
1733 eval ac_val=\$$ac_var
1735 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737 echo "$ac_var='\''$ac_val'\''"
1742 if test -s confdefs.h; then
1752 test "$ac_signal" != 0 &&
1753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
1756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 for ac_signal in 1 2 13 15; do
1761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798 set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
1808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1823 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1824 *) . "./$cache_file";;
1828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1833 # Check that the precious variables saved in the cache have kept the same
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856 echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858 echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 *) ac_arg=$ac_var=$ac_new_val ;;
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 if $ac_cache_corrupted; then
1875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 # Check whether --enable-checkmem was given.
1908 if test "${enable_checkmem+set}" = set; then
1909 enableval=$enable_checkmem; CHECKMEM=true
1912 # Check whether --enable-debug was given.
1913 if test "${enable_debug+set}" = set; then
1914 enableval=$enable_debug; DEBUG=true
1917 # Check whether --enable-profiling was given.
1918 if test "${enable_profiling+set}" = set; then
1919 enableval=$enable_profiling; PROFILING=true
1922 # Check whether --enable-warnings was given.
1923 if test "${enable_warnings+set}" = set; then
1924 enableval=$enable_warnings; ENABLE_WARNINGS=true
1927 # Check whether --enable-optimizations was given.
1928 if test "${enable_optimizations+set}" = set; then
1929 enableval=$enable_optimizations; OPTIMIZE=true
1932 # Check whether --enable-lame was given.
1933 if test "${enable_lame+set}" = set; then
1934 enableval=$enable_lame; DISABLE_LAME=true
1939 VERSION=2006-11-05-2341
1942 # ------------------------------------------------------------------
1944 if test "x${srcdir}" != "x."; then
1945 echo "--srcdir is not supported"
1949 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1950 if test "x$ENABLE_WARNINGS" '!=' "x";then
1951 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls"
1954 if test "x$CHECKMEM" '!=' "x";then
1957 if test "x$PROFILING" '!=' "x";then
1960 if test "x$DEBUG" '!=' "x";then
1961 if test "x$PROFILING" = "x";then
1962 CFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CFLAGS"
1963 CXXFLAGS="$WARNINGS -O2 -g -D_FORTIFY_SOURCE=2 $CXXFLAGS"
1965 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1966 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1967 LDFLAGS="-g -pg $LIBS"
1969 else if test "x$OPTIMIZE" '!=' "x"; then
1970 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1971 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1973 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1974 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1978 #if test "x$OLDGCC" '!=' "x";then
1979 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1980 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1981 # CFLAGS="$CFLAGS -ansi -pendantic"
1982 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1985 export PACKAGE VERSION CFLAGS CXXFLAGS
1989 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1990 if test -f "$ac_dir/install-sh"; then
1992 ac_install_sh="$ac_aux_dir/install-sh -c"
1994 elif test -f "$ac_dir/install.sh"; then
1996 ac_install_sh="$ac_aux_dir/install.sh -c"
1998 elif test -f "$ac_dir/shtool"; then
2000 ac_install_sh="$ac_aux_dir/shtool install -c"
2004 if test -z "$ac_aux_dir"; then
2005 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2006 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2007 { (exit 1); exit 1; }; }
2010 # These three variables are undocumented and unsupported,
2011 # and are intended to be withdrawn in a future Autoconf release.
2012 # They can cause serious problems if a builder's source tree is in a directory
2013 # whose full name contains unusual characters.
2014 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2015 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2016 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2021 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023 { (exit 1); exit 1; }; }
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 ac_build_alias=$build_alias
2031 test "x$ac_build_alias" = x &&
2032 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x &&
2034 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036 { (exit 1); exit 1; }; }
2037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049 { (exit 1); exit 1; }; };;
2052 ac_save_IFS=$IFS; IFS='-'
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test "x$host_alias" = x; then
2071 ac_cv_host=$ac_cv_build
2073 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086 { (exit 1); exit 1; }; };;
2089 ac_save_IFS=$IFS; IFS='-'
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2109 CXXFLAGS="$CXXFLAGS -fno-rtti"
2111 # Use fink packages if available.
2112 #if test -d /sw/include && test -d /sw/lib; then
2113 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2114 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2122 ac_cpp='$CPP $CPPFLAGS'
2123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test -n "$CC"; then
2135 ac_cv_prog_CC="$CC" # Let the user override the test.
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 if test -n "$CC"; then
2156 { echo "$as_me:$LINENO: result: $CC" >&5
2157 echo "${ECHO_T}$CC" >&6; }
2159 { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2165 if test -z "$ac_cv_prog_CC"; then
2167 # Extract the first word of "gcc", so it can be a program name with args.
2168 set dummy gcc; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 if test -n "$ac_ct_CC"; then
2175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_ac_ct_CC="gcc"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6; }
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2203 if test "x$ac_ct_CC" = x; then
2206 case $cross_compiling:$ac_tool_warned in
2208 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2209 whose name does not start with the host triplet. If you think this
2210 configuration is useful to you, please write to autoconf@gnu.org." >&5
2211 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2212 whose name does not start with the host triplet. If you think this
2213 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2214 ac_tool_warned=yes ;;
2222 if test -z "$CC"; then
2223 if test -n "$ac_tool_prefix"; then
2224 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2225 set dummy ${ac_tool_prefix}cc; ac_word=$2
2226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
2240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2241 ac_cv_prog_CC="${ac_tool_prefix}cc"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252 if test -n "$CC"; then
2253 { echo "$as_me:$LINENO: result: $CC" >&5
2254 echo "${ECHO_T}$CC" >&6; }
2256 { echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6; }
2263 if test -z "$CC"; then
2264 # Extract the first word of "cc", so it can be a program name with args.
2265 set dummy cc; ac_word=$2
2266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2268 if test "${ac_cv_prog_CC+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 if test -n "$CC"; then
2272 ac_cv_prog_CC="$CC" # Let the user override the test.
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 test -z "$as_dir" && as_dir=.
2280 for ac_exec_ext in '' $ac_executable_extensions; do
2281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2282 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2283 ac_prog_rejected=yes
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test $ac_prog_rejected = yes; then
2295 # We found a bogon in the path, so make sure we never use it.
2296 set dummy $ac_cv_prog_CC
2298 if test $# != 0; then
2299 # We chose a different compiler from the bogus one.
2300 # However, it has the same basename, so the bogon will be chosen
2301 # first if we set CC to just the basename; use the full file name.
2303 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2309 if test -n "$CC"; then
2310 { echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2319 if test -z "$CC"; then
2320 if test -n "$ac_tool_prefix"; then
2321 for ac_prog in cl.exe
2323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$CC"; then
2352 { echo "$as_me:$LINENO: result: $CC" >&5
2353 echo "${ECHO_T}$CC" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2360 test -n "$CC" && break
2363 if test -z "$CC"; then
2365 for ac_prog in cl.exe
2367 # Extract the first word of "$ac_prog", so it can be a program name with args.
2368 set dummy $ac_prog; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$ac_ct_CC"; then
2375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2384 ac_cv_prog_ac_ct_CC="$ac_prog"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2395 if test -n "$ac_ct_CC"; then
2396 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2397 echo "${ECHO_T}$ac_ct_CC" >&6; }
2399 { echo "$as_me:$LINENO: result: no" >&5
2400 echo "${ECHO_T}no" >&6; }
2404 test -n "$ac_ct_CC" && break
2407 if test "x$ac_ct_CC" = x; then
2410 case $cross_compiling:$ac_tool_warned in
2412 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2413 whose name does not start with the host triplet. If you think this
2414 configuration is useful to you, please write to autoconf@gnu.org." >&5
2415 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet. If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2418 ac_tool_warned=yes ;;
2427 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: no acceptable C compiler found in \$PATH
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO: checking for C compiler version" >&5
2435 ac_compiler=`set X $ac_compile; echo $2`
2436 { (ac_try="$ac_compiler --version >&5"
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_compiler --version >&5") 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }
2446 { (ac_try="$ac_compiler -v >&5"
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_compiler -v >&5") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }
2456 { (ac_try="$ac_compiler -V >&5"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2462 (eval "$ac_compiler -V >&5") 2>&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }
2467 cat >conftest.$ac_ext <<_ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h. */
2482 ac_clean_files_save=$ac_clean_files
2483 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2484 # Try to create an executable without -o first, disregard a.out.
2485 # It will help us diagnose broken compilers, and finding out an intuition
2487 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2488 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2489 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2491 # List of possible output files, starting from the most likely.
2492 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2493 # only as a last resort. b.out is created by i960 compilers.
2494 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2496 # The IRIX 6 linker writes into existing files which may not be
2497 # executable, retaining their permissions. Remove them first so a
2498 # subsequent execution test works.
2500 for ac_file in $ac_files
2503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2504 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2509 if { (ac_try="$ac_link_default"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_link_default") 2>&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; then
2519 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2520 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2521 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2522 # so that the user can short-circuit this test for compilers unknown to
2524 for ac_file in $ac_files
2526 test -f "$ac_file" || continue
2528 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2531 # We found the default executable, but exeext='' is most
2535 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2537 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2539 # We set ac_cv_exeext here because the later test for it is not
2540 # safe: cross compilers may not add the suffix if given an `-o'
2541 # argument, so we may need to know it at that point already.
2542 # Even if this section looks crufty: it has the advantage of
2549 test "$ac_cv_exeext" = no && ac_cv_exeext=
2552 echo "$as_me: failed program was:" >&5
2553 sed 's/^/| /' conftest.$ac_ext >&5
2555 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: C compiler cannot create executables
2558 See \`config.log' for more details." >&2;}
2559 { (exit 77); exit 77; }; }
2562 ac_exeext=$ac_cv_exeext
2563 { echo "$as_me:$LINENO: result: $ac_file" >&5
2564 echo "${ECHO_T}$ac_file" >&6; }
2566 # Check that the compiler produces executables we can run. If not, either
2567 # the compiler is broken, or we cross compile.
2568 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2569 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2570 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2571 # If not cross compiling, check that we can run a simple program.
2572 if test "$cross_compiling" != yes; then
2573 if { ac_try='./$ac_file'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; }; then
2585 if test "$cross_compiling" = maybe; then
2588 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2589 If you meant to cross compile, use \`--host'.
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&2;}
2594 { (exit 1); exit 1; }; }
2598 { echo "$as_me:$LINENO: result: yes" >&5
2599 echo "${ECHO_T}yes" >&6; }
2601 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2602 ac_clean_files=$ac_clean_files_save
2603 # Check that the compiler produces executables we can run. If not, either
2604 # the compiler is broken, or we cross compile.
2605 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2606 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2607 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2608 echo "${ECHO_T}$cross_compiling" >&6; }
2610 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2611 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2612 if { (ac_try="$ac_link"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_link") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2624 # work properly (i.e., refer to `conftest.exe'), while it won't with
2626 for ac_file in conftest.exe conftest conftest.*; do
2627 test -f "$ac_file" || continue
2629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2643 rm -f conftest$ac_cv_exeext
2644 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2645 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2647 rm -f conftest.$ac_ext
2648 EXEEXT=$ac_cv_exeext
2650 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2651 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2652 if test "${ac_cv_objext+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.o conftest.obj
2671 if { (ac_try="$ac_compile"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }; then
2681 for ac_file in conftest.o conftest.obj conftest.*; do
2682 test -f "$ac_file" || continue;
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2685 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2702 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2703 echo "${ECHO_T}$ac_cv_objext" >&6; }
2704 OBJEXT=$ac_cv_objext
2706 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 cat >conftest.$ac_ext <<_ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; } &&
2753 { ac_try='test -s conftest.$ac_objext'
2754 { (case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_try") 2>&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; }; then
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2776 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2777 GCC=`test $ac_compiler_gnu = yes && echo yes`
2778 ac_test_CFLAGS=${CFLAGS+set}
2779 ac_save_CFLAGS=$CFLAGS
2780 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2781 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_cc_g+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 ac_save_c_werror_flag=$ac_c_werror_flag
2786 ac_c_werror_flag=yes
2789 cat >conftest.$ac_ext <<_ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2804 rm -f conftest.$ac_objext
2805 if { (ac_try="$ac_compile"
2807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808 *) ac_try_echo=$ac_try;;
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811 (eval "$ac_compile") 2>conftest.er1
2813 grep -v '^ *+' conftest.er1 >conftest.err
2815 cat conftest.err >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); } &&
2818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2819 { (case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_try") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; } &&
2828 { ac_try='test -s conftest.$ac_objext'
2829 { (case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834 (eval "$ac_try") 2>&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2844 cat >conftest.$ac_ext <<_ACEOF
2847 cat confdefs.h >>conftest.$ac_ext
2848 cat >>conftest.$ac_ext <<_ACEOF
2849 /* end confdefs.h. */
2859 rm -f conftest.$ac_objext
2860 if { (ac_try="$ac_compile"
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_compile") 2>conftest.er1
2868 grep -v '^ *+' conftest.er1 >conftest.err
2870 cat conftest.err >&5
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); } &&
2873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2874 { (case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2879 (eval "$ac_try") 2>&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; } &&
2883 { ac_try='test -s conftest.$ac_objext'
2884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2898 ac_c_werror_flag=$ac_save_c_werror_flag
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2915 rm -f conftest.$ac_objext
2916 if { (ac_try="$ac_compile"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compile") 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } &&
2929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2930 { (case "(($ac_try" in
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_try") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_try") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964 ac_c_werror_flag=$ac_save_c_werror_flag
2966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2968 if test "$ac_test_CFLAGS" = set; then
2969 CFLAGS=$ac_save_CFLAGS
2970 elif test $ac_cv_prog_cc_g = yes; then
2971 if test "$GCC" = yes; then
2977 if test "$GCC" = yes; then
2983 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2984 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_cc_c89+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 ac_cv_prog_cc_c89=no
2990 cat >conftest.$ac_ext <<_ACEOF
2993 cat confdefs.h >>conftest.$ac_ext
2994 cat >>conftest.$ac_ext <<_ACEOF
2995 /* end confdefs.h. */
2998 #include <sys/types.h>
2999 #include <sys/stat.h>
3000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3001 struct buf { int x; };
3002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3003 static char *e (p, i)
3009 static char *f (char * (*g) (char **, int), char **p, ...)
3014 s = g (p, va_arg (v,int));
3019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3020 function prototypes and stuff, but not '\xHH' hex character constants.
3021 These don't provoke an error unfortunately, instead are silently treated
3022 as 'x'. The following induces an error, until -std is added to get
3023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3024 array size at least. It's necessary to write '\x00'==0 to get something
3025 that's true only with -std. */
3026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3029 inside strings and character constants. */
3031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3033 int test (int i, double x);
3034 struct s1 {int (*f) (int a);};
3035 struct s2 {int (*f) (double a);};
3036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3050 CC="$ac_save_CC $ac_arg"
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3060 grep -v '^ *+' conftest.er1 >conftest.err
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } &&
3065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3066 { (case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_try") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; } &&
3075 { ac_try='test -s conftest.$ac_objext'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; }; then
3085 ac_cv_prog_cc_c89=$ac_arg
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3093 rm -f core conftest.err conftest.$ac_objext
3094 test "x$ac_cv_prog_cc_c89" != "xno" && break
3096 rm -f conftest.$ac_ext
3101 case "x$ac_cv_prog_cc_c89" in
3103 { echo "$as_me:$LINENO: result: none needed" >&5
3104 echo "${ECHO_T}none needed" >&6; } ;;
3106 { echo "$as_me:$LINENO: result: unsupported" >&5
3107 echo "${ECHO_T}unsupported" >&6; } ;;
3109 CC="$CC $ac_cv_prog_cc_c89"
3110 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3111 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3116 ac_cpp='$CPP $CPPFLAGS'
3117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 ac_cpp='$CXXCPP $CPPFLAGS'
3123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3126 if test -z "$CXX"; then
3127 if test -n "$CCC"; then
3130 if test -n "$ac_tool_prefix"; then
3131 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3137 if test "${ac_cv_prog_CXX+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 if test -n "$CXX"; then
3141 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 if test -n "$CXX"; then
3162 { echo "$as_me:$LINENO: result: $CXX" >&5
3163 echo "${ECHO_T}$CXX" >&6; }
3165 { echo "$as_me:$LINENO: result: no" >&5
3166 echo "${ECHO_T}no" >&6; }
3170 test -n "$CXX" && break
3173 if test -z "$CXX"; then
3175 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3177 # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$ac_ct_CXX"; then
3185 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_ac_ct_CXX="$ac_prog"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3205 if test -n "$ac_ct_CXX"; then
3206 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3207 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3214 test -n "$ac_ct_CXX" && break
3217 if test "x$ac_ct_CXX" = x; then
3220 case $cross_compiling:$ac_tool_warned in
3222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet. If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&5
3225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3226 whose name does not start with the host triplet. If you think this
3227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3228 ac_tool_warned=yes ;;
3236 # Provide some information about the compiler.
3237 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3238 ac_compiler=`set X $ac_compile; echo $2`
3239 { (ac_try="$ac_compiler --version >&5"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_compiler --version >&5") 2>&5
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }
3249 { (ac_try="$ac_compiler -v >&5"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compiler -v >&5") 2>&5
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }
3259 { (ac_try="$ac_compiler -V >&5"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compiler -V >&5") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3270 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3271 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3272 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 cat >conftest.$ac_ext <<_ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3293 rm -f conftest.$ac_objext
3294 if { (ac_try="$ac_compile"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
3302 grep -v '^ *+' conftest.er1 >conftest.err
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
3307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
3318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_try") 2>&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3339 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3340 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3341 GXX=`test $ac_compiler_gnu = yes && echo yes`
3342 ac_test_CXXFLAGS=${CXXFLAGS+set}
3343 ac_save_CXXFLAGS=$CXXFLAGS
3344 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3345 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3346 if test "${ac_cv_prog_cxx_g+set}" = set; then
3347 echo $ECHO_N "(cached) $ECHO_C" >&6
3349 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3350 ac_cxx_werror_flag=yes
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3368 rm -f conftest.$ac_objext
3369 if { (ac_try="$ac_compile"
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_compile") 2>conftest.er1
3377 grep -v '^ *+' conftest.er1 >conftest.err
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3383 { (case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_try") 2>&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); }; } &&
3392 { ac_try='test -s conftest.$ac_objext'
3393 { (case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_try") 2>&5
3400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401 (exit $ac_status); }; }; then
3402 ac_cv_prog_cxx_g=yes
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3408 cat >conftest.$ac_ext <<_ACEOF
3411 cat confdefs.h >>conftest.$ac_ext
3412 cat >>conftest.$ac_ext <<_ACEOF
3413 /* end confdefs.h. */
3423 rm -f conftest.$ac_objext
3424 if { (ac_try="$ac_compile"
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_compile") 2>conftest.er1
3432 grep -v '^ *+' conftest.er1 >conftest.err
3434 cat conftest.err >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
3437 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3438 { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); }; } &&
3447 { ac_try='test -s conftest.$ac_objext'
3448 { (case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453 (eval "$ac_try") 2>&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3488 grep -v '^ *+' conftest.er1 >conftest.err
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } &&
3493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3494 { (case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_try") 2>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; } &&
3503 { ac_try='test -s conftest.$ac_objext'
3504 { (case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509 (eval "$ac_try") 2>&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_cv_prog_cxx_g=yes
3515 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_cxx_werror_flag=$ac_save_cxx_werror_flag
3530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3532 if test "$ac_test_CXXFLAGS" = set; then
3533 CXXFLAGS=$ac_save_CXXFLAGS
3534 elif test $ac_cv_prog_cxx_g = yes; then
3535 if test "$GXX" = yes; then
3541 if test "$GXX" = yes; then
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3557 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3559 cat > conftest.c << EOF
3563 int main (int argc, char*argv)
3573 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3574 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3575 { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3580 echo "configure: failed program was:" >&5
3582 { echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6; }
3588 if test "x$GCC_IS_OK" '=' "x";then
3589 echo "***************************************************"
3590 echo "* Your gcc is too old to compile this!"
3592 echo "* The last version compilable by this compiler is "
3593 echo "* swftools 0.7.0, which you can download from "
3594 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3596 echo "* Newer versions require at least gcc 3.0.0 "
3597 echo "***************************************************"
3601 if test "x$CHECKMEM" '!=' "x";then
3605 #unset ac_cv_prog_CC
3606 #unset ac_cv_prog_CXX
3611 ac_cpp='$CPP $CPPFLAGS'
3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3616 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3617 # On Suns, sometimes $CPP names a directory.
3618 if test -n "$CPP" && test -d "$CPP"; then
3621 if test -z "$CPP"; then
3622 if test "${ac_cv_prog_CPP+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3625 # Double quotes because CPP needs to be expanded
3626 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3629 for ac_c_preproc_warn_flag in '' yes
3631 # Use a header file that comes with gcc, so configuring glibc
3632 # with a fresh cross-compiler works.
3633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3634 # <limits.h> exists even on freestanding compilers.
3635 # On the NeXT, cc -E runs the code through the compiler's parser,
3636 # not just through cpp. "Syntax error" is here to catch this case.
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3644 # include <limits.h>
3646 # include <assert.h>
3650 if { (ac_try="$ac_cpp conftest.$ac_ext"
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } >/dev/null; then
3663 if test -s conftest.err; then
3664 ac_cpp_err=$ac_c_preproc_warn_flag
3665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3672 if test -z "$ac_cpp_err"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3678 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3694 if { (ac_try="$ac_cpp conftest.$ac_ext"
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3716 if test -z "$ac_cpp_err"; then
3717 # Broken: success on invalid input.
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3723 # Passes both tests.
3728 rm -f conftest.err conftest.$ac_ext
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3745 { echo "$as_me:$LINENO: result: $CPP" >&5
3746 echo "${ECHO_T}$CPP" >&6; }
3748 for ac_c_preproc_warn_flag in '' yes
3750 # Use a header file that comes with gcc, so configuring glibc
3751 # with a fresh cross-compiler works.
3752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 # <limits.h> exists even on freestanding compilers.
3754 # On the NeXT, cc -E runs the code through the compiler's parser,
3755 # not just through cpp. "Syntax error" is here to catch this case.
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3763 # include <limits.h>
3765 # include <assert.h>
3769 if { (ac_try="$ac_cpp conftest.$ac_ext"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } >/dev/null; then
3782 if test -s conftest.err; then
3783 ac_cpp_err=$ac_c_preproc_warn_flag
3784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3791 if test -z "$ac_cpp_err"; then
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 # Broken: fails on valid input.
3801 rm -f conftest.err conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether nonexistent headers
3804 # can be detected and how.
3805 cat >conftest.$ac_ext <<_ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 #include <ac_nonexistent.h>
3813 if { (ac_try="$ac_cpp conftest.$ac_ext"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3821 grep -v '^ *+' conftest.er1 >conftest.err
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } >/dev/null; then
3826 if test -s conftest.err; then
3827 ac_cpp_err=$ac_c_preproc_warn_flag
3828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3835 if test -z "$ac_cpp_err"; then
3836 # Broken: success on invalid input.
3839 echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3842 # Passes both tests.
3847 rm -f conftest.err conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3855 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859 { (exit 1); exit 1; }; }
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3874 if test "${ac_cv_prog_RANLIB+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 if test -n "$RANLIB"; then
3878 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3887 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 RANLIB=$ac_cv_prog_RANLIB
3898 if test -n "$RANLIB"; then
3899 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3900 echo "${ECHO_T}$RANLIB" >&6; }
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3908 if test -z "$ac_cv_prog_RANLIB"; then
3909 ac_ct_RANLIB=$RANLIB
3910 # Extract the first word of "ranlib", so it can be a program name with args.
3911 set dummy ranlib; ac_word=$2
3912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 if test -n "$ac_ct_RANLIB"; then
3918 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3927 ac_cv_prog_ac_ct_RANLIB="ranlib"
3928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3938 if test -n "$ac_ct_RANLIB"; then
3939 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3940 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3942 { echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6; }
3946 if test "x$ac_ct_RANLIB" = x; then
3949 case $cross_compiling:$ac_tool_warned in
3951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3952 whose name does not start with the host triplet. If you think this
3953 configuration is useful to you, please write to autoconf@gnu.org." >&5
3954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3955 whose name does not start with the host triplet. If you think this
3956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3957 ac_tool_warned=yes ;;
3959 RANLIB=$ac_ct_RANLIB
3962 RANLIB="$ac_cv_prog_RANLIB"
3965 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3966 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3967 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3968 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 cat >conftest.make <<\_ACEOF
3974 @echo '@@@%%%=$(MAKE)=@@@%%%'
3976 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3977 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3979 eval ac_cv_prog_make_${ac_make}_set=yes;;
3981 eval ac_cv_prog_make_${ac_make}_set=no;;
3985 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3986 { echo "$as_me:$LINENO: result: yes" >&5
3987 echo "${ECHO_T}yes" >&6; }
3990 { echo "$as_me:$LINENO: result: no" >&5
3991 echo "${ECHO_T}no" >&6; }
3992 SET_MAKE="MAKE=${MAKE-make}"
3995 # Find a good install program. We prefer a C program (faster),
3996 # so one script is as good as another. But avoid the broken or
3997 # incompatible versions:
3998 # SysV /etc/install, /usr/sbin/install
3999 # SunOS /usr/etc/install
4000 # IRIX /sbin/install
4002 # AmigaOS /C/install, which installs bootblocks on floppy discs
4003 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4004 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4005 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4006 # OS/2's system install, which has a completely different semantic
4007 # ./install, which can be erroneously created by make from ./install.sh.
4008 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4009 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4010 if test -z "$INSTALL"; then
4011 if test "${ac_cv_path_install+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 # Account for people who put trailing slashes in PATH elements.
4021 ./ | .// | /cC/* | \
4022 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4023 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4026 # OSF1 and SCO ODT 3.0 have their own names for install.
4027 # Don't use installbsd from OSF since it installs stuff as root
4029 for ac_prog in ginstall scoinst install; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4032 if test $ac_prog = install &&
4033 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4034 # AIX install. It has an incompatible calling convention.
4036 elif test $ac_prog = install &&
4037 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4038 # program-specific install script used by HP pwplus--don't use.
4041 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4054 if test "${ac_cv_path_install+set}" = set; then
4055 INSTALL=$ac_cv_path_install
4057 # As a last resort, use the slow shell script. Don't cache a
4058 # value for INSTALL within a source directory, because that will
4059 # break other packages using the cache if that directory is
4060 # removed, or if the value is a relative name.
4061 INSTALL=$ac_install_sh
4064 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4065 echo "${ECHO_T}$INSTALL" >&6; }
4067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4068 # It thinks the first close brace ends the variable substitution.
4069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4075 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4078 if test "$LN_S" = "ln -s"; then
4079 { echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6; }
4082 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4083 echo "${ECHO_T}no, using $LN_S" >&6; }
4086 # Check whether --enable-shared was given.
4087 if test "${enable_shared+set}" = set; then
4088 enableval=$enable_shared; p=${PACKAGE-default}
4090 yes) enable_shared=yes ;;
4091 no) enable_shared=no ;;
4094 # Look at the argument we got. We use all the common list separators.
4095 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4096 for pkg in $enableval; do
4098 if test "X$pkg" = "X$p"; then
4110 # Check whether --enable-static was given.
4111 if test "${enable_static+set}" = set; then
4112 enableval=$enable_static; p=${PACKAGE-default}
4114 yes) enable_static=yes ;;
4115 no) enable_static=no ;;
4118 # Look at the argument we got. We use all the common list separators.
4119 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4120 for pkg in $enableval; do
4122 if test "X$pkg" = "X$p"; then
4134 # Check whether --enable-fast-install was given.
4135 if test "${enable_fast_install+set}" = set; then
4136 enableval=$enable_fast_install; p=${PACKAGE-default}
4138 yes) enable_fast_install=yes ;;
4139 no) enable_fast_install=no ;;
4141 enable_fast_install=no
4142 # Look at the argument we got. We use all the common list separators.
4143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4144 for pkg in $enableval; do
4146 if test "X$pkg" = "X$p"; then
4147 enable_fast_install=yes
4154 enable_fast_install=yes
4158 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4159 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4160 if test "${lt_cv_path_SED+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4163 # Loop through the user's path and test for sed and gsed.
4164 # Then use that list of sed's as ones to test for truncation.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for lt_ac_prog in sed gsed; do
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4173 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4180 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4181 # along with /bin/sed that truncates output.
4182 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4183 test ! -f $lt_ac_sed && continue
4184 cat /dev/null > conftest.in
4186 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4187 # Check for GNU sed and select it if it is found.
4188 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4189 lt_cv_path_SED=$lt_ac_sed
4193 cat conftest.in conftest.in >conftest.tmp
4194 mv conftest.tmp conftest.in
4195 cp conftest.in conftest.nl
4197 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4198 cmp -s conftest.out conftest.nl || break
4199 # 10000 chars as input seems more than enough
4200 test $lt_ac_count -gt 10 && break
4201 lt_ac_count=`expr $lt_ac_count + 1`
4202 if test $lt_ac_count -gt $lt_ac_max; then
4203 lt_ac_max=$lt_ac_count
4204 lt_cv_path_SED=$lt_ac_sed
4212 { echo "$as_me:$LINENO: result: $SED" >&5
4213 echo "${ECHO_T}$SED" >&6; }
4215 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4216 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4217 if test "${ac_cv_path_GREP+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 # Extract the first word of "grep ggrep" to use in msg output
4221 if test -z "$GREP"; then
4222 set dummy grep ggrep; ac_prog_name=$2
4223 if test "${ac_cv_path_GREP+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 ac_path_GREP_found=false
4227 # Loop through the user's path and test for each of PROGNAME-LIST
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 test -z "$as_dir" && as_dir=.
4233 for ac_prog in grep ggrep; do
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4236 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4237 # Check for GNU ac_path_GREP and select it if it is found.
4238 # Check for GNU $ac_path_GREP
4239 case `"$ac_path_GREP" --version 2>&1` in
4241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4244 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4247 cat "conftest.in" "conftest.in" >"conftest.tmp"
4248 mv "conftest.tmp" "conftest.in"
4249 cp "conftest.in" "conftest.nl"
4250 echo 'GREP' >> "conftest.nl"
4251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4253 ac_count=`expr $ac_count + 1`
4254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4255 # Best one so far, save it but keep looking for a better one
4256 ac_cv_path_GREP="$ac_path_GREP"
4257 ac_path_GREP_max=$ac_count
4259 # 10*(2^10) chars as input seems more than enough
4260 test $ac_count -gt 10 && break
4262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266 $ac_path_GREP_found && break 3
4276 GREP="$ac_cv_path_GREP"
4277 if test -z "$GREP"; then
4278 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4279 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4280 { (exit 1); exit 1; }; }
4284 ac_cv_path_GREP=$GREP
4289 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { echo "$as_me:$LINENO: checking for egrep" >&5
4295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4302 # Extract the first word of "egrep" to use in msg output
4303 if test -z "$EGREP"; then
4304 set dummy egrep; ac_prog_name=$2
4305 if test "${ac_cv_path_EGREP+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 ac_path_EGREP_found=false
4309 # Loop through the user's path and test for each of PROGNAME-LIST
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 test -z "$as_dir" && as_dir=.
4315 for ac_prog in egrep; do
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4318 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4319 # Check for GNU ac_path_EGREP and select it if it is found.
4320 # Check for GNU $ac_path_EGREP
4321 case `"$ac_path_EGREP" --version 2>&1` in
4323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4329 cat "conftest.in" "conftest.in" >"conftest.tmp"
4330 mv "conftest.tmp" "conftest.in"
4331 cp "conftest.in" "conftest.nl"
4332 echo 'EGREP' >> "conftest.nl"
4333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4335 ac_count=`expr $ac_count + 1`
4336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4337 # Best one so far, save it but keep looking for a better one
4338 ac_cv_path_EGREP="$ac_path_EGREP"
4339 ac_path_EGREP_max=$ac_count
4341 # 10*(2^10) chars as input seems more than enough
4342 test $ac_count -gt 10 && break
4344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4348 $ac_path_EGREP_found && break 3
4358 EGREP="$ac_cv_path_EGREP"
4359 if test -z "$EGREP"; then
4360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4362 { (exit 1); exit 1; }; }
4366 ac_cv_path_EGREP=$EGREP
4372 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4373 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4374 EGREP="$ac_cv_path_EGREP"
4378 # Check whether --with-gnu-ld was given.
4379 if test "${with_gnu_ld+set}" = set; then
4380 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4386 if test "$GCC" = yes; then
4387 # Check if gcc -print-prog-name=ld gives a path.
4388 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4389 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4392 # gcc leaves a trailing carriage return which upsets mingw
4393 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4395 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4398 # Accept absolute paths.
4400 re_direlt='/[^/][^/]*/\.\./'
4401 # Canonicalize the pathname of ld
4402 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4403 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4404 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4406 test -z "$LD" && LD="$ac_prog"
4409 # If it fails, then pretend we aren't using GCC.
4413 # If it is relative, then search for the first ld in PATH.
4417 elif test "$with_gnu_ld" = yes; then
4418 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4419 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4421 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4422 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4424 if test "${lt_cv_path_LD+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -z "$LD"; then
4428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4429 for ac_dir in $PATH; do
4431 test -z "$ac_dir" && ac_dir=.
4432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4433 lt_cv_path_LD="$ac_dir/$ac_prog"
4434 # Check to see if the program is GNU ld. I'd rather use --version,
4435 # but apparently some variants of GNU ld only accept -v.
4436 # Break only if it was the GNU/non-GNU ld that we prefer.
4437 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4438 *GNU* | *'with BFD'*)
4439 test "$with_gnu_ld" != no && break
4442 test "$with_gnu_ld" != yes && break
4449 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4454 if test -n "$LD"; then
4455 { echo "$as_me:$LINENO: result: $LD" >&5
4456 echo "${ECHO_T}$LD" >&6; }
4458 { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4461 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4462 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4463 { (exit 1); exit 1; }; }
4464 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4465 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4466 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4470 case `$LD -v 2>&1 </dev/null` in
4471 *GNU* | *'with BFD'*)
4472 lt_cv_prog_gnu_ld=yes
4475 lt_cv_prog_gnu_ld=no
4479 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4480 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4481 with_gnu_ld=$lt_cv_prog_gnu_ld
4484 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4485 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4486 if test "${lt_cv_ld_reload_flag+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 lt_cv_ld_reload_flag='-r'
4491 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4492 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4493 reload_flag=$lt_cv_ld_reload_flag
4494 case $reload_flag in
4496 *) reload_flag=" $reload_flag" ;;
4498 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4501 if test "$GCC" = yes; then
4502 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4504 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4509 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4510 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4511 if test "${lt_cv_path_NM+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 if test -n "$NM"; then
4515 # Let the user override the test.
4518 lt_nm_to_check="${ac_tool_prefix}nm"
4519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4520 lt_nm_to_check="$lt_nm_to_check nm"
4522 for lt_tmp_nm in $lt_nm_to_check; do
4523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4526 test -z "$ac_dir" && ac_dir=.
4527 tmp_nm="$ac_dir/$lt_tmp_nm"
4528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4529 # Check to see if the nm accepts a BSD-compat flag.
4530 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4531 # nm: unknown option "B" ignored
4532 # Tru64's nm complains that /dev/null is an invalid object file
4533 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4534 */dev/null* | *'Invalid file or object type'*)
4535 lt_cv_path_NM="$tmp_nm -B"
4539 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4541 lt_cv_path_NM="$tmp_nm -p"
4545 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4546 continue # so that we can try to find one that supports BSD flags
4555 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4558 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4559 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4562 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4563 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4564 if test "${lt_cv_deplibs_check_method+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 lt_cv_file_magic_cmd='$MAGIC_CMD'
4568 lt_cv_file_magic_test_file=
4569 lt_cv_deplibs_check_method='unknown'
4570 # Need to set the preceding variable on all platforms that support
4571 # interlibrary dependencies.
4572 # 'none' -- dependencies not supported.
4573 # `unknown' -- same as none, but documents that we really don't know.
4574 # 'pass_all' -- all dependencies passed with no checks.
4575 # 'test_compile' -- check by making test program.
4576 # 'file_magic [[regex]]' -- check by looking for files in library path
4577 # which responds to the $file_magic_cmd with a given extended regex.
4578 # If you have `file' or equivalent on your system and you're not sure
4579 # whether `pass_all' will *always* work, you probably want this one.
4583 lt_cv_deplibs_check_method=pass_all
4587 lt_cv_deplibs_check_method=pass_all
4591 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4592 lt_cv_file_magic_cmd='/usr/bin/file -L'
4593 lt_cv_file_magic_test_file=/shlib/libc.so
4597 # func_win32_libid is a shell function defined in ltmain.sh
4598 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4599 lt_cv_file_magic_cmd='func_win32_libid'
4603 # Base MSYS/MinGW do not provide the 'file' command needed by
4604 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4605 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4606 lt_cv_file_magic_cmd='$OBJDUMP -f'
4609 darwin* | rhapsody*)
4610 lt_cv_deplibs_check_method=pass_all
4613 freebsd* | kfreebsd*-gnu | dragonfly*)
4614 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4617 # Not sure whether the presence of OpenBSD here was a mistake.
4618 # Let's accept both of them until this is cleared up.
4619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4620 lt_cv_file_magic_cmd=/usr/bin/file
4621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4625 lt_cv_deplibs_check_method=pass_all
4630 lt_cv_deplibs_check_method=pass_all
4633 hpux10.20* | hpux11*)
4634 lt_cv_file_magic_cmd=/usr/bin/file
4637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4641 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]'
4642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4656 irix5* | irix6* | nonstopux*)
4658 *-32|*"-32 ") libmagic=32-bit;;
4659 *-n32|*"-n32 ") libmagic=N32;;
4660 *-64|*"-64 ") libmagic=64-bit;;
4661 *) libmagic=never-match;;
4663 lt_cv_deplibs_check_method=pass_all
4666 # This must be Linux ELF.
4668 lt_cv_deplibs_check_method=pass_all
4672 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4681 lt_cv_file_magic_cmd=/usr/bin/file
4682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4686 lt_cv_deplibs_check_method=unknown
4690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4697 osf3* | osf4* | osf5*)
4698 lt_cv_deplibs_check_method=pass_all
4702 lt_cv_deplibs_check_method=pass_all
4706 case $host_vendor in
4708 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]'
4709 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4712 lt_cv_deplibs_check_method=pass_all
4715 lt_cv_file_magic_cmd='/bin/file'
4716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4719 lt_cv_file_magic_cmd='/bin/file'
4720 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4721 lt_cv_file_magic_test_file=/lib/libc.so
4724 lt_cv_deplibs_check_method=pass_all
4727 lt_cv_deplibs_check_method=pass_all
4732 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4733 lt_cv_deplibs_check_method=pass_all
4738 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4739 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4740 file_magic_cmd=$lt_cv_file_magic_cmd
4741 deplibs_check_method=$lt_cv_deplibs_check_method
4742 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4747 # If no C compiler was specified, use CC.
4750 # If no C compiler flags were specified, use CFLAGS.
4751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4753 # Allow CC to be a program name with arguments.
4757 # Check whether --enable-libtool-lock was given.
4758 if test "${enable_libtool_lock+set}" = set; then
4759 enableval=$enable_libtool_lock;
4762 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4764 # Some flags need to be propagated to the compiler or linker for good
4768 # Find out which ABI we are using.
4769 echo 'int i;' > conftest.$ac_ext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4771 (eval $ac_compile) 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; then
4775 case `/usr/bin/file conftest.$ac_objext` in
4787 # Find out which ABI we are using.
4788 echo '#line 4788 "configure"' > conftest.$ac_ext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790 (eval $ac_compile) 2>&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; then
4794 if test "$lt_cv_prog_gnu_ld" = yes; then
4795 case `/usr/bin/file conftest.$ac_objext` in
4797 LD="${LD-ld} -melf32bsmip"
4800 LD="${LD-ld} -melf32bmipn32"
4803 LD="${LD-ld} -melf64bmip"
4807 case `/usr/bin/file conftest.$ac_objext` in
4823 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4824 # Find out which ABI we are using.
4825 echo 'int i;' > conftest.$ac_ext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4827 (eval $ac_compile) 2>&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; then
4831 case `/usr/bin/file conftest.o` in
4835 LD="${LD-ld} -m elf_i386"
4837 ppc64-*linux*|powerpc64-*linux*)
4838 LD="${LD-ld} -m elf32ppclinux"
4841 LD="${LD-ld} -m elf_s390"
4844 LD="${LD-ld} -m elf32_sparc"
4851 LD="${LD-ld} -m elf_x86_64"
4853 ppc*-*linux*|powerpc*-*linux*)
4854 LD="${LD-ld} -m elf64ppc"
4857 LD="${LD-ld} -m elf64_s390"
4860 LD="${LD-ld} -m elf64_sparc"
4870 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4871 SAVE_CFLAGS="$CFLAGS"
4872 CFLAGS="$CFLAGS -belf"
4873 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4874 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4875 if test "${lt_cv_cc_needs_belf+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 ac_cpp='$CPP $CPPFLAGS'
4880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884 cat >conftest.$ac_ext <<_ACEOF
4887 cat confdefs.h >>conftest.$ac_ext
4888 cat >>conftest.$ac_ext <<_ACEOF
4889 /* end confdefs.h. */
4899 rm -f conftest.$ac_objext conftest$ac_exeext
4900 if { (ac_try="$ac_link"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_link") 2>conftest.er1
4908 grep -v '^ *+' conftest.er1 >conftest.err
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4914 { (case "(($ac_try" in
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_try") 2>&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; } &&
4923 { ac_try='test -s conftest$ac_exeext'
4924 { (case "(($ac_try" in
4925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4926 *) ac_try_echo=$ac_try;;
4928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4929 (eval "$ac_try") 2>&5
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; }; then
4933 lt_cv_cc_needs_belf=yes
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 lt_cv_cc_needs_belf=no
4941 rm -f core conftest.err conftest.$ac_objext \
4942 conftest$ac_exeext conftest.$ac_ext
4944 ac_cpp='$CPP $CPPFLAGS'
4945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4951 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4952 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4953 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4954 CFLAGS="$SAVE_CFLAGS"
4958 # Find out which ABI we are using.
4959 echo 'int i;' > conftest.$ac_ext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; then
4965 case `/usr/bin/file conftest.o` in
4967 case $lt_cv_prog_gnu_ld in
4968 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4969 *) LD="${LD-ld} -64" ;;
4980 need_locks="$enable_libtool_lock"
4984 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4985 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4986 if test "${ac_cv_header_stdc+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
5008 rm -f conftest.$ac_objext
5009 if { (ac_try="$ac_compile"
5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5012 *) ac_try_echo=$ac_try;;
5014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5015 (eval "$ac_compile") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5023 { (case "(($ac_try" in
5024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_try") 2>&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest.$ac_objext'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_header_stdc=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 ac_cv_header_stdc=no
5050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5052 if test $ac_cv_header_stdc = yes; then
5053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5054 cat >conftest.$ac_ext <<_ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064 $EGREP "memchr" >/dev/null 2>&1; then
5067 ac_cv_header_stdc=no
5073 if test $ac_cv_header_stdc = yes; then
5074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5085 $EGREP "free" >/dev/null 2>&1; then
5088 ac_cv_header_stdc=no
5094 if test $ac_cv_header_stdc = yes; then
5095 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5096 if test "$cross_compiling" = yes; then
5099 cat >conftest.$ac_ext <<_ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5107 #if ((' ' & 0x0FF) == 0x020)
5108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5111 # define ISLOWER(c) \
5112 (('a' <= (c) && (c) <= 'i') \
5113 || ('j' <= (c) && (c) <= 'r') \
5114 || ('s' <= (c) && (c) <= 'z'))
5115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123 for (i = 0; i < 256; i++)
5124 if (XOR (islower (i), ISLOWER (i))
5125 || toupper (i) != TOUPPER (i))
5130 rm -f conftest$ac_exeext
5131 if { (ac_try="$ac_link"
5133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5134 *) ac_try_echo=$ac_try;;
5136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5137 (eval "$ac_link") 2>&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5141 { (case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_try") 2>&5
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5152 echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5157 ac_cv_header_stdc=no
5159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5165 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5166 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5167 if test $ac_cv_header_stdc = yes; then
5169 cat >>confdefs.h <<\_ACEOF
5170 #define STDC_HEADERS 1
5175 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5186 inttypes.h stdint.h unistd.h
5188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 cat >conftest.$ac_ext <<_ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 $ac_includes_default
5202 #include <$ac_header>
5204 rm -f conftest.$ac_objext
5205 if { (ac_try="$ac_compile"
5207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5208 *) ac_try_echo=$ac_try;;
5210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5211 (eval "$ac_compile") 2>conftest.er1
5213 grep -v '^ *+' conftest.er1 >conftest.err
5215 cat conftest.err >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); } &&
5218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5219 { (case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_try") 2>&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; } &&
5228 { ac_try='test -s conftest.$ac_objext'
5229 { (case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_try") 2>&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; }; then
5238 eval "$as_ac_Header=yes"
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 eval "$as_ac_Header=no"
5246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5248 ac_res=`eval echo '${'$as_ac_Header'}'`
5249 { echo "$as_me:$LINENO: result: $ac_res" >&5
5250 echo "${ECHO_T}$ac_res" >&6; }
5251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5252 cat >>confdefs.h <<_ACEOF
5253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5262 for ac_header in dlfcn.h
5264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_res=`eval echo '${'$as_ac_Header'}'`
5272 { echo "$as_me:$LINENO: result: $ac_res" >&5
5273 echo "${ECHO_T}$ac_res" >&6; }
5275 # Is the header compilable?
5276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5285 #include <$ac_header>
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_try") 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest.$ac_objext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_header_compiler=yes
5323 echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5326 ac_header_compiler=no
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5331 echo "${ECHO_T}$ac_header_compiler" >&6; }
5333 # Is the header present?
5334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #include <$ac_header>
5344 if { (ac_try="$ac_cpp conftest.$ac_ext"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } >/dev/null; then
5357 if test -s conftest.err; then
5358 ac_cpp_err=$ac_c_preproc_warn_flag
5359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5366 if test -z "$ac_cpp_err"; then
5367 ac_header_preproc=yes
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 ac_header_preproc=no
5375 rm -f conftest.err conftest.$ac_ext
5376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5377 echo "${ECHO_T}$ac_header_preproc" >&6; }
5379 # So? What about this header?
5380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5386 ac_header_preproc=yes
5389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 eval "$as_ac_Header=\$ac_header_preproc"
5411 ac_res=`eval echo '${'$as_ac_Header'}'`
5412 { echo "$as_me:$LINENO: result: $ac_res" >&5
5413 echo "${ECHO_T}$ac_res" >&6; }
5416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5429 (test "X$CXX" != "Xg++"))) ; then
5431 ac_cpp='$CXXCPP $CPPFLAGS'
5432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5436 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5437 if test -z "$CXXCPP"; then
5438 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 # Double quotes because CXXCPP needs to be expanded
5442 for CXXCPP in "$CXX -E" "/lib/cpp"
5445 for ac_cxx_preproc_warn_flag in '' yes
5447 # Use a header file that comes with gcc, so configuring glibc
5448 # with a fresh cross-compiler works.
5449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5450 # <limits.h> exists even on freestanding compilers.
5451 # On the NeXT, cc -E runs the code through the compiler's parser,
5452 # not just through cpp. "Syntax error" is here to catch this case.
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5460 # include <limits.h>
5462 # include <assert.h>
5466 if { (ac_try="$ac_cpp conftest.$ac_ext"
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5474 grep -v '^ *+' conftest.er1 >conftest.err
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } >/dev/null; then
5479 if test -s conftest.err; then
5480 ac_cpp_err=$ac_cxx_preproc_warn_flag
5481 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5488 if test -z "$ac_cpp_err"; then
5491 echo "$as_me: failed program was:" >&5
5492 sed 's/^/| /' conftest.$ac_ext >&5
5494 # Broken: fails on valid input.
5498 rm -f conftest.err conftest.$ac_ext
5500 # OK, works on sane cases. Now check whether nonexistent headers
5501 # can be detected and how.
5502 cat >conftest.$ac_ext <<_ACEOF
5505 cat confdefs.h >>conftest.$ac_ext
5506 cat >>conftest.$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #include <ac_nonexistent.h>
5510 if { (ac_try="$ac_cpp conftest.$ac_ext"
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518 grep -v '^ *+' conftest.er1 >conftest.err
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } >/dev/null; then
5523 if test -s conftest.err; then
5524 ac_cpp_err=$ac_cxx_preproc_warn_flag
5525 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5532 if test -z "$ac_cpp_err"; then
5533 # Broken: success on invalid input.
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 # Passes both tests.
5544 rm -f conftest.err conftest.$ac_ext
5547 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5548 rm -f conftest.err conftest.$ac_ext
5549 if $ac_preproc_ok; then
5554 ac_cv_prog_CXXCPP=$CXXCPP
5557 CXXCPP=$ac_cv_prog_CXXCPP
5559 ac_cv_prog_CXXCPP=$CXXCPP
5561 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5562 echo "${ECHO_T}$CXXCPP" >&6; }
5564 for ac_cxx_preproc_warn_flag in '' yes
5566 # Use a header file that comes with gcc, so configuring glibc
5567 # with a fresh cross-compiler works.
5568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5569 # <limits.h> exists even on freestanding compilers.
5570 # On the NeXT, cc -E runs the code through the compiler's parser,
5571 # not just through cpp. "Syntax error" is here to catch this case.
5572 cat >conftest.$ac_ext <<_ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h. */
5579 # include <limits.h>
5581 # include <assert.h>
5585 if { (ac_try="$ac_cpp conftest.$ac_ext"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1 >conftest.err
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } >/dev/null; then
5598 if test -s conftest.err; then
5599 ac_cpp_err=$ac_cxx_preproc_warn_flag
5600 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5607 if test -z "$ac_cpp_err"; then
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 # Broken: fails on valid input.
5617 rm -f conftest.err conftest.$ac_ext
5619 # OK, works on sane cases. Now check whether nonexistent headers
5620 # can be detected and how.
5621 cat >conftest.$ac_ext <<_ACEOF
5624 cat confdefs.h >>conftest.$ac_ext
5625 cat >>conftest.$ac_ext <<_ACEOF
5626 /* end confdefs.h. */
5627 #include <ac_nonexistent.h>
5629 if { (ac_try="$ac_cpp conftest.$ac_ext"
5631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } >/dev/null; then
5642 if test -s conftest.err; then
5643 ac_cpp_err=$ac_cxx_preproc_warn_flag
5644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5651 if test -z "$ac_cpp_err"; then
5652 # Broken: success on invalid input.
5655 echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 # Passes both tests.
5663 rm -f conftest.err conftest.$ac_ext
5666 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5667 rm -f conftest.err conftest.$ac_ext
5668 if $ac_preproc_ok; then
5671 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5672 See \`config.log' for more details." >&5
5673 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5674 See \`config.log' for more details." >&2;}
5675 { (exit 1); exit 1; }; }
5679 ac_cpp='$CXXCPP $CPPFLAGS'
5680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5688 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5689 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5691 if test -n "$ac_tool_prefix"; then
5692 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5694 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5695 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5698 if test "${ac_cv_prog_F77+set}" = set; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 if test -n "$F77"; then
5702 ac_cv_prog_F77="$F77" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 if test -n "$F77"; then
5723 { echo "$as_me:$LINENO: result: $F77" >&5
5724 echo "${ECHO_T}$F77" >&6; }
5726 { echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6; }
5731 test -n "$F77" && break
5734 if test -z "$F77"; then
5736 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
5738 # Extract the first word of "$ac_prog", so it can be a program name with args.
5739 set dummy $ac_prog; ac_word=$2
5740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5742 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 if test -n "$ac_ct_F77"; then
5746 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5755 ac_cv_prog_ac_ct_F77="$ac_prog"
5756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5766 if test -n "$ac_ct_F77"; then
5767 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5768 echo "${ECHO_T}$ac_ct_F77" >&6; }
5770 { echo "$as_me:$LINENO: result: no" >&5
5771 echo "${ECHO_T}no" >&6; }
5775 test -n "$ac_ct_F77" && break
5778 if test "x$ac_ct_F77" = x; then
5781 case $cross_compiling:$ac_tool_warned in
5783 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5784 whose name does not start with the host triplet. If you think this
5785 configuration is useful to you, please write to autoconf@gnu.org." >&5
5786 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5787 whose name does not start with the host triplet. If you think this
5788 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5789 ac_tool_warned=yes ;;
5796 # Provide some information about the compiler.
5797 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5798 ac_compiler=`set X $ac_compile; echo $2`
5799 { (ac_try="$ac_compiler --version >&5"
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compiler --version >&5") 2>&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }
5809 { (ac_try="$ac_compiler -v >&5"
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compiler -v >&5") 2>&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }
5819 { (ac_try="$ac_compiler -V >&5"
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compiler -V >&5") 2>&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }
5831 # If we don't use `.F' as extension, the preprocessor is not run on the
5832 # input file. (Note that this only needs to work for GNU compilers.)
5835 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5836 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5837 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1 >conftest.err
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5894 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5895 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5897 ac_test_FFLAGS=${FFLAGS+set}
5898 ac_save_FFLAGS=$FFLAGS
5900 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5901 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5902 if test "${ac_cv_prog_f77_g+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 cat >conftest.$ac_ext <<_ACEOF
5911 rm -f conftest.$ac_objext
5912 if { (ac_try="$ac_compile"
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5920 grep -v '^ *+' conftest.er1 >conftest.err
5922 cat conftest.err >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } &&
5925 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5926 { (case "(($ac_try" in
5927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5928 *) ac_try_echo=$ac_try;;
5930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5931 (eval "$ac_try") 2>&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_prog_f77_g=yes
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5957 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5958 if test "$ac_test_FFLAGS" = set; then
5959 FFLAGS=$ac_save_FFLAGS
5960 elif test $ac_cv_prog_f77_g = yes; then
5961 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5967 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5974 G77=`test $ac_compiler_gnu = yes && echo yes`
5976 ac_cpp='$CPP $CPPFLAGS'
5977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5985 # find the maximum length of command line arguments
5986 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5987 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5988 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 # On DJGPP, this test can blow up pretty badly due to problems in libc
5997 # (any single argument exceeding 2000 bytes causes a buffer overrun
5998 # during glob expansion). Even if it were fixed, the result of this
5999 # check would be larger than it should be.
6000 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6004 # Under GNU Hurd, this test is not required because there is
6005 # no limit to the length of command line arguments.
6006 # Libtool will interpret -1 as no limit whatsoever
6007 lt_cv_sys_max_cmd_len=-1;
6011 # On Win9x/ME, this test blows up -- it succeeds, but takes
6012 # about 5 minutes as the teststring grows exponentially.
6013 # Worse, since 9x/ME are not pre-emptively multitasking,
6014 # you end up with a "frozen" computer, even though with patience
6015 # the test eventually succeeds (with a max line length of 256k).
6016 # Instead, let's just punt: use the minimum linelength reported by
6017 # all of the supported platforms: 8192 (on NT/2K/XP).
6018 lt_cv_sys_max_cmd_len=8192;
6022 # On AmigaOS with pdksh, this test takes hours, literally.
6023 # So we just punt and use a minimum line length of 8192.
6024 lt_cv_sys_max_cmd_len=8192;
6027 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6028 # This has been around since 386BSD, at least. Likely further.
6029 if test -x /sbin/sysctl; then
6030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6031 elif test -x /usr/sbin/sysctl; then
6032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6036 # And add a safety zone
6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6042 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6043 lt_cv_sys_max_cmd_len=196608
6047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049 # nice to cause kernel panics so lets avoid the loop below.
6050 # First set a reasonable default.
6051 lt_cv_sys_max_cmd_len=16384
6053 if test -x /sbin/sysconfig; then
6054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6060 lt_cv_sys_max_cmd_len=102400
6062 sysv5* | sco5v6* | sysv4.2uw2*)
6063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064 if test -n "$kargmax"; then
6065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6067 lt_cv_sys_max_cmd_len=32768
6071 # If test is not a shell built-in, we'll probably end up computing a
6072 # maximum length that is only half of the actual maximum length, but
6074 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6075 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6076 = "XX$teststring") >/dev/null 2>&1 &&
6077 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6078 lt_cv_sys_max_cmd_len=$new_result &&
6079 test $i != 17 # 1/2 MB should be enough
6082 teststring=$teststring$teststring
6085 # Add a significant safety factor because C++ compilers can tack on massive
6086 # amounts of additional arguments before passing them to the linker.
6087 # It appears as though 1/2 is a usable value.
6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6094 if test -n $lt_cv_sys_max_cmd_len ; then
6095 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6096 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6098 { echo "$as_me:$LINENO: result: none" >&5
6099 echo "${ECHO_T}none" >&6; }
6105 # Check for command to grab the raw symbol name followed by C symbol from nm.
6106 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6107 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6108 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 # These are sane defaults that work on at least a few old systems.
6113 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6115 # Character class describing NM global symbol codes.
6116 symcode='[BCDEGRST]'
6118 # Regexp to match symbols that can be accessed directly from C.
6119 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6121 # Transform an extracted symbol line into a proper C declaration
6122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6124 # Transform an extracted symbol line into symbol name and symbol address
6125 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6127 # Define system-specific variables.
6132 cygwin* | mingw* | pw32*)
6133 symcode='[ABCDGISTW]'
6135 hpux*) # Its linker distinguishes data from code symbols
6136 if test "$host_cpu" = ia64; then
6137 symcode='[ABCDEGRST]'
6139 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6140 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6143 if test "$host_cpu" = ia64; then
6144 symcode='[ABCDGIRSTW]'
6145 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6146 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6150 symcode='[BCDEGRST]'
6153 symcode='[BCDEGQRST]'
6164 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6172 # Handle CRLF in mingw tool chain
6176 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6180 # If we're using GNU nm, then use its standard symbol codes.
6181 case `$NM -V 2>&1` in
6182 *GNU* | *'with BFD'*)
6183 symcode='[ABCDGIRSTW]' ;;
6186 # Try without a prefix undercore, then with it.
6187 for ac_symprfx in "" "_"; do
6189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6190 symxfrm="\\1 $ac_symprfx\\2 \\2"
6192 # Write the raw and C identifiers.
6193 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6195 # Check to see that the pipe works correctly.
6199 cat > conftest.$ac_ext <<EOF
6204 void nm_test_func(){}
6208 int main(){nm_test_var='a';nm_test_func();return(0);}
6211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212 (eval $ac_compile) 2>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; then
6216 # Now try to grab the symbols.
6218 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6219 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && test -s "$nlist"; then
6223 # Try sorting and uniquifying the output.
6224 if sort "$nlist" | uniq > "$nlist"T; then
6225 mv -f "$nlist"T "$nlist"
6230 # Make sure that we snagged all the symbols we need.
6231 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6232 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6233 cat <<EOF > conftest.$ac_ext
6239 # Now generate the symbol file.
6240 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6242 cat <<EOF >> conftest.$ac_ext
6243 #if defined (__STDC__) && __STDC__
6244 # define lt_ptr_t void *
6246 # define lt_ptr_t char *
6250 /* The mapping between symbol names and symbols. */
6255 lt_preloaded_symbols[] =
6258 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6259 cat <<\EOF >> conftest.$ac_ext
6267 # Now try linking the two files.
6268 mv conftest.$ac_objext conftstm.$ac_objext
6269 lt_save_LIBS="$LIBS"
6270 lt_save_CFLAGS="$CFLAGS"
6271 LIBS="conftstm.$ac_objext"
6272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6274 (eval $ac_link) 2>&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6280 LIBS="$lt_save_LIBS"
6281 CFLAGS="$lt_save_CFLAGS"
6283 echo "cannot find nm_test_func in $nlist" >&5
6286 echo "cannot find nm_test_var in $nlist" >&5
6289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6292 echo "$progname: failed program was:" >&5
6293 cat conftest.$ac_ext >&5
6295 rm -f conftest* conftst*
6297 # Do not use the global_symbol_pipe unless it works.
6298 if test "$pipe_works" = yes; then
6301 lt_cv_sys_global_symbol_pipe=
6307 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308 lt_cv_sys_global_symbol_to_cdecl=
6310 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311 { echo "$as_me:$LINENO: result: failed" >&5
6312 echo "${ECHO_T}failed" >&6; }
6314 { echo "$as_me:$LINENO: result: ok" >&5
6315 echo "${ECHO_T}ok" >&6; }
6318 { echo "$as_me:$LINENO: checking for objdir" >&5
6319 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6320 if test "${lt_cv_objdir+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 rm -f .libs 2>/dev/null
6324 mkdir .libs 2>/dev/null
6325 if test -d .libs; then
6328 # MS-DOS does not allow filenames that begin with a dot.
6331 rmdir .libs 2>/dev/null
6333 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6334 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6335 objdir=$lt_cv_objdir
6343 # AIX sometimes has problems with the GCC collect2 program. For some
6344 # reason, if we set the COLLECT_NAMES environment variable, the problems
6345 # vanish in a puff of smoke.
6346 if test "X${COLLECT_NAMES+set}" != Xset; then
6348 export COLLECT_NAMES
6353 # Sed substitution that helps us do robust quoting. It backslashifies
6354 # metacharacters that are still active within double-quoted strings.
6355 Xsed='sed -e 1s/^X//'
6356 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6358 # Same as above, but do not quote variable references.
6359 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6361 # Sed substitution to delay expansion of an escaped shell variable in a
6362 # double_quote_subst'ed string.
6363 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6365 # Sed substitution to avoid accidental globbing in evaled expressions
6366 no_glob_subst='s/\*/\\\*/g'
6372 default_ofile=libtool
6373 can_build_shared=yes
6375 # All known linkers require a `.a' archive for static linking (except MSVC,
6376 # which needs '.lib').
6378 ltmain="$ac_aux_dir/ltmain.sh"
6379 ofile="$default_ofile"
6380 with_gnu_ld="$lt_cv_prog_gnu_ld"
6382 if test -n "$ac_tool_prefix"; then
6383 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6384 set dummy ${ac_tool_prefix}ar; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_prog_AR+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 if test -n "$AR"; then
6391 ac_cv_prog_AR="$AR" # Let the user override the test.
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400 ac_cv_prog_AR="${ac_tool_prefix}ar"
6401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 if test -n "$AR"; then
6412 { echo "$as_me:$LINENO: result: $AR" >&5
6413 echo "${ECHO_T}$AR" >&6; }
6415 { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6421 if test -z "$ac_cv_prog_AR"; then
6423 # Extract the first word of "ar", so it can be a program name with args.
6424 set dummy ar; ac_word=$2
6425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6427 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6428 echo $ECHO_N "(cached) $ECHO_C" >&6
6430 if test -n "$ac_ct_AR"; then
6431 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 test -z "$as_dir" && as_dir=.
6438 for ac_exec_ext in '' $ac_executable_extensions; do
6439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6440 ac_cv_prog_ac_ct_AR="ar"
6441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6451 if test -n "$ac_ct_AR"; then
6452 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6453 echo "${ECHO_T}$ac_ct_AR" >&6; }
6455 { echo "$as_me:$LINENO: result: no" >&5
6456 echo "${ECHO_T}no" >&6; }
6459 if test "x$ac_ct_AR" = x; then
6462 case $cross_compiling:$ac_tool_warned in
6464 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6465 whose name does not start with the host triplet. If you think this
6466 configuration is useful to you, please write to autoconf@gnu.org." >&5
6467 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6468 whose name does not start with the host triplet. If you think this
6469 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6470 ac_tool_warned=yes ;;
6478 if test -n "$ac_tool_prefix"; then
6479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6483 if test "${ac_cv_prog_RANLIB+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 if test -n "$RANLIB"; then
6487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 RANLIB=$ac_cv_prog_RANLIB
6507 if test -n "$RANLIB"; then
6508 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6509 echo "${ECHO_T}$RANLIB" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6517 if test -z "$ac_cv_prog_RANLIB"; then
6518 ac_ct_RANLIB=$RANLIB
6519 # Extract the first word of "ranlib", so it can be a program name with args.
6520 set dummy ranlib; ac_word=$2
6521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 if test -n "$ac_ct_RANLIB"; then
6527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_prog_ac_ct_RANLIB="ranlib"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6547 if test -n "$ac_ct_RANLIB"; then
6548 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6549 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6551 { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6555 if test "x$ac_ct_RANLIB" = x; then
6558 case $cross_compiling:$ac_tool_warned in
6560 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6561 whose name does not start with the host triplet. If you think this
6562 configuration is useful to you, please write to autoconf@gnu.org." >&5
6563 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6564 whose name does not start with the host triplet. If you think this
6565 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6566 ac_tool_warned=yes ;;
6568 RANLIB=$ac_ct_RANLIB
6571 RANLIB="$ac_cv_prog_RANLIB"
6574 if test -n "$ac_tool_prefix"; then
6575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}strip; ac_word=$2
6577 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6579 if test "${ac_cv_prog_STRIP+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 if test -n "$STRIP"; then
6583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 STRIP=$ac_cv_prog_STRIP
6603 if test -n "$STRIP"; then
6604 { echo "$as_me:$LINENO: result: $STRIP" >&5
6605 echo "${ECHO_T}$STRIP" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6613 if test -z "$ac_cv_prog_STRIP"; then
6615 # Extract the first word of "strip", so it can be a program name with args.
6616 set dummy strip; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 if test -n "$ac_ct_STRIP"; then
6623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_ac_ct_STRIP="strip"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6643 if test -n "$ac_ct_STRIP"; then
6644 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6645 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6647 { echo "$as_me:$LINENO: result: no" >&5
6648 echo "${ECHO_T}no" >&6; }
6651 if test "x$ac_ct_STRIP" = x; then
6654 case $cross_compiling:$ac_tool_warned in
6656 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6657 whose name does not start with the host triplet. If you think this
6658 configuration is useful to you, please write to autoconf@gnu.org." >&5
6659 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6660 whose name does not start with the host triplet. If you think this
6661 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6662 ac_tool_warned=yes ;;
6667 STRIP="$ac_cv_prog_STRIP"
6672 old_CFLAGS="$CFLAGS"
6674 # Set sane defaults for various variables
6675 test -z "$AR" && AR=ar
6676 test -z "$AR_FLAGS" && AR_FLAGS=cru
6677 test -z "$AS" && AS=as
6678 test -z "$CC" && CC=cc
6679 test -z "$LTCC" && LTCC=$CC
6680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6681 test -z "$DLLTOOL" && DLLTOOL=dlltool
6682 test -z "$LD" && LD=ld
6683 test -z "$LN_S" && LN_S="ln -s"
6684 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6685 test -z "$NM" && NM=nm
6686 test -z "$SED" && SED=sed
6687 test -z "$OBJDUMP" && OBJDUMP=objdump
6688 test -z "$RANLIB" && RANLIB=:
6689 test -z "$STRIP" && STRIP=:
6690 test -z "$ac_objext" && ac_objext=o
6692 # Determine commands to create old-style static archives.
6693 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6694 old_postinstall_cmds='chmod 644 $oldlib'
6695 old_postuninstall_cmds=
6697 if test -n "$RANLIB"; then
6700 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6706 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6709 for cc_temp in $compiler""; do
6711 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6712 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6717 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6720 # Only perform the check for file, if the check method requires it
6721 case $deplibs_check_method in
6723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6724 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6725 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6726 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6734 lt_save_MAGIC_CMD="$MAGIC_CMD"
6735 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6737 for ac_dir in $ac_dummy; do
6739 test -z "$ac_dir" && ac_dir=.
6740 if test -f $ac_dir/${ac_tool_prefix}file; then
6741 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6742 if test -n "$file_magic_test_file"; then
6743 case $deplibs_check_method in
6745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6746 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6748 $EGREP "$file_magic_regex" > /dev/null; then
6753 *** Warning: the command libtool uses to detect shared libraries,
6754 *** $file_magic_cmd, produces output that libtool cannot recognize.
6755 *** The result is that libtool may fail to recognize shared libraries
6756 *** as such. This will affect the creation of libtool libraries that
6757 *** depend on shared libraries, but programs linked with such libtool
6758 *** libraries will work regardless of this problem. Nevertheless, you
6759 *** may want to report the problem to your system manager and/or to
6760 *** bug-libtool@gnu.org
6770 MAGIC_CMD="$lt_save_MAGIC_CMD"
6775 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6776 if test -n "$MAGIC_CMD"; then
6777 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6778 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6780 { echo "$as_me:$LINENO: result: no" >&5
6781 echo "${ECHO_T}no" >&6; }
6784 if test -z "$lt_cv_path_MAGIC_CMD"; then
6785 if test -n "$ac_tool_prefix"; then
6786 { echo "$as_me:$LINENO: checking for file" >&5
6787 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6788 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6796 lt_save_MAGIC_CMD="$MAGIC_CMD"
6797 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6798 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6799 for ac_dir in $ac_dummy; do
6801 test -z "$ac_dir" && ac_dir=.
6802 if test -f $ac_dir/file; then
6803 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6804 if test -n "$file_magic_test_file"; then
6805 case $deplibs_check_method in
6807 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6809 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6810 $EGREP "$file_magic_regex" > /dev/null; then
6815 *** Warning: the command libtool uses to detect shared libraries,
6816 *** $file_magic_cmd, produces output that libtool cannot recognize.
6817 *** The result is that libtool may fail to recognize shared libraries
6818 *** as such. This will affect the creation of libtool libraries that
6819 *** depend on shared libraries, but programs linked with such libtool
6820 *** libraries will work regardless of this problem. Nevertheless, you
6821 *** may want to report the problem to your system manager and/or to
6822 *** bug-libtool@gnu.org
6832 MAGIC_CMD="$lt_save_MAGIC_CMD"
6837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6838 if test -n "$MAGIC_CMD"; then
6839 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6840 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6858 # Check whether --enable-libtool-lock was given.
6859 if test "${enable_libtool_lock+set}" = set; then
6860 enableval=$enable_libtool_lock;
6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6866 # Check whether --with-pic was given.
6867 if test "${with_pic+set}" = set; then
6868 withval=$with_pic; pic_mode="$withval"
6873 test -z "$pic_mode" && pic_mode=default
6875 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
6877 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
6878 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
6879 # calls AC_LIBTOOL_CONFIG and creates libtool.
6881 { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
6882 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
6883 if test "x$ltmain" = "x" ; then
6884 { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 { { echo "$as_me:$LINENO: error:
6888 *** [Gentoo] sanity check failed! ***
6889 *** \$ltmain is not defined, please check the patch for consistency! ***
6891 echo "$as_me: error:
6893 *** [Gentoo] sanity check failed! ***
6894 *** \$ltmain is not defined, please check the patch for consistency! ***
6896 { (exit 1); exit 1; }; }
6898 gentoo_lt_version="1.5.22"
6899 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
6900 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6903 { { echo "$as_me:$LINENO: error:
6905 *** [Gentoo] sanity check failed! ***
6906 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6907 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6911 libtoolize --copy --force
6913 if appropriate, please contact the maintainer of this
6914 package (or your distribution) for help.
6916 echo "$as_me: error:
6918 *** [Gentoo] sanity check failed! ***
6919 *** libtool.m4 and ltmain.sh have a version mismatch! ***
6920 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
6924 libtoolize --copy --force
6926 if appropriate, please contact the maintainer of this
6927 package (or your distribution) for help.
6929 { (exit 1); exit 1; }; }
6931 { echo "$as_me:$LINENO: result: yes" >&5
6932 echo "${ECHO_T}yes" >&6; }
6936 # Use C for the default configuration in the libtool script
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6946 # Source file extension for C test sources.
6949 # Object file extension for compiled C test sources.
6953 # Code to be used in simple compile tests
6954 lt_simple_compile_test_code="int some_variable = 0;\n"
6956 # Code to be used in simple link tests
6957 lt_simple_link_test_code='int main(){return(0);}\n'
6960 # If no C compiler was specified, use CC.
6963 # If no C compiler flags were specified, use CFLAGS.
6964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6966 # Allow CC to be a program name with arguments.
6970 # save warnings/boilerplate of simple test code
6971 ac_outfile=conftest.$ac_objext
6972 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6974 _lt_compiler_boilerplate=`cat conftest.err`
6977 ac_outfile=conftest.$ac_objext
6978 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6980 _lt_linker_boilerplate=`cat conftest.err`
6985 lt_prog_compiler_no_builtin_flag=
6987 if test "$GCC" = yes; then
6988 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6991 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6992 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6993 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 lt_cv_prog_compiler_rtti_exceptions=no
6997 ac_outfile=conftest.$ac_objext
6998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6999 lt_compiler_flag="-fno-rtti -fno-exceptions"
7000 # Insert the option either (1) after the last *FLAGS variable, or
7001 # (2) before a word containing "conftest.", or (3) at the end.
7002 # Note that $ac_compile itself does not contain backslashes and begins
7003 # with a dollar sign (not a hyphen), so the echo should work correctly.
7004 # The option is referenced via a variable to avoid confusing sed.
7005 lt_compile=`echo "$ac_compile" | $SED \
7006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008 -e 's:$: $lt_compiler_flag:'`
7009 (eval echo "\"\$as_me:7009: $lt_compile\"" >&5)
7010 (eval "$lt_compile" 2>conftest.err)
7012 cat conftest.err >&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 if (exit $ac_status) && test -s "$ac_outfile"; then
7015 # The compiler can only warn and ignore the option if not recognized
7016 # So say no if there are warnings other than the usual output.
7017 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7020 lt_cv_prog_compiler_rtti_exceptions=yes
7026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7027 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7029 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7037 lt_prog_compiler_wl=
7038 lt_prog_compiler_pic=
7039 lt_prog_compiler_static=
7041 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7044 if test "$GCC" = yes; then
7045 lt_prog_compiler_wl='-Wl,'
7046 lt_prog_compiler_static='-static'
7050 # All AIX code is PIC.
7051 if test "$host_cpu" = ia64; then
7052 # AIX 5 now supports IA64 processor
7053 lt_prog_compiler_static='-Bstatic'
7058 # FIXME: we need at least 68020 code to build shared libraries, but
7059 # adding the `-m68020' flag to GCC prevents building anything better,
7061 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7064 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7065 # PIC is the default for these OSes.
7068 mingw* | pw32* | os2*)
7069 # This hack is so that the source file can tell whether it is being
7070 # built for inclusion in a dll (and should export symbols for example).
7071 lt_prog_compiler_pic='-DDLL_EXPORT'
7074 darwin* | rhapsody*)
7075 # PIC is the default on this platform
7076 # Common symbols not allowed in MH_DYLIB files
7077 lt_prog_compiler_pic='-fno-common'
7081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7082 # Instead, we relocate shared libraries at runtime.
7086 # Just because we use GCC doesn't mean we suddenly get shared libraries
7087 # on systems that don't support them.
7088 lt_prog_compiler_can_build_shared=no
7093 if test -d /usr/nec; then
7094 lt_prog_compiler_pic=-Kconform_pic
7099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7106 lt_prog_compiler_pic='-fPIC'
7112 lt_prog_compiler_pic='-fPIC'
7116 # PORTME Check for flag to pass linker flags through the system compiler.
7119 lt_prog_compiler_wl='-Wl,'
7120 if test "$host_cpu" = ia64; then
7121 # AIX 5 now supports IA64 processor
7122 lt_prog_compiler_static='-Bstatic'
7124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7128 # PIC is the default on this platform
7129 # Common symbols not allowed in MH_DYLIB files
7130 case $cc_basename in
7132 lt_prog_compiler_pic='-qnocommon'
7133 lt_prog_compiler_wl='-Wl,'
7138 mingw* | pw32* | os2*)
7139 # This hack is so that the source file can tell whether it is being
7140 # built for inclusion in a dll (and should export symbols for example).
7141 lt_prog_compiler_pic='-DDLL_EXPORT'
7144 hpux9* | hpux10* | hpux11*)
7145 lt_prog_compiler_wl='-Wl,'
7146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7153 lt_prog_compiler_pic='+Z'
7156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7157 lt_prog_compiler_static='${wl}-a ${wl}archive'
7160 irix5* | irix6* | nonstopux*)
7161 lt_prog_compiler_wl='-Wl,'
7162 # PIC (with -KPIC) is the default.
7163 lt_prog_compiler_static='-non_shared'
7167 lt_prog_compiler_pic='-KPIC'
7168 lt_prog_compiler_static='-Bstatic'
7172 case $cc_basename in
7174 lt_prog_compiler_wl='-Wl,'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-static'
7178 pgcc* | pgf77* | pgf90* | pgf95*)
7179 # Portland Group compilers (*not* the Pentium gcc compiler,
7180 # which looks to be a dead project)
7181 lt_prog_compiler_wl='-Wl,'
7182 lt_prog_compiler_pic='-fpic'
7183 lt_prog_compiler_static='-Bstatic'
7186 lt_prog_compiler_wl='-Wl,'
7187 # All Alpha code is PIC.
7188 lt_prog_compiler_static='-non_shared'
7193 osf3* | osf4* | osf5*)
7194 lt_prog_compiler_wl='-Wl,'
7195 # All OSF/1 code is PIC.
7196 lt_prog_compiler_static='-non_shared'
7200 lt_prog_compiler_pic='-KPIC'
7201 lt_prog_compiler_static='-Bstatic'
7202 case $cc_basename in
7204 lt_prog_compiler_wl='-Qoption ld ';;
7206 lt_prog_compiler_wl='-Wl,';;
7211 lt_prog_compiler_wl='-Qoption ld '
7212 lt_prog_compiler_pic='-PIC'
7213 lt_prog_compiler_static='-Bstatic'
7216 sysv4 | sysv4.2uw2* | sysv4.3*)
7217 lt_prog_compiler_wl='-Wl,'
7218 lt_prog_compiler_pic='-KPIC'
7219 lt_prog_compiler_static='-Bstatic'
7223 if test -d /usr/nec ;then
7224 lt_prog_compiler_pic='-Kconform_pic'
7225 lt_prog_compiler_static='-Bstatic'
7229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7230 lt_prog_compiler_wl='-Wl,'
7231 lt_prog_compiler_pic='-KPIC'
7232 lt_prog_compiler_static='-Bstatic'
7236 lt_prog_compiler_wl='-Wl,'
7237 lt_prog_compiler_can_build_shared=no
7241 lt_prog_compiler_pic='-pic'
7242 lt_prog_compiler_static='-Bstatic'
7246 lt_prog_compiler_can_build_shared=no
7251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7252 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7255 # Check to make sure the PIC flag actually works.
7257 if test -n "$lt_prog_compiler_pic"; then
7259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7261 if test "${lt_prog_compiler_pic_works+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 lt_prog_compiler_pic_works=no
7265 ac_outfile=conftest.$ac_objext
7266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7268 # Insert the option either (1) after the last *FLAGS variable, or
7269 # (2) before a word containing "conftest.", or (3) at the end.
7270 # Note that $ac_compile itself does not contain backslashes and begins
7271 # with a dollar sign (not a hyphen), so the echo should work correctly.
7272 # The option is referenced via a variable to avoid confusing sed.
7273 lt_compile=`echo "$ac_compile" | $SED \
7274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7276 -e 's:$: $lt_compiler_flag:'`
7277 (eval echo "\"\$as_me:7277: $lt_compile\"" >&5)
7278 (eval "$lt_compile" 2>conftest.err)
7280 cat conftest.err >&5
7281 echo "$as_me:7281: \$? = $ac_status" >&5
7282 if (exit $ac_status) && test -s "$ac_outfile"; then
7283 # The compiler can only warn and ignore the option if not recognized
7284 # So say no if there are warnings other than the usual output.
7285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7288 lt_prog_compiler_pic_works=yes
7294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7295 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7297 if test x"$lt_prog_compiler_pic_works" = xyes; then
7298 case $lt_prog_compiler_pic in
7300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7303 lt_prog_compiler_pic=
7304 lt_prog_compiler_can_build_shared=no
7309 # For platforms which do not support PIC, -DPIC is meaningless:
7311 lt_prog_compiler_pic=
7314 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7319 # Check to make sure the static flag actually works.
7321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7324 if test "${lt_prog_compiler_static_works+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 lt_prog_compiler_static_works=no
7328 save_LDFLAGS="$LDFLAGS"
7329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7330 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7332 # The linker can only warn and ignore the option if not recognized
7333 # So say no if there are warnings
7334 if test -s conftest.err; then
7335 # Append any errors to the config.log.
7336 cat conftest.err 1>&5
7337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339 if diff conftest.exp conftest.er2 >/dev/null; then
7340 lt_prog_compiler_static_works=yes
7343 lt_prog_compiler_static_works=yes
7347 LDFLAGS="$save_LDFLAGS"
7350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7351 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7353 if test x"$lt_prog_compiler_static_works" = xyes; then
7356 lt_prog_compiler_static=
7360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7362 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 lt_cv_prog_compiler_c_o=no
7366 $rm -r conftest 2>/dev/null
7370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7372 lt_compiler_flag="-o out/conftest2.$ac_objext"
7373 # Insert the option either (1) after the last *FLAGS variable, or
7374 # (2) before a word containing "conftest.", or (3) at the end.
7375 # Note that $ac_compile itself does not contain backslashes and begins
7376 # with a dollar sign (not a hyphen), so the echo should work correctly.
7377 lt_compile=`echo "$ac_compile" | $SED \
7378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7380 -e 's:$: $lt_compiler_flag:'`
7381 (eval echo "\"\$as_me:7381: $lt_compile\"" >&5)
7382 (eval "$lt_compile" 2>out/conftest.err)
7384 cat out/conftest.err >&5
7385 echo "$as_me:7385: \$? = $ac_status" >&5
7386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7388 # The compiler can only warn and ignore the option if not recognized
7389 # So say no if there are warnings
7390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7393 lt_cv_prog_compiler_c_o=yes
7398 # SGI C++ compiler will create directory out/ii_files/ for
7399 # template instantiation
7400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7401 $rm out/* && rmdir out
7407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7411 hard_links="nottested"
7412 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7413 # do not overwrite the value of need_locks provided by the user
7414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7420 ln conftest.a conftest.b 2>&5 || hard_links=no
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422 { echo "$as_me:$LINENO: result: $hard_links" >&5
7423 echo "${ECHO_T}$hard_links" >&6; }
7424 if test "$hard_links" = no; then
7425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7437 allow_undefined_flag=
7438 enable_shared_with_static_runtimes=no
7440 archive_expsym_cmds=
7441 old_archive_From_new_cmds=
7442 old_archive_from_expsyms_cmds=
7443 export_dynamic_flag_spec=
7444 whole_archive_flag_spec=
7445 thread_safe_flag_spec=
7446 hardcode_libdir_flag_spec=
7447 hardcode_libdir_flag_spec_ld=
7448 hardcode_libdir_separator=
7451 hardcode_shlibpath_var=unsupported
7452 link_all_deplibs=unknown
7453 hardcode_automatic=no
7456 always_export_symbols=no
7457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7458 # include_expsyms should be a list of space-separated symbols to be *always*
7459 # included in the symbol list
7461 # exclude_expsyms can be an extended regexp of symbols to exclude
7462 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7463 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7464 # as well as any symbol that contains `d'.
7465 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7467 # platforms (ab)use it in PIC code, but their linkers get confused if
7468 # the symbol is explicitly referenced. Since portable code cannot
7469 # rely on this symbol name, it's probably fine to never include it in
7470 # preloaded symbol tables.
7471 extract_expsyms_cmds=
7472 # Just being paranoid about ensuring that cc_basename is set.
7473 for cc_temp in $compiler""; do
7475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7484 cygwin* | mingw* | pw32*)
7485 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7486 # When not using gcc, we currently assume that we are using
7487 # Microsoft Visual C++.
7488 if test "$GCC" != yes; then
7493 # we just hope/assume this is gcc and not c89 (= MSVC++)
7502 if test "$with_gnu_ld" = yes; then
7503 # If archive_cmds runs LD, not CC, wlarc should be empty
7506 # Set some defaults for GNU ld with shared library support. These
7507 # are reset later if shared libraries are not supported. Putting them
7508 # here allows them to be overridden if necessary.
7509 runpath_var=LD_RUN_PATH
7510 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7511 export_dynamic_flag_spec='${wl}--export-dynamic'
7512 # ancient GNU ld didn't support --whole-archive et. al.
7513 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7514 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7516 whole_archive_flag_spec=
7518 supports_anon_versioning=no
7519 case `$LD -v 2>/dev/null` in
7520 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7523 *\ 2.11.*) ;; # other 2.11 versions
7524 *) supports_anon_versioning=yes ;;
7527 # See if GNU ld supports shared libraries.
7529 aix3* | aix4* | aix5*)
7530 # On AIX/PPC, the GNU linker is very broken
7531 if test "$host_cpu" != ia64; then
7535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7536 *** to be unable to reliably create shared libraries on AIX.
7537 *** Therefore, libtool is disabling shared libraries support. If you
7538 *** really care for shared libraries, you may want to modify your PATH
7539 *** so that a non-GNU linker is found, and then restart.
7546 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)'
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 hardcode_minus_L=yes
7550 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7551 # that the semantics of dynamic libraries on AmigaOS, at least up
7552 # to version 4, is to share data among multiple programs linked
7553 # with the same dynamic library. Since this doesn't match the
7554 # behavior of shared libraries on other platforms, we can't use
7560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7561 allow_undefined_flag=unsupported
7562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7563 # support --undefined. This deserves some investigation. FIXME
7564 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7570 cygwin* | mingw* | pw32*)
7571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7572 # as there is no search path for DLLs.
7573 hardcode_libdir_flag_spec='-L$libdir'
7574 allow_undefined_flag=unsupported
7575 always_export_symbols=no
7576 enable_shared_with_static_runtimes=yes
7577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7579 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7581 # If the export-symbols file already is a .def file (1st line
7582 # is EXPORTS), use it as is; otherwise, prepend...
7583 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7584 cp $export_symbols $output_objdir/$soname.def;
7586 echo EXPORTS > $output_objdir/$soname.def;
7587 cat $export_symbols >> $output_objdir/$soname.def;
7589 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7597 hardcode_shlibpath_var=no
7598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7599 export_dynamic_flag_spec='${wl}-E'
7600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7601 # Instead, shared libraries are loaded at an image base (0x10000000 by
7602 # default) and relocated if they conflict, which is a slow very memory
7603 # consuming and fragmenting process. To avoid this, we pick a random,
7604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7607 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'
7611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7613 case $cc_basename,$host_cpu in
7614 pgcc*) # Portland Group C compiler
7615 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'
7616 tmp_addflag=' $pic_flag'
7618 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7619 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'
7620 tmp_addflag=' $pic_flag -Mnomain' ;;
7621 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7622 tmp_addflag=' -i_dynamic' ;;
7623 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7624 tmp_addflag=' -i_dynamic -nofor_main' ;;
7625 ifc* | ifort*) # Intel Fortran compiler
7626 tmp_addflag=' -nofor_main' ;;
7628 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7630 if test $supports_anon_versioning = yes; then
7631 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7633 $echo "local: *; };" >> $output_objdir/$libname.ver~
7634 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7642 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7643 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7647 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7652 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7656 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7657 *** create shared libraries on Solaris systems. Therefore, libtool
7658 *** is disabling shared libraries support. We urge you to upgrade GNU
7659 *** binutils to release 2.9.1 or newer. Another option is to modify
7660 *** your PATH or compiler configuration so that the native linker is
7661 *** used, and then restart.
7664 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7665 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7666 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7672 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7673 case `$LD -v 2>&1` in
7674 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7678 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7679 *** reliably create shared libraries on SCO systems. Therefore, libtool
7680 *** is disabling shared libraries support. We urge you to upgrade GNU
7681 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7682 *** your PATH or compiler configuration so that the native linker is
7683 *** used, and then restart.
7688 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7689 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7691 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7700 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7703 hardcode_shlibpath_var=no
7707 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7716 if test "$ld_shlibs" = no; then
7718 hardcode_libdir_flag_spec=
7719 export_dynamic_flag_spec=
7720 whole_archive_flag_spec=
7723 # PORTME fill in a description of your system's linker (not GNU ld)
7726 allow_undefined_flag=unsupported
7727 always_export_symbols=yes
7728 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'
7729 # Note: this linker hardcodes the directories in LIBPATH if there
7730 # are no directories specified by -L.
7731 hardcode_minus_L=yes
7732 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7733 # Neither direct hardcoding nor static linking is supported with a
7735 hardcode_direct=unsupported
7740 if test "$host_cpu" = ia64; then
7741 # On IA64, the linker does run time linking by default, so we don't
7742 # have to do anything special.
7743 aix_use_runtimelinking=no
7744 exp_sym_flag='-Bexport'
7747 # If we're using GNU nm, then we don't want the "-C" option.
7748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7749 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7750 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'
7752 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'
7754 aix_use_runtimelinking=no
7756 # Test if we are trying to use run time linking or normal
7757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7758 # need to do runtime linking.
7759 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7760 for ld_flag in $LDFLAGS; do
7761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7762 aix_use_runtimelinking=yes
7769 exp_sym_flag='-bexport'
7770 no_entry_flag='-bnoentry'
7773 # When large executables or shared objects are built, AIX ld can
7774 # have problems creating the table of contents. If linking a library
7775 # or program results in "error TOC overflow" add -mminimal-toc to
7776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7781 hardcode_libdir_separator=':'
7782 link_all_deplibs=yes
7784 if test "$GCC" = yes; then
7785 case $host_os in aix4.[012]|aix4.[012].*)
7786 # We only want to do this on AIX 4.2 and lower, the check
7787 # below for broken collect2 doesn't work under 4.3+
7788 collect2name=`${CC} -print-prog-name=collect2`
7789 if test -f "$collect2name" && \
7790 strings "$collect2name" | grep resolve_lib_name >/dev/null
7792 # We have reworked collect2
7795 # We have old collect2
7796 hardcode_direct=unsupported
7797 # It fails to find uninstalled libraries when the uninstalled
7798 # path is not listed in the libpath. Setting hardcode_minus_L
7799 # to unsupported forces relinking
7800 hardcode_minus_L=yes
7801 hardcode_libdir_flag_spec='-L$libdir'
7802 hardcode_libdir_separator=
7806 shared_flag='-shared'
7807 if test "$aix_use_runtimelinking" = yes; then
7808 shared_flag="$shared_flag "'${wl}-G'
7812 if test "$host_cpu" = ia64; then
7813 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7814 # chokes on -Wl,-G. The following line is correct:
7817 if test "$aix_use_runtimelinking" = yes; then
7818 shared_flag='${wl}-G'
7820 shared_flag='${wl}-bM:SRE'
7825 # It seems that -bexpall does not export symbols beginning with
7826 # underscore (_), so it is better to generate a list of symbols to export.
7827 always_export_symbols=yes
7828 if test "$aix_use_runtimelinking" = yes; then
7829 # Warning - without using the other runtime loading flags (-brtl),
7830 # -berok will link without error, but may produce a broken library.
7831 allow_undefined_flag='-berok'
7832 # Determine the default libpath from the value encoded in an empty executable.
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (ac_try="$ac_link"
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855 (eval "$ac_link") 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7863 { (case "(($ac_try" in
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_try") 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); }; } &&
7872 { ac_try='test -s conftest$ac_exeext'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7883 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7885 # Check for a 64-bit object if we didn't find anything.
7886 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7895 rm -f core conftest.err conftest.$ac_objext \
7896 conftest$ac_exeext conftest.$ac_ext
7897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7902 if test "$host_cpu" = ia64; then
7903 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7904 allow_undefined_flag="-z nodefs"
7905 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"
7907 # Determine the default libpath from the value encoded in an empty executable.
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } &&
7937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7938 { (case "(($ac_try" in
7939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_try") 2>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest$ac_exeext'
7948 { (case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_try") 2>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); }; }; then
7958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7960 # Check for a 64-bit object if we didn't find anything.
7961 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7974 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7975 # Warning - without using the other run time loading flags,
7976 # -berok will link without error, but may produce a broken library.
7977 no_undefined_flag=' ${wl}-bernotok'
7978 allow_undefined_flag=' ${wl}-berok'
7979 # Exported symbols can be pulled into shared objects from archives
7980 whole_archive_flag_spec='$convenience'
7981 archive_cmds_need_lc=yes
7982 # This is similar to how AIX traditionally builds its shared libraries.
7983 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'
7989 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)'
7990 hardcode_libdir_flag_spec='-L$libdir'
7991 hardcode_minus_L=yes
7992 # see comment about different semantics on the GNU ld section
7997 export_dynamic_flag_spec=-rdynamic
8000 cygwin* | mingw* | pw32*)
8001 # When not using gcc, we currently assume that we are using
8002 # Microsoft Visual C++.
8003 # hardcode_libdir_flag_spec is actually meaningless, as there is
8004 # no search path for DLLs.
8005 hardcode_libdir_flag_spec=' '
8006 allow_undefined_flag=unsupported
8007 # Tell ltmain to make .lib files, not .a files.
8009 # Tell ltmain to make .dll files, not .so files.
8011 # FIXME: Setting linknames here is a bad hack.
8012 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8013 # The linker will automatically build a .lib file if we build a DLL.
8014 old_archive_From_new_cmds='true'
8015 # FIXME: Should let the user specify the lib program.
8016 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8017 fix_srcfile_path='`cygpath -w "$srcfile"`'
8018 enable_shared_with_static_runtimes=yes
8021 darwin* | rhapsody*)
8023 rhapsody* | darwin1.[012])
8024 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8027 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8028 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8030 case ${MACOSX_DEPLOYMENT_TARGET} in
8032 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8035 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8041 archive_cmds_need_lc=no
8043 hardcode_automatic=yes
8044 hardcode_shlibpath_var=unsupported
8045 whole_archive_flag_spec=''
8046 link_all_deplibs=yes
8047 if test "$GCC" = yes ; then
8048 output_verbose_link_cmd='echo'
8049 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8050 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8051 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8052 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8053 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8055 case $cc_basename in
8057 output_verbose_link_cmd='echo'
8058 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8059 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8060 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8061 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8062 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073 hardcode_libdir_flag_spec='-L$libdir'
8074 hardcode_shlibpath_var=no
8081 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8082 # support. Future versions do this automatically, but an explicit c++rt0.o
8083 # does not break anything, and helps significantly (at the cost of a little
8086 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8087 hardcode_libdir_flag_spec='-R$libdir'
8089 hardcode_shlibpath_var=no
8092 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8096 hardcode_minus_L=yes
8097 hardcode_shlibpath_var=no
8100 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8101 freebsd* | kfreebsd*-gnu | dragonfly*)
8102 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8103 hardcode_libdir_flag_spec='-R$libdir'
8105 hardcode_shlibpath_var=no
8109 if test "$GCC" = yes; then
8110 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'
8112 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'
8114 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8115 hardcode_libdir_separator=:
8118 # hardcode_minus_L: Not really in the search PATH,
8119 # but as the default location of the library.
8120 hardcode_minus_L=yes
8121 export_dynamic_flag_spec='${wl}-E'
8125 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8126 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8128 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8130 if test "$with_gnu_ld" = no; then
8131 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8132 hardcode_libdir_separator=:
8135 export_dynamic_flag_spec='${wl}-E'
8137 # hardcode_minus_L: Not really in the search PATH,
8138 # but as the default location of the library.
8139 hardcode_minus_L=yes
8144 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8147 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8150 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8159 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8162 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8165 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8169 if test "$with_gnu_ld" = no; then
8170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8171 hardcode_libdir_separator=:
8175 hardcode_libdir_flag_spec_ld='+b $libdir'
8177 hardcode_shlibpath_var=no
8181 export_dynamic_flag_spec='${wl}-E'
8183 # hardcode_minus_L: Not really in the search PATH,
8184 # but as the default location of the library.
8185 hardcode_minus_L=yes
8191 irix5* | irix6* | nonstopux*)
8192 if test "$GCC" = yes; then
8193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8195 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8196 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8198 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8199 hardcode_libdir_separator=:
8200 link_all_deplibs=yes
8204 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8205 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8207 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8209 hardcode_libdir_flag_spec='-R$libdir'
8211 hardcode_shlibpath_var=no
8215 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8217 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8218 hardcode_libdir_separator=:
8219 hardcode_shlibpath_var=no
8224 hardcode_shlibpath_var=no
8225 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8226 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8227 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8229 export_dynamic_flag_spec='${wl}-E'
8232 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8234 hardcode_libdir_flag_spec='-R$libdir'
8237 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8238 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245 hardcode_libdir_flag_spec='-L$libdir'
8246 hardcode_minus_L=yes
8247 allow_undefined_flag=unsupported
8248 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'
8249 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8253 if test "$GCC" = yes; then
8254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8255 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8257 allow_undefined_flag=' -expect_unresolved \*'
8258 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8261 hardcode_libdir_separator=:
8264 osf4* | osf5*) # as osf3* with the addition of -msym flag
8265 if test "$GCC" = yes; then
8266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8267 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8270 allow_undefined_flag=' -expect_unresolved \*'
8271 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8272 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8273 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8275 # Both c and cxx compiler support -rpath directly
8276 hardcode_libdir_flag_spec='-rpath $libdir'
8278 hardcode_libdir_separator=:
8282 no_undefined_flag=' -z text'
8283 if test "$GCC" = yes; then
8285 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8286 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8287 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8290 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8291 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8294 hardcode_libdir_flag_spec='-R$libdir'
8295 hardcode_shlibpath_var=no
8297 solaris2.[0-5] | solaris2.[0-5].*) ;;
8299 # The compiler driver will combine linker options so we
8300 # cannot just pass the convience library names through
8301 # without $wl, iff we do not link with $LD.
8302 # Luckily, gcc supports the same syntax we need for Sun Studio.
8303 # Supported since Solaris 2.6 (maybe 2.5.1?)
8306 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8308 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8311 link_all_deplibs=yes
8315 if test "x$host_vendor" = xsequent; then
8316 # Use $CC to link under sequent, because it throws in some extra .o
8317 # files that make .init and .fini sections work.
8318 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8322 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_minus_L=yes
8325 hardcode_shlibpath_var=no
8329 case $host_vendor in
8331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8332 hardcode_direct=yes # is this really true???
8335 ## LD is ld it makes a PLAMLIB
8336 ## CC just makes a GrossModule.
8337 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8338 reload_cmds='$CC -r -o $output$reload_objs'
8342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8343 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8346 runpath_var='LD_RUN_PATH'
8347 hardcode_shlibpath_var=no
8351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352 hardcode_shlibpath_var=no
8353 export_dynamic_flag_spec='-Bexport'
8357 if test -d /usr/nec; then
8358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8359 hardcode_shlibpath_var=no
8360 runpath_var=LD_RUN_PATH
8361 hardcode_runpath_var=yes
8366 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8367 no_undefined_flag='${wl}-z,text'
8368 archive_cmds_need_lc=no
8369 hardcode_shlibpath_var=no
8370 runpath_var='LD_RUN_PATH'
8372 if test "$GCC" = yes; then
8373 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8374 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8376 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8377 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8381 sysv5* | sco3.2v5* | sco5v6*)
8382 # Note: We can NOT use -z defs as we might desire, because we do not
8383 # link with -lc, and that would cause any symbols used from libc to
8384 # always be unresolved, which means just about no library would
8385 # ever link correctly. If we're not using GNU ld we use -z text
8386 # though, which does catch some bad symbols but isn't as heavy-handed
8388 no_undefined_flag='${wl}-z,text'
8389 allow_undefined_flag='${wl}-z,nodefs'
8390 archive_cmds_need_lc=no
8391 hardcode_shlibpath_var=no
8392 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8393 hardcode_libdir_separator=':'
8394 link_all_deplibs=yes
8395 export_dynamic_flag_spec='${wl}-Bexport'
8396 runpath_var='LD_RUN_PATH'
8398 if test "$GCC" = yes; then
8399 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8400 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8402 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8403 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409 hardcode_libdir_flag_spec='-L$libdir'
8410 hardcode_shlibpath_var=no
8419 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8420 echo "${ECHO_T}$ld_shlibs" >&6; }
8421 test "$ld_shlibs" = no && can_build_shared=no
8424 # Do we need to explicitly link libc?
8426 case "x$archive_cmds_need_lc" in
8428 # Assume -lc should be added
8429 archive_cmds_need_lc=yes
8431 if test "$enable_shared" = yes && test "$GCC" = yes; then
8432 case $archive_cmds in
8434 # FIXME: we may have to deal with multi-command sequences.
8437 # Test whether the compiler implicitly links with -lc since on some
8438 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8439 # to ld, don't add -lc before -lgcc.
8440 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8441 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8443 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8446 (eval $ac_compile) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } 2>conftest.err; then
8452 libobjs=conftest.$ac_objext
8454 wl=$lt_prog_compiler_wl
8455 pic_flag=$lt_prog_compiler_pic
8461 lt_save_allow_undefined_flag=$allow_undefined_flag
8462 allow_undefined_flag=
8463 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8464 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }
8469 archive_cmds_need_lc=no
8471 archive_cmds_need_lc=yes
8473 allow_undefined_flag=$lt_save_allow_undefined_flag
8475 cat conftest.err 1>&5
8478 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8479 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8486 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8487 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8489 libname_spec='lib$name'
8497 shlibpath_overrides_runpath=unknown
8499 dynamic_linker="$host_os ld.so"
8500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8501 if test "$GCC" = yes; then
8502 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8503 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8504 # if the path contains ";" then we assume it to be the separator
8505 # otherwise default to the standard path separator (i.e. ":") - it is
8506 # assumed that no part of a normal pathname contains ";" but that should
8507 # okay in the real world where ";" in dirpaths is itself problematic.
8508 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8513 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8515 need_lib_prefix=unknown
8516 hardcode_into_libs=no
8518 # when you set need_version to no, make sure it does not cause -set_version
8519 # flags to be left without arguments
8520 need_version=unknown
8525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8526 shlibpath_var=LIBPATH
8528 # AIX 3 has no versioning support, so we append a major version to the name.
8529 soname_spec='${libname}${release}${shared_ext}$major'
8536 hardcode_into_libs=yes
8537 if test "$host_cpu" = ia64; then
8538 # AIX 5 supports IA64
8539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8540 shlibpath_var=LD_LIBRARY_PATH
8542 # With GCC up to 2.95.x, collect2 would create an import file
8543 # for dependence libraries. The import file would start with
8544 # the line `#! .'. This would cause the generated library to
8545 # depend on `.', always an invalid library. This was fixed in
8546 # development snapshots of GCC prior to 3.0.
8548 aix4 | aix4.[01] | aix4.[01].*)
8549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8551 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8559 # soname into executable. Probably we can add versioning support to
8560 # collect2, so additional links can be useful in future.
8561 if test "$aix_use_runtimelinking" = yes; then
8562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8563 # instead of lib<name>.a to let people know that these are not
8564 # typical AIX shared libraries.
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8567 # We preserve .a as extension for shared libraries through AIX4.2
8568 # and later when we are not doing run time linking.
8569 library_names_spec='${libname}${release}.a $libname.a'
8570 soname_spec='${libname}${release}${shared_ext}$major'
8572 shlibpath_var=LIBPATH
8577 library_names_spec='$libname.ixlibrary $libname.a'
8578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8579 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'
8583 library_names_spec='${libname}${shared_ext}'
8584 dynamic_linker="$host_os ld.so"
8585 shlibpath_var=LIBRARY_PATH
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8592 soname_spec='${libname}${release}${shared_ext}$major'
8593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8594 shlibpath_var=LD_LIBRARY_PATH
8595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8597 # the default ld.so.conf also contains /usr/contrib/lib and
8598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8599 # libtool to hard-code these into programs
8602 cygwin* | mingw* | pw32*)
8603 version_type=windows
8608 case $GCC,$host_os in
8609 yes,cygwin* | yes,mingw* | yes,pw32*)
8610 library_names_spec='$libname.dll.a'
8611 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8612 postinstall_cmds='base_file=`basename \${file}`~
8613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8614 dldir=$destdir/`dirname \$dlpath`~
8615 test -d \$dldir || mkdir -p \$dldir~
8616 $install_prog $dir/$dlname \$dldir/$dlname~
8617 chmod a+x \$dldir/$dlname'
8618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8619 dlpath=$dir/\$dldll~
8621 shlibpath_overrides_runpath=yes
8625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8627 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8630 # MinGW DLLs use traditional 'lib' prefix
8631 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8632 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8633 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8634 # It is most probably a Windows format PATH printed by
8635 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8636 # path with ; separators, and with drive letters. We can handle the
8637 # drive letters (cygwin fileutils understands them), so leave them,
8638 # especially as we might pass files found there to a mingw objdump,
8639 # which wouldn't understand a cygwinified path. Ahh.
8640 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8646 # pw32 DLLs use 'pw' prefix rather than 'lib'
8647 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8653 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
8654 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8655 supports_anon_versioning=no
8656 case `$LD -v 2>/dev/null` in
8657 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8660 *\ 2.11.*) ;; # other 2.11 versions
8661 *) supports_anon_versioning=yes ;;
8663 if test $supports_anon_versioning = yes; then
8664 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8666 $echo "local: *; };" >> $output_objdir/$libname.ver~
8667 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8669 $archive_expsym_cmds="$archive_cmds"
8677 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8680 dynamic_linker='Win32 ld.exe'
8681 # FIXME: first we should search . and the directory the executable is in
8685 darwin* | rhapsody*)
8686 dynamic_linker="$host_os dyld"
8690 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8691 soname_spec='${libname}${release}${major}$shared_ext'
8692 shlibpath_overrides_runpath=yes
8693 shlibpath_var=DYLD_LIBRARY_PATH
8694 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8695 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8696 if test "$GCC" = yes; then
8697 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8699 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8701 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8709 soname_spec='${libname}${release}${shared_ext}$major'
8710 shlibpath_var=LD_LIBRARY_PATH
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8722 soname_spec='${libname}${release}${shared_ext}$major'
8723 shlibpath_var=LD_LIBRARY_PATH
8724 shlibpath_overrides_runpath=no
8725 hardcode_into_libs=yes
8726 dynamic_linker='GNU ld.so'
8729 freebsd* | dragonfly*)
8730 # DragonFly does not have aout. When/if they implement a new
8731 # versioning mechanism, adjust this.
8732 if test -x /usr/bin/objformat; then
8733 objformat=`/usr/bin/objformat`
8736 freebsd[123]*) objformat=aout ;;
8740 # Handle Gentoo/FreeBSD as it was Linux
8741 case $host_vendor in
8743 version_type=linux ;;
8745 version_type=freebsd-$objformat ;;
8748 case $version_type in
8750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LD_LIBRARY_PATH
8768 shlibpath_overrides_runpath=yes
8770 freebsd3.[01]* | freebsdelf3.[01]*)
8771 shlibpath_overrides_runpath=yes
8772 hardcode_into_libs=yes
8774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8776 shlibpath_overrides_runpath=no
8777 hardcode_into_libs=yes
8779 freebsd*) # from 4.6 on
8780 shlibpath_overrides_runpath=yes
8781 hardcode_into_libs=yes
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 shlibpath_var=LD_LIBRARY_PATH
8793 hardcode_into_libs=yes
8796 hpux9* | hpux10* | hpux11*)
8797 # Give a soname corresponding to the major version so that dld.sl refuses to
8798 # link against other versions.
8805 hardcode_into_libs=yes
8806 dynamic_linker="$host_os dld.so"
8807 shlibpath_var=LD_LIBRARY_PATH
8808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8810 soname_spec='${libname}${release}${shared_ext}$major'
8811 if test "X$HPUX_IA64_MODE" = X32; then
8812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8820 hardcode_into_libs=yes
8821 dynamic_linker="$host_os dld.sl"
8822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 dynamic_linker="$host_os dld.sl"
8832 shlibpath_var=SHLIB_PATH
8833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8835 soname_spec='${libname}${release}${shared_ext}$major'
8838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8839 postinstall_cmds='chmod 555 $lib'
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8847 soname_spec='${libname}${release}${shared_ext}$major'
8848 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8849 shlibpath_var=LD_LIBRARY_PATH
8850 shlibpath_overrides_runpath=no
8851 hardcode_into_libs=yes
8854 irix5* | irix6* | nonstopux*)
8856 nonstopux*) version_type=nonstopux ;;
8858 if test "$lt_cv_prog_gnu_ld" = yes; then
8866 soname_spec='${libname}${release}${shared_ext}$major'
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8869 irix5* | nonstopux*)
8873 case $LD in # libtool.m4 will add one of these switches to LD
8874 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8875 libsuff= shlibsuff= libmagic=32-bit;;
8876 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8877 libsuff=32 shlibsuff=N32 libmagic=N32;;
8878 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8879 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8880 *) libsuff= shlibsuff= libmagic=never-match;;
8884 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8885 shlibpath_overrides_runpath=no
8886 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8887 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8888 hardcode_into_libs=yes
8891 # No shared lib support for Linux oldld, aout, or coff.
8892 linux*oldld* | linux*aout* | linux*coff*)
8896 # This must be Linux ELF.
8901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8902 soname_spec='${libname}${release}${shared_ext}$major'
8903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=no
8906 # This implies no fast_install, which is unacceptable.
8907 # Some rework will be needed to allow for fast_install
8908 # before this can be enabled.
8909 hardcode_into_libs=yes
8911 # Append ld.so.conf contents to the search path
8912 if test -f /etc/ld.so.conf; then
8913 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8914 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8917 # We used to test for /lib/ld.so.1 and disable shared libraries on
8918 # powerpc, because MkLinux only supported shared libraries with the
8919 # GNU dynamic linker. Since this was broken with cross compilers,
8920 # most powerpc-linux boxes support dynamic linking these days and
8921 # people can always --disable-shared, the test was removed, and we
8922 # assume the GNU/Linux dynamic linker is in use.
8923 dynamic_linker='GNU/Linux ld.so'
8930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8931 soname_spec='${libname}${release}${shared_ext}$major'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 shlibpath_overrides_runpath=no
8934 hardcode_into_libs=yes
8935 dynamic_linker='GNU ld.so'
8942 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8945 dynamic_linker='NetBSD (a.out) ld.so'
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 dynamic_linker='NetBSD ld.elf_so'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 shlibpath_var=LD_LIBRARY_PATH
8960 shlibpath_overrides_runpath=yes
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath=yes
8975 sys_lib_dlsearch_path_spec="/usr/lib"
8977 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8979 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8980 *) need_version=no ;;
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8987 openbsd2.[89] | openbsd2.[89].*)
8988 shlibpath_overrides_runpath=no
8991 shlibpath_overrides_runpath=yes
8995 shlibpath_overrides_runpath=yes
9000 libname_spec='$name'
9003 library_names_spec='$libname${shared_ext} $libname.a'
9004 dynamic_linker='OS/2 ld.exe'
9005 shlibpath_var=LIBPATH
9008 osf3* | osf4* | osf5*)
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 shlibpath_var=LD_LIBRARY_PATH
9015 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9016 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 shlibpath_overrides_runpath=yes
9027 hardcode_into_libs=yes
9028 # ldd complains unless libraries are executable
9029 postinstall_cmds='chmod +x $lib'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9035 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9036 shlibpath_var=LD_LIBRARY_PATH
9037 shlibpath_overrides_runpath=yes
9038 if test "$with_gnu_ld" = yes; then
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 case $host_vendor in
9051 shlibpath_overrides_runpath=no
9053 export_dynamic_flag_spec='${wl}-Blargedynsym'
9054 runpath_var=LD_RUN_PATH
9062 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9069 if test -d /usr/nec ;then
9071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9072 soname_spec='$libname${shared_ext}.$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9077 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9078 version_type=freebsd-elf
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 hardcode_into_libs=yes
9085 if test "$with_gnu_ld" = yes; then
9086 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9087 shlibpath_overrides_runpath=no
9089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9090 shlibpath_overrides_runpath=yes
9093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9097 sys_lib_dlsearch_path_spec='/usr/lib'
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9111 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9112 echo "${ECHO_T}$dynamic_linker" >&6; }
9113 test "$dynamic_linker" = no && can_build_shared=no
9115 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9116 if test "$GCC" = yes; then
9117 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9120 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9121 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9123 if test -n "$hardcode_libdir_flag_spec" || \
9124 test -n "$runpath_var" || \
9125 test "X$hardcode_automatic" = "Xyes" ; then
9127 # We can hardcode non-existant directories.
9128 if test "$hardcode_direct" != no &&
9129 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9130 # have to relink, otherwise we might link with an installed library
9131 # when we should be linking with a yet-to-be-installed one
9132 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9133 test "$hardcode_minus_L" != no; then
9134 # Linking always hardcodes the temporary library directory.
9135 hardcode_action=relink
9137 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9138 hardcode_action=immediate
9141 # We cannot hardcode anything, or else we can only hardcode existing
9143 hardcode_action=unsupported
9145 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9146 echo "${ECHO_T}$hardcode_action" >&6; }
9148 if test "$hardcode_action" = relink; then
9149 # Fast installation is not supported
9150 enable_fast_install=no
9151 elif test "$shlibpath_overrides_runpath" = yes ||
9152 test "$enable_shared" = no; then
9153 # Fast installation is not necessary
9154 enable_fast_install=needless
9159 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9160 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9161 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9162 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9163 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9164 { echo "$as_me:$LINENO: result: yes" >&5
9165 echo "${ECHO_T}yes" >&6; }
9167 # FIXME - insert some real tests, host_os isn't really good enough
9170 if test -n "$STRIP" ; then
9171 striplib="$STRIP -x"
9172 { echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6; }
9175 { echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6; }
9180 { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9186 if test "x$enable_dlopen" != xyes; then
9187 enable_dlopen=unknown
9188 enable_dlopen_self=unknown
9189 enable_dlopen_self_static=unknown
9196 lt_cv_dlopen="load_add_on"
9198 lt_cv_dlopen_self=yes
9202 lt_cv_dlopen="LoadLibrary"
9207 lt_cv_dlopen="dlopen"
9212 # if libdl is installed we need to link against it
9213 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9214 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 ac_check_lib_save_LIBS=$LIBS
9220 cat >conftest.$ac_ext <<_ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h. */
9227 /* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (ac_try="$ac_link"
9245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9246 *) ac_try_echo=$ac_try;;
9248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9249 (eval "$ac_link") 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } &&
9256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9257 { (case "(($ac_try" in
9258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_try") 2>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_try") 2>&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; }; then
9276 ac_cv_lib_dl_dlopen=yes
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9281 ac_cv_lib_dl_dlopen=no
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9290 if test $ac_cv_lib_dl_dlopen = yes; then
9291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9296 lt_cv_dlopen_self=yes
9303 { echo "$as_me:$LINENO: checking for shl_load" >&5
9304 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9305 if test "${ac_cv_func_shl_load+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 cat >conftest.$ac_ext <<_ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */
9314 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9316 #define shl_load innocuous_shl_load
9318 /* System header to define __stub macros and hopefully few prototypes,
9319 which can conflict with char shl_load (); below.
9320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9321 <limits.h> exists even on freestanding compilers. */
9324 # include <limits.h>
9326 # include <assert.h>
9331 /* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9338 /* The GNU C library defines this for functions which it implements
9339 to always fail with ENOSYS. Some functions are actually named
9340 something starting with __ and the normal name is an alias. */
9341 #if defined __stub_shl_load || defined __stub___shl_load
9353 rm -f conftest.$ac_objext conftest$ac_exeext
9354 if { (ac_try="$ac_link"
9356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9357 *) ac_try_echo=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_link") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1 >conftest.err
9364 cat conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } &&
9367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9368 { (case "(($ac_try" in
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_try") 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; } &&
9377 { ac_try='test -s conftest$ac_exeext'
9378 { (case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_try") 2>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_func_shl_load=yes
9389 echo "$as_me: failed program was:" >&5
9390 sed 's/^/| /' conftest.$ac_ext >&5
9392 ac_cv_func_shl_load=no
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9398 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9399 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9400 if test $ac_cv_func_shl_load = yes; then
9401 lt_cv_dlopen="shl_load"
9403 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9404 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9405 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9408 ac_check_lib_save_LIBS=$LIBS
9410 cat >conftest.$ac_ext <<_ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (ac_try="$ac_link"
9435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436 *) ac_try_echo=$ac_try;;
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439 (eval "$ac_link") 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9447 { (case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_try") 2>&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (case "(($ac_try" in
9458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459 *) ac_try_echo=$ac_try;;
9461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9462 (eval "$ac_try") 2>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_lib_dld_shl_load=yes
9468 echo "$as_me: failed program was:" >&5
9469 sed 's/^/| /' conftest.$ac_ext >&5
9471 ac_cv_lib_dld_shl_load=no
9474 rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476 LIBS=$ac_check_lib_save_LIBS
9478 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9479 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9480 if test $ac_cv_lib_dld_shl_load = yes; then
9481 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9483 { echo "$as_me:$LINENO: checking for dlopen" >&5
9484 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9485 if test "${ac_cv_func_dlopen+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 cat >conftest.$ac_ext <<_ACEOF
9491 cat confdefs.h >>conftest.$ac_ext
9492 cat >>conftest.$ac_ext <<_ACEOF
9493 /* end confdefs.h. */
9494 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496 #define dlopen innocuous_dlopen
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char dlopen (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9504 # include <limits.h>
9506 # include <assert.h>
9511 /* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9518 /* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
9521 #if defined __stub_dlopen || defined __stub___dlopen
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (ac_try="$ac_link"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
9547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548 { (case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_try") 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_func_dlopen=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_cv_func_dlopen=no
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9578 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9579 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9580 if test $ac_cv_func_dlopen = yes; then
9581 lt_cv_dlopen="dlopen"
9583 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9584 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9585 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 ac_check_lib_save_LIBS=$LIBS
9590 cat >conftest.$ac_ext <<_ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any GCC internal prototype to avoid an error.
9598 Use char because int might match the return type of a GCC
9599 builtin and then its argument prototype would still apply. */
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (ac_try="$ac_link"
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_link") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } &&
9626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9627 { (case "(($ac_try" in
9628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9629 *) ac_try_echo=$ac_try;;
9631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9632 (eval "$ac_try") 2>&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; } &&
9636 { ac_try='test -s conftest$ac_exeext'
9637 { (case "(($ac_try" in
9638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9639 *) ac_try_echo=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_try") 2>&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); }; }; then
9646 ac_cv_lib_dl_dlopen=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.$ac_ext >&5
9651 ac_cv_lib_dl_dlopen=no
9654 rm -f core conftest.err conftest.$ac_objext \
9655 conftest$ac_exeext conftest.$ac_ext
9656 LIBS=$ac_check_lib_save_LIBS
9658 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9659 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9660 if test $ac_cv_lib_dl_dlopen = yes; then
9661 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9663 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9664 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9665 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9673 cat confdefs.h >>conftest.$ac_ext
9674 cat >>conftest.$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9677 /* Override any GCC internal prototype to avoid an error.
9678 Use char because int might match the return type of a GCC
9679 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (ac_try="$ac_link"
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9707 { (case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_try") 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); }; } &&
9716 { ac_try='test -s conftest$ac_exeext'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; }; then
9726 ac_cv_lib_svld_dlopen=yes
9728 echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9731 ac_cv_lib_svld_dlopen=no
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9738 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9739 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9740 if test $ac_cv_lib_svld_dlopen = yes; then
9741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9743 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9744 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS=$LIBS
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779 (eval "$ac_link") 2>conftest.er1
9781 grep -v '^ *+' conftest.er1 >conftest.err
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787 { (case "(($ac_try" in
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_try") 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); }; } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_try") 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_dld_dld_link=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9811 ac_cv_lib_dld_dld_link=no
9814 rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
9816 LIBS=$ac_check_lib_save_LIBS
9818 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9819 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9820 if test $ac_cv_lib_dld_dld_link = yes; then
9821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9842 if test "x$lt_cv_dlopen" != xno; then
9848 case $lt_cv_dlopen in
9850 save_CPPFLAGS="$CPPFLAGS"
9851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9853 save_LDFLAGS="$LDFLAGS"
9854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9857 LIBS="$lt_cv_dlopen_libs $LIBS"
9859 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9860 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9861 if test "${lt_cv_dlopen_self+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 if test "$cross_compiling" = yes; then :
9865 lt_cv_dlopen_self=cross
9867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868 lt_status=$lt_dlunknown
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9880 # define LT_DLGLOBAL RTLD_GLOBAL
9883 # define LT_DLGLOBAL DL_GLOBAL
9885 # define LT_DLGLOBAL 0
9889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890 find out it does not work in some platform. */
9891 #ifndef LT_DLLAZY_OR_NOW
9893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9896 # define LT_DLLAZY_OR_NOW DL_LAZY
9899 # define LT_DLLAZY_OR_NOW RTLD_NOW
9902 # define LT_DLLAZY_OR_NOW DL_NOW
9904 # define LT_DLLAZY_OR_NOW 0
9912 extern "C" void exit (int);
9915 void fnord() { int i=42;}
9918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919 int status = $lt_dlunknown;
9923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925 /* dlclose (self); */
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938 (./conftest; exit; ) >&5 2>/dev/null
9941 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9942 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9943 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9946 # compilation failed
9947 lt_cv_dlopen_self=no
9954 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9955 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9957 if test "x$lt_cv_dlopen_self" = xyes; then
9958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9959 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9960 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9961 if test "${lt_cv_dlopen_self_static+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 if test "$cross_compiling" = yes; then :
9965 lt_cv_dlopen_self_static=cross
9967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9968 lt_status=$lt_dlunknown
9969 cat > conftest.$ac_ext <<EOF
9970 #line 9970 "configure"
9971 #include "confdefs.h"
9980 # define LT_DLGLOBAL RTLD_GLOBAL
9983 # define LT_DLGLOBAL DL_GLOBAL
9985 # define LT_DLGLOBAL 0
9989 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9990 find out it does not work in some platform. */
9991 #ifndef LT_DLLAZY_OR_NOW
9993 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9996 # define LT_DLLAZY_OR_NOW DL_LAZY
9999 # define LT_DLLAZY_OR_NOW RTLD_NOW
10002 # define LT_DLLAZY_OR_NOW DL_NOW
10004 # define LT_DLLAZY_OR_NOW 0
10012 extern "C" void exit (int);
10015 void fnord() { int i=42;}
10018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10019 int status = $lt_dlunknown;
10023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10025 /* dlclose (self); */
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>&5
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10038 (./conftest; exit; ) >&5 2>/dev/null
10040 case x$lt_status in
10041 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10042 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10043 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10046 # compilation failed
10047 lt_cv_dlopen_self_static=no
10054 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10055 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10058 CPPFLAGS="$save_CPPFLAGS"
10059 LDFLAGS="$save_LDFLAGS"
10064 case $lt_cv_dlopen_self in
10065 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10066 *) enable_dlopen_self=unknown ;;
10069 case $lt_cv_dlopen_self_static in
10070 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10071 *) enable_dlopen_self_static=unknown ;;
10076 # Report which library types will actually be built
10077 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10078 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10079 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10080 echo "${ECHO_T}$can_build_shared" >&6; }
10082 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10084 test "$can_build_shared" = "no" && enable_shared=no
10086 # On AIX, shared libraries and static libraries use the same namespace, and
10087 # are all built from PIC.
10090 test "$enable_shared" = yes && enable_static=no
10091 if test -n "$RANLIB"; then
10092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10093 postinstall_cmds='$RANLIB $lib'
10098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10099 test "$enable_shared" = yes && enable_static=no
10103 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10104 echo "${ECHO_T}$enable_shared" >&6; }
10106 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10107 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10108 # Make sure either enable_shared or enable_static is yes.
10109 test "$enable_shared" = yes || enable_static=yes
10110 { echo "$as_me:$LINENO: result: $enable_static" >&5
10111 echo "${ECHO_T}$enable_static" >&6; }
10113 # The else clause should only fire when bootstrapping the
10114 # libtool distribution, otherwise you forgot to ship ltmain.sh
10115 # with your package, and you will get complaints that there are
10116 # no rules to generate ltmain.sh.
10117 if test -f "$ltmain"; then
10118 # See if we are running on zsh, and set the options which allow our commands through
10119 # without removal of \ escapes.
10120 if test -n "${ZSH_VERSION+set}" ; then
10121 setopt NO_GLOB_SUBST
10123 # Now quote all the things that may contain metacharacters while being
10124 # careful not to overquote the AC_SUBSTed values. We take copies of the
10125 # variables and quote the copies for generation of the libtool script.
10126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10130 deplibs_check_method reload_flag reload_cmds need_locks \
10131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10132 lt_cv_sys_global_symbol_to_c_name_address \
10133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10134 old_postinstall_cmds old_postuninstall_cmds \
10138 lt_prog_compiler_wl \
10139 lt_prog_compiler_pic \
10140 lt_prog_compiler_static \
10141 lt_prog_compiler_no_builtin_flag \
10142 export_dynamic_flag_spec \
10143 thread_safe_flag_spec \
10144 whole_archive_flag_spec \
10145 enable_shared_with_static_runtimes \
10147 old_archive_from_new_cmds \
10152 compiler_lib_search_path \
10154 archive_expsym_cmds \
10156 postuninstall_cmds \
10157 old_archive_from_expsyms_cmds \
10158 allow_undefined_flag \
10159 no_undefined_flag \
10160 export_symbols_cmds \
10161 hardcode_libdir_flag_spec \
10162 hardcode_libdir_flag_spec_ld \
10163 hardcode_libdir_separator \
10164 hardcode_automatic \
10166 module_expsym_cmds \
10167 lt_cv_prog_compiler_c_o \
10169 include_expsyms; do
10172 old_archive_cmds | \
10173 old_archive_from_new_cmds | \
10175 archive_expsym_cmds | \
10177 module_expsym_cmds | \
10178 old_archive_from_expsyms_cmds | \
10179 export_symbols_cmds | \
10180 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10181 postinstall_cmds | postuninstall_cmds | \
10182 old_postinstall_cmds | old_postuninstall_cmds | \
10183 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10184 # Double-quote double-evaled strings.
10185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10194 *'\$0 --fallback-echo"')
10195 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10199 cfgfile="${ofile}T"
10200 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10202 { echo "$as_me:$LINENO: creating $ofile" >&5
10203 echo "$as_me: creating $ofile" >&6;}
10205 cat <<__EOF__ >> "$cfgfile"
10208 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10209 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10210 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10212 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10213 # Free Software Foundation, Inc.
10215 # This file is part of GNU Libtool:
10216 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10218 # This program is free software; you can redistribute it and/or modify
10219 # it under the terms of the GNU General Public License as published by
10220 # the Free Software Foundation; either version 2 of the License, or
10221 # (at your option) any later version.
10223 # This program is distributed in the hope that it will be useful, but
10224 # WITHOUT ANY WARRANTY; without even the implied warranty of
10225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10226 # General Public License for more details.
10228 # You should have received a copy of the GNU General Public License
10229 # along with this program; if not, write to the Free Software
10230 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10232 # As a special exception to the GNU General Public License, if you
10233 # distribute this file as part of a program that contains a
10234 # configuration script generated by Autoconf, you may include it under
10235 # the same distribution terms that you use for the rest of that program.
10237 # A sed program that does not truncate output.
10240 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10241 Xsed="$SED -e 1s/^X//"
10243 # The HP-UX ksh and POSIX shell print the target directory to stdout
10244 # if CDPATH is set.
10245 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10247 # The names of the tagged configurations supported by this script.
10250 # ### BEGIN LIBTOOL CONFIG
10252 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10254 # Shell to use when invoking shell scripts.
10257 # Whether or not to build shared libraries.
10258 build_libtool_libs=$enable_shared
10260 # Whether or not to build static libraries.
10261 build_old_libs=$enable_static
10263 # Whether or not to add -lc for building shared libraries.
10264 build_libtool_need_lc=$archive_cmds_need_lc
10266 # Whether or not to disallow shared libs when runtime libs are static
10267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10269 # Whether or not to optimize for fast installation.
10270 fast_install=$enable_fast_install
10273 host_alias=$host_alias
10277 # The build system.
10278 build_alias=$build_alias
10282 # An echo program that does not interpret backslashes.
10287 AR_FLAGS=$lt_AR_FLAGS
10292 # LTCC compiler flags.
10293 LTCFLAGS=$lt_LTCFLAGS
10295 # A language-specific compiler.
10298 # Is the compiler the GNU C compiler?
10304 # The linker used to build libraries.
10307 # Whether we need hard or soft links.
10310 # A BSD-compatible nm program.
10313 # A symbol stripping program
10316 # Used to examine libraries when file_magic_cmd begins "file"
10317 MAGIC_CMD=$MAGIC_CMD
10319 # Used on cygwin: DLL creation program.
10322 # Used on cygwin: object dumper.
10325 # Used on cygwin: assembler.
10328 # The name of the directory that contains temporary libtool files.
10331 # How to create reloadable object files.
10332 reload_flag=$lt_reload_flag
10333 reload_cmds=$lt_reload_cmds
10335 # How to pass a linker flag through the compiler.
10336 wl=$lt_lt_prog_compiler_wl
10338 # Object file suffix (normally "o").
10339 objext="$ac_objext"
10341 # Old archive suffix (normally "a").
10344 # Shared library suffix (normally ".so").
10345 shrext_cmds='$shrext_cmds'
10347 # Executable file suffix (normally "").
10350 # Additional compiler flags for building library objects.
10351 pic_flag=$lt_lt_prog_compiler_pic
10354 # What is the maximum length of a command?
10355 max_cmd_len=$lt_cv_sys_max_cmd_len
10357 # Does compiler simultaneously support -c and -o options?
10358 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10360 # Must we lock files when doing compilation?
10361 need_locks=$lt_need_locks
10363 # Do we need the lib prefix for modules?
10364 need_lib_prefix=$need_lib_prefix
10366 # Do we need a version for libraries?
10367 need_version=$need_version
10369 # Whether dlopen is supported.
10370 dlopen_support=$enable_dlopen
10372 # Whether dlopen of programs is supported.
10373 dlopen_self=$enable_dlopen_self
10375 # Whether dlopen of statically linked programs is supported.
10376 dlopen_self_static=$enable_dlopen_self_static
10378 # Compiler flag to prevent dynamic linking.
10379 link_static_flag=$lt_lt_prog_compiler_static
10381 # Compiler flag to turn off builtin functions.
10382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10384 # Compiler flag to allow reflexive dlopens.
10385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10387 # Compiler flag to generate shared objects directly from archives.
10388 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10390 # Compiler flag to generate thread-safe objects.
10391 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10393 # Library versioning type.
10394 version_type=$version_type
10396 # Format of library name prefix.
10397 libname_spec=$lt_libname_spec
10399 # List of archive names. First name is the real one, the rest are links.
10400 # The last name is the one that the linker finds with -lNAME.
10401 library_names_spec=$lt_library_names_spec
10403 # The coded name of the library, if different from the real name.
10404 soname_spec=$lt_soname_spec
10406 # Commands used to build and install an old-style archive.
10408 old_archive_cmds=$lt_old_archive_cmds
10409 old_postinstall_cmds=$lt_old_postinstall_cmds
10410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10412 # Create an old-style archive from a shared archive.
10413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10415 # Create a temporary old-style archive to link instead of a shared archive.
10416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10418 # Commands used to build and install a shared archive.
10419 archive_cmds=$lt_archive_cmds
10420 archive_expsym_cmds=$lt_archive_expsym_cmds
10421 postinstall_cmds=$lt_postinstall_cmds
10422 postuninstall_cmds=$lt_postuninstall_cmds
10424 # Commands used to build a loadable module (assumed same as above if empty)
10425 module_cmds=$lt_module_cmds
10426 module_expsym_cmds=$lt_module_expsym_cmds
10428 # Commands to strip libraries.
10429 old_striplib=$lt_old_striplib
10430 striplib=$lt_striplib
10432 # Dependencies to place before the objects being linked to create a
10434 predep_objects=$lt_predep_objects
10436 # Dependencies to place after the objects being linked to create a
10438 postdep_objects=$lt_postdep_objects
10440 # Dependencies to place before the objects being linked to create a
10442 predeps=$lt_predeps
10444 # Dependencies to place after the objects being linked to create a
10446 postdeps=$lt_postdeps
10448 # The library search path used internally by the compiler when linking
10449 # a shared library.
10450 compiler_lib_search_path=$lt_compiler_lib_search_path
10452 # Method to check whether dependent libraries are shared objects.
10453 deplibs_check_method=$lt_deplibs_check_method
10455 # Command to use when deplibs_check_method == file_magic.
10456 file_magic_cmd=$lt_file_magic_cmd
10458 # Flag that allows shared libraries with undefined symbols to be built.
10459 allow_undefined_flag=$lt_allow_undefined_flag
10461 # Flag that forces no undefined symbols.
10462 no_undefined_flag=$lt_no_undefined_flag
10464 # Commands used to finish a libtool library installation in a directory.
10465 finish_cmds=$lt_finish_cmds
10467 # Same as above, but a single script fragment to be evaled but not shown.
10468 finish_eval=$lt_finish_eval
10470 # Take the output of nm and produce a listing of raw symbols and C names.
10471 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10473 # Transform the output of nm in a proper C declaration
10474 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10476 # Transform the output of nm in a C name address pair
10477 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10479 # This is the shared library runtime path variable.
10480 runpath_var=$runpath_var
10482 # This is the shared library path variable.
10483 shlibpath_var=$shlibpath_var
10485 # Is shlibpath searched before the hard-coded library search path?
10486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10488 # How to hardcode a shared library path into an executable.
10489 hardcode_action=$hardcode_action
10491 # Whether we should hardcode library paths into libraries.
10492 hardcode_into_libs=$hardcode_into_libs
10494 # Flag to hardcode \$libdir into a binary during linking.
10495 # This must work even if \$libdir does not exist.
10496 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10498 # If ld is used when linking, flag to hardcode \$libdir into
10499 # a binary during linking. This must work even if \$libdir does
10501 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10503 # Whether we need a single -rpath flag with a separated argument.
10504 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10506 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10507 # resulting binary.
10508 hardcode_direct=$hardcode_direct
10510 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10511 # resulting binary.
10512 hardcode_minus_L=$hardcode_minus_L
10514 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10515 # the resulting binary.
10516 hardcode_shlibpath_var=$hardcode_shlibpath_var
10518 # Set to yes if building a shared library automatically hardcodes DIR into the library
10519 # and all subsequent libraries and executables linked against it.
10520 hardcode_automatic=$hardcode_automatic
10522 # Variables whose values should be saved in libtool wrapper scripts and
10523 # restored at relink time.
10524 variables_saved_for_relink="$variables_saved_for_relink"
10526 # Whether libtool must link a program against all its dependency libraries.
10527 link_all_deplibs=$link_all_deplibs
10529 # Compile-time system search path for libraries
10530 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10532 # Run-time system search path for libraries
10533 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10535 # Fix the shell variable \$srcfile for the compiler.
10536 fix_srcfile_path="$fix_srcfile_path"
10538 # Set to yes if exported symbols are required.
10539 always_export_symbols=$always_export_symbols
10541 # The commands to list exported symbols.
10542 export_symbols_cmds=$lt_export_symbols_cmds
10544 # The commands to extract the exported symbol list from a shared archive.
10545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10547 # Symbols that should not be listed in the preloaded symbols.
10548 exclude_expsyms=$lt_exclude_expsyms
10550 # Symbols that must always be exported.
10551 include_expsyms=$lt_include_expsyms
10553 # ### END LIBTOOL CONFIG
10560 cat <<\EOF >> "$cfgfile"
10562 # AIX sometimes has problems with the GCC collect2 program. For some
10563 # reason, if we set the COLLECT_NAMES environment variable, the problems
10564 # vanish in a puff of smoke.
10565 if test "X${COLLECT_NAMES+set}" != Xset; then
10567 export COLLECT_NAMES
10573 # We use sed instead of cat because bash on DJGPP gets confused if
10574 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10575 # text mode, it properly converts lines to CR/LF. This bash problem
10576 # is reportedly fixed, but why not run on old versions too?
10577 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10579 mv -f "$cfgfile" "$ofile" || \
10580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10584 # If there is no Makefile yet, we rely on a make rule to execute
10585 # `config.status --recheck' to rerun these tests and create the
10586 # libtool script then.
10587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10588 if test -f "$ltmain_in"; then
10589 test -f Makefile && make "$ltmain"
10595 ac_cpp='$CPP $CPPFLAGS'
10596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10603 # Check whether --with-tags was given.
10604 if test "${with_tags+set}" = set; then
10605 withval=$with_tags; tagnames="$withval"
10609 if test -f "$ltmain" && test -n "$tagnames"; then
10610 if test ! -f "${ofile}"; then
10611 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10612 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10615 if test -z "$LTCC"; then
10616 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10617 if test -z "$LTCC"; then
10618 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10619 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10622 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10625 if test -z "$LTCFLAGS"; then
10626 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10629 # Extract list of available tagged configurations in $ofile.
10630 # Note that this assumes the entire list is on one line.
10631 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10634 for tagname in $tagnames; do
10636 # Check whether tagname contains only valid characters
10637 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10639 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10640 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10641 { (exit 1); exit 1; }; }
10645 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10647 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10648 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10649 { (exit 1); exit 1; }; }
10652 # Update the list of available tags.
10653 if test -n "$tagname"; then
10654 echo appending configuration tag \"$tagname\" to $ofile
10658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10660 (test "X$CXX" != "Xg++"))) ; then
10662 ac_cpp='$CXXCPP $CPPFLAGS'
10663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10670 archive_cmds_need_lc_CXX=no
10671 allow_undefined_flag_CXX=
10672 always_export_symbols_CXX=no
10673 archive_expsym_cmds_CXX=
10674 export_dynamic_flag_spec_CXX=
10675 hardcode_direct_CXX=no
10676 hardcode_libdir_flag_spec_CXX=
10677 hardcode_libdir_flag_spec_ld_CXX=
10678 hardcode_libdir_separator_CXX=
10679 hardcode_minus_L_CXX=no
10680 hardcode_shlibpath_var_CXX=unsupported
10681 hardcode_automatic_CXX=no
10683 module_expsym_cmds_CXX=
10684 link_all_deplibs_CXX=unknown
10685 old_archive_cmds_CXX=$old_archive_cmds
10686 no_undefined_flag_CXX=
10687 whole_archive_flag_spec_CXX=
10688 enable_shared_with_static_runtimes_CXX=no
10690 # Dependencies to place before and after the object being linked:
10691 predep_objects_CXX=
10692 postdep_objects_CXX=
10695 compiler_lib_search_path_CXX=
10697 # Source file extension for C++ test sources.
10700 # Object file extension for compiled C++ test sources.
10704 # Code to be used in simple compile tests
10705 lt_simple_compile_test_code="int some_variable = 0;\n"
10707 # Code to be used in simple link tests
10708 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10712 # If no C compiler was specified, use CC.
10715 # If no C compiler flags were specified, use CFLAGS.
10716 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10718 # Allow CC to be a program name with arguments.
10722 # save warnings/boilerplate of simple test code
10723 ac_outfile=conftest.$ac_objext
10724 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10725 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726 _lt_compiler_boilerplate=`cat conftest.err`
10729 ac_outfile=conftest.$ac_objext
10730 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10731 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10732 _lt_linker_boilerplate=`cat conftest.err`
10736 # Allow CC to be a program name with arguments.
10741 lt_save_with_gnu_ld=$with_gnu_ld
10742 lt_save_path_LD=$lt_cv_path_LD
10743 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10744 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10746 $as_unset lt_cv_prog_gnu_ld
10748 if test -n "${lt_cv_path_LDCXX+set}"; then
10749 lt_cv_path_LD=$lt_cv_path_LDCXX
10751 $as_unset lt_cv_path_LD
10753 test -z "${LDCXX+set}" || LD=$LDCXX
10757 for cc_temp in $compiler""; do
10759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10768 # We don't want -fno-exception wen compiling C++ code, so set the
10769 # no_builtin_flag separately
10770 if test "$GXX" = yes; then
10771 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10773 lt_prog_compiler_no_builtin_flag_CXX=
10776 if test "$GXX" = yes; then
10777 # Set up default GNU C++ configuration
10780 # Check whether --with-gnu-ld was given.
10781 if test "${with_gnu_ld+set}" = set; then
10782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10788 if test "$GCC" = yes; then
10789 # Check if gcc -print-prog-name=ld gives a path.
10790 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10791 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10794 # gcc leaves a trailing carriage return which upsets mingw
10795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10800 # Accept absolute paths.
10802 re_direlt='/[^/][^/]*/\.\./'
10803 # Canonicalize the pathname of ld
10804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10808 test -z "$LD" && LD="$ac_prog"
10811 # If it fails, then pretend we aren't using GCC.
10815 # If it is relative, then search for the first ld in PATH.
10816 with_gnu_ld=unknown
10819 elif test "$with_gnu_ld" = yes; then
10820 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10821 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10823 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10824 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10826 if test "${lt_cv_path_LD+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 if test -z "$LD"; then
10830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10831 for ac_dir in $PATH; do
10833 test -z "$ac_dir" && ac_dir=.
10834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10835 lt_cv_path_LD="$ac_dir/$ac_prog"
10836 # Check to see if the program is GNU ld. I'd rather use --version,
10837 # but apparently some variants of GNU ld only accept -v.
10838 # Break only if it was the GNU/non-GNU ld that we prefer.
10839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10840 *GNU* | *'with BFD'*)
10841 test "$with_gnu_ld" != no && break
10844 test "$with_gnu_ld" != yes && break
10851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10855 LD="$lt_cv_path_LD"
10856 if test -n "$LD"; then
10857 { echo "$as_me:$LINENO: result: $LD" >&5
10858 echo "${ECHO_T}$LD" >&6; }
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10863 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10864 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10865 { (exit 1); exit 1; }; }
10866 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10867 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10868 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10872 case `$LD -v 2>&1 </dev/null` in
10873 *GNU* | *'with BFD'*)
10874 lt_cv_prog_gnu_ld=yes
10877 lt_cv_prog_gnu_ld=no
10881 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10882 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10883 with_gnu_ld=$lt_cv_prog_gnu_ld
10887 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10888 # archiving commands below assume that GNU ld is being used.
10889 if test "$with_gnu_ld" = yes; then
10890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10896 # If archive_cmds runs LD, not CC, wlarc should be empty
10897 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10898 # investigate it a little bit more. (MM)
10901 # ancient GNU ld didn't support --whole-archive et. al.
10902 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10903 grep 'no-whole-archive' > /dev/null; then
10904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10906 whole_archive_flag_spec_CXX=
10912 # A generic and very simple default shared library creation
10913 # command for GNU C++ for the case where it uses the native
10914 # linker, instead of GNU ld. If possible, this setting should
10915 # overridden to take advantage of the native linker features on
10916 # the platform it is being used on.
10917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10920 # Commands to make compiler produce verbose output that lists
10921 # what "hidden" libraries, object files and flags are used when
10922 # linking a shared library.
10923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10931 # PORTME: fill in a description of your system's C++ link characteristics
10932 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10937 # FIXME: insert proper C++ library support
10941 if test "$host_cpu" = ia64; then
10942 # On IA64, the linker does run time linking by default, so we don't
10943 # have to do anything special.
10944 aix_use_runtimelinking=no
10945 exp_sym_flag='-Bexport'
10948 aix_use_runtimelinking=no
10950 # Test if we are trying to use run time linking or normal
10951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10952 # need to do runtime linking.
10953 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10954 for ld_flag in $LDFLAGS; do
10957 aix_use_runtimelinking=yes
10965 exp_sym_flag='-bexport'
10966 no_entry_flag='-bnoentry'
10969 # When large executables or shared objects are built, AIX ld can
10970 # have problems creating the table of contents. If linking a library
10971 # or program results in "error TOC overflow" add -mminimal-toc to
10972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10975 archive_cmds_CXX=''
10976 hardcode_direct_CXX=yes
10977 hardcode_libdir_separator_CXX=':'
10978 link_all_deplibs_CXX=yes
10980 if test "$GXX" = yes; then
10981 case $host_os in aix4.[012]|aix4.[012].*)
10982 # We only want to do this on AIX 4.2 and lower, the check
10983 # below for broken collect2 doesn't work under 4.3+
10984 collect2name=`${CC} -print-prog-name=collect2`
10985 if test -f "$collect2name" && \
10986 strings "$collect2name" | grep resolve_lib_name >/dev/null
10988 # We have reworked collect2
10989 hardcode_direct_CXX=yes
10991 # We have old collect2
10992 hardcode_direct_CXX=unsupported
10993 # It fails to find uninstalled libraries when the uninstalled
10994 # path is not listed in the libpath. Setting hardcode_minus_L
10995 # to unsupported forces relinking
10996 hardcode_minus_L_CXX=yes
10997 hardcode_libdir_flag_spec_CXX='-L$libdir'
10998 hardcode_libdir_separator_CXX=
11002 shared_flag='-shared'
11003 if test "$aix_use_runtimelinking" = yes; then
11004 shared_flag="$shared_flag "'${wl}-G'
11008 if test "$host_cpu" = ia64; then
11009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11010 # chokes on -Wl,-G. The following line is correct:
11013 if test "$aix_use_runtimelinking" = yes; then
11014 shared_flag='${wl}-G'
11016 shared_flag='${wl}-bM:SRE'
11021 # It seems that -bexpall does not export symbols beginning with
11022 # underscore (_), so it is better to generate a list of symbols to export.
11023 always_export_symbols_CXX=yes
11024 if test "$aix_use_runtimelinking" = yes; then
11025 # Warning - without using the other runtime loading flags (-brtl),
11026 # -berok will link without error, but may produce a broken library.
11027 allow_undefined_flag_CXX='-berok'
11028 # Determine the default libpath from the value encoded in an empty executable.
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11044 rm -f conftest.$ac_objext conftest$ac_exeext
11045 if { (ac_try="$ac_link"
11046 case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_link") 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11059 { (case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11064 (eval "$ac_try") 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try='test -s conftest$ac_exeext'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; }; then
11079 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11081 # Check for a 64-bit object if we didn't find anything.
11082 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11085 echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11091 rm -f core conftest.err conftest.$ac_objext \
11092 conftest$ac_exeext conftest.$ac_ext
11093 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11097 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11099 if test "$host_cpu" = ia64; then
11100 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11101 allow_undefined_flag_CXX="-z nodefs"
11102 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11104 # Determine the default libpath from the value encoded in an empty executable.
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11120 rm -f conftest.$ac_objext conftest$ac_exeext
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_link") 2>conftest.er1
11129 grep -v '^ *+' conftest.er1 >conftest.err
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest$ac_exeext'
11145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11155 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11157 # Check for a 64-bit object if we didn't find anything.
11158 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11167 rm -f core conftest.err conftest.$ac_objext \
11168 conftest$ac_exeext conftest.$ac_ext
11169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11171 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11172 # Warning - without using the other run time loading flags,
11173 # -berok will link without error, but may produce a broken library.
11174 no_undefined_flag_CXX=' ${wl}-bernotok'
11175 allow_undefined_flag_CXX=' ${wl}-berok'
11176 # Exported symbols can be pulled into shared objects from archives
11177 whole_archive_flag_spec_CXX='$convenience'
11178 archive_cmds_need_lc_CXX=yes
11179 # This is similar to how AIX traditionally builds its shared libraries.
11180 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11186 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11187 allow_undefined_flag_CXX=unsupported
11188 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11189 # support --undefined. This deserves some investigation. FIXME
11190 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 case $cc_basename in
11199 # FIXME: insert proper C++ library support
11205 cygwin* | mingw* | pw32*)
11206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11207 # as there is no search path for DLLs.
11208 hardcode_libdir_flag_spec_CXX='-L$libdir'
11209 allow_undefined_flag_CXX=unsupported
11210 always_export_symbols_CXX=no
11211 enable_shared_with_static_runtimes_CXX=yes
11213 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11214 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11215 # If the export-symbols file already is a .def file (1st line
11216 # is EXPORTS), use it as is; otherwise, prepend...
11217 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11218 cp $export_symbols $output_objdir/$soname.def;
11220 echo EXPORTS > $output_objdir/$soname.def;
11221 cat $export_symbols >> $output_objdir/$soname.def;
11223 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11228 darwin* | rhapsody*)
11230 rhapsody* | darwin1.[012])
11231 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11235 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11237 case ${MACOSX_DEPLOYMENT_TARGET} in
11239 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11242 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11248 archive_cmds_need_lc_CXX=no
11249 hardcode_direct_CXX=no
11250 hardcode_automatic_CXX=yes
11251 hardcode_shlibpath_var_CXX=unsupported
11252 whole_archive_flag_spec_CXX=''
11253 link_all_deplibs_CXX=yes
11255 if test "$GXX" = yes ; then
11256 lt_int_apple_cc_single_mod=no
11257 output_verbose_link_cmd='echo'
11258 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11259 lt_int_apple_cc_single_mod=yes
11261 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11262 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11264 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11266 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11267 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11268 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11269 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11271 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11273 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11275 case $cc_basename in
11277 output_verbose_link_cmd='echo'
11278 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11279 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11280 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11281 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11282 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11292 case $cc_basename in
11294 # FIXME: insert proper C++ library support
11298 # Green Hills C++ Compiler
11299 # FIXME: insert proper C++ library support
11303 # FIXME: insert proper C++ library support
11309 # C++ shared libraries reported to be fairly broken before switch to ELF
11313 archive_cmds_need_lc_CXX=no
11315 freebsd* | kfreebsd*-gnu | dragonfly*)
11316 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11323 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324 hardcode_libdir_separator_CXX=:
11325 export_dynamic_flag_spec_CXX='${wl}-E'
11326 hardcode_direct_CXX=yes
11327 hardcode_minus_L_CXX=yes # Not in the search PATH,
11328 # but as the default
11329 # location of the library.
11331 case $cc_basename in
11333 # FIXME: insert proper C++ library support
11337 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11338 # Commands to make compiler produce verbose output that lists
11339 # what "hidden" libraries, object files and flags are used when
11340 # linking a shared library.
11342 # There doesn't appear to be a way to prevent this compiler from
11343 # explicitly linking system object files so we need to strip them
11344 # from the output so that they don't get included in the library
11346 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11349 if test "$GXX" = yes; then
11350 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11352 # FIXME: insert proper C++ library support
11359 if test $with_gnu_ld = no; then
11360 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11361 hardcode_libdir_separator_CXX=:
11365 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11368 export_dynamic_flag_spec_CXX='${wl}-E'
11374 hardcode_direct_CXX=no
11375 hardcode_shlibpath_var_CXX=no
11378 hardcode_direct_CXX=yes
11379 hardcode_minus_L_CXX=yes # Not in the search PATH,
11380 # but as the default
11381 # location of the library.
11385 case $cc_basename in
11387 # FIXME: insert proper C++ library support
11393 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11396 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11402 # Commands to make compiler produce verbose output that lists
11403 # what "hidden" libraries, object files and flags are used when
11404 # linking a shared library.
11406 # There doesn't appear to be a way to prevent this compiler from
11407 # explicitly linking system object files so we need to strip them
11408 # from the output so that they don't get included in the library
11410 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11413 if test "$GXX" = yes; then
11414 if test $with_gnu_ld = no; then
11417 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11420 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11423 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11428 # FIXME: insert proper C++ library support
11435 hardcode_direct_CXX=no
11436 hardcode_shlibpath_var_CXX=no
11437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11438 export_dynamic_flag_spec_CXX='${wl}-E'
11439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11440 # Instead, shared libraries are loaded at an image base (0x10000000 by
11441 # default) and relocated if they conflict, which is a slow very memory
11442 # consuming and fragmenting process. To avoid this, we pick a random,
11443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11445 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11446 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11449 case $cc_basename in
11452 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11454 # Archives containing C++ object files must be created using
11455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11456 # necessary to make sure instantiated templates are included
11458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11461 if test "$GXX" = yes; then
11462 if test "$with_gnu_ld" = no; then
11463 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11465 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11468 link_all_deplibs_CXX=yes
11471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11472 hardcode_libdir_separator_CXX=:
11475 case $cc_basename in
11477 # Kuck and Associates, Inc. (KAI) C++ Compiler
11479 # KCC will only create a shared library if the output file
11480 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11481 # to its proper name (with version) after linking.
11482 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11483 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11484 # Commands to make compiler produce verbose output that lists
11485 # what "hidden" libraries, object files and flags are used when
11486 # linking a shared library.
11488 # There doesn't appear to be a way to prevent this compiler from
11489 # explicitly linking system object files so we need to strip them
11490 # from the output so that they don't get included in the library
11492 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11494 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11497 # Archives containing C++ object files must be created using
11498 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11499 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11504 # version 8.0 and above of icpc choke on multiply defined symbols
11505 # if we add $predep_objects and $postdep_objects, however 7.1 and
11506 # earlier do not add the objects themselves.
11507 case `$CC -V 2>&1` in
11509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11510 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11512 *) # Version 8.0 or newer
11515 ia64*) tmp_idyn=' -i_dynamic';;
11517 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11521 archive_cmds_need_lc_CXX=no
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11524 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11527 # Portland Group C++ compiler
11528 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11529 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11531 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11532 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11533 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11537 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11538 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11540 runpath_var=LD_RUN_PATH
11541 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11542 hardcode_libdir_separator_CXX=:
11544 # Commands to make compiler produce verbose output that lists
11545 # what "hidden" libraries, object files and flags are used when
11546 # linking a shared library.
11548 # There doesn't appear to be a way to prevent this compiler from
11549 # explicitly linking system object files so we need to strip them
11550 # from the output so that they don't get included in the library
11552 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11557 # FIXME: insert proper C++ library support
11561 # FIXME: insert proper C++ library support
11565 case $cc_basename in
11567 # FIXME: insert proper C++ library support
11571 # FIXME: insert proper C++ library support
11577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11578 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11580 hardcode_libdir_flag_spec_CXX='-R$libdir'
11581 hardcode_direct_CXX=yes
11582 hardcode_shlibpath_var_CXX=no
11584 # Workaround some broken pre-1.5 toolchains
11585 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11588 # C++ shared libraries are fairly broken
11592 hardcode_direct_CXX=yes
11593 hardcode_shlibpath_var_CXX=no
11594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11597 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11598 export_dynamic_flag_spec_CXX='${wl}-E'
11599 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11601 output_verbose_link_cmd='echo'
11604 case $cc_basename in
11606 # Kuck and Associates, Inc. (KAI) C++ Compiler
11608 # KCC will only create a shared library if the output file
11609 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11610 # to its proper name (with version) after linking.
11611 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11614 hardcode_libdir_separator_CXX=:
11616 # Archives containing C++ object files must be created using
11617 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11618 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11622 # Rational C++ 2.4.1
11623 # FIXME: insert proper C++ library support
11627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11628 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11630 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11631 hardcode_libdir_separator_CXX=:
11633 # Commands to make compiler produce verbose output that lists
11634 # what "hidden" libraries, object files and flags are used when
11635 # linking a shared library.
11637 # There doesn't appear to be a way to prevent this compiler from
11638 # explicitly linking system object files so we need to strip them
11639 # from the output so that they don't get included in the library
11641 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11644 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11645 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11646 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11648 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11649 hardcode_libdir_separator_CXX=:
11651 # Commands to make compiler produce verbose output that lists
11652 # what "hidden" libraries, object files and flags are used when
11653 # linking a shared library.
11654 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11657 # FIXME: insert proper C++ library support
11664 case $cc_basename in
11666 # Kuck and Associates, Inc. (KAI) C++ Compiler
11668 # KCC will only create a shared library if the output file
11669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11670 # to its proper name (with version) after linking.
11671 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11674 hardcode_libdir_separator_CXX=:
11676 # Archives containing C++ object files must be created using
11677 # the KAI C++ compiler.
11678 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11681 # Rational C++ 2.4.1
11682 # FIXME: insert proper C++ library support
11686 allow_undefined_flag_CXX=' -expect_unresolved \*'
11687 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11688 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11689 echo "-hidden">> $lib.exp~
11690 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11693 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11694 hardcode_libdir_separator_CXX=:
11696 # Commands to make compiler produce verbose output that lists
11697 # what "hidden" libraries, object files and flags are used when
11698 # linking a shared library.
11700 # There doesn't appear to be a way to prevent this compiler from
11701 # explicitly linking system object files so we need to strip them
11702 # from the output so that they don't get included in the library
11704 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11709 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11712 hardcode_libdir_separator_CXX=:
11714 # Commands to make compiler produce verbose output that lists
11715 # what "hidden" libraries, object files and flags are used when
11716 # linking a shared library.
11717 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11720 # FIXME: insert proper C++ library support
11727 # FIXME: insert proper C++ library support
11731 case $cc_basename in
11734 # FIXME: insert proper C++ library support
11739 # FIXME: insert proper C++ library support
11743 # FIXME: insert proper C++ library support
11749 case $cc_basename in
11751 # Sun C++ 4.2, 5.x and Centerline C++
11752 archive_cmds_need_lc_CXX=yes
11753 no_undefined_flag_CXX=' -zdefs'
11754 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11755 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11756 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11758 hardcode_libdir_flag_spec_CXX='-R$libdir'
11759 hardcode_shlibpath_var_CXX=no
11761 solaris2.[0-5] | solaris2.[0-5].*) ;;
11763 # The C++ compiler is used as linker so we must use $wl
11764 # flag to pass the commands to the underlying system
11765 # linker. We must also pass each convience library through
11766 # to the system linker between allextract/defaultextract.
11767 # The C++ compiler will combine linker options so we
11768 # cannot just pass the convience library names through
11770 # Supported since Solaris 2.6 (maybe 2.5.1?)
11771 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11774 link_all_deplibs_CXX=yes
11776 output_verbose_link_cmd='echo'
11778 # Archives containing C++ object files must be created using
11779 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11780 # necessary to make sure instantiated templates are included
11782 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11785 # Green Hills C++ Compiler
11786 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11788 # The C++ compiler must be used to create the archive.
11789 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11792 # GNU C++ compiler with Solaris linker
11793 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11794 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11795 if $CC --version | grep -v '^2\.7' > /dev/null; then
11796 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11797 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11798 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11800 # Commands to make compiler produce verbose output that lists
11801 # what "hidden" libraries, object files and flags are used when
11802 # linking a shared library.
11803 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11805 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11807 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11808 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11809 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11811 # Commands to make compiler produce verbose output that lists
11812 # what "hidden" libraries, object files and flags are used when
11813 # linking a shared library.
11814 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11817 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11822 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11823 no_undefined_flag_CXX='${wl}-z,text'
11824 archive_cmds_need_lc_CXX=no
11825 hardcode_shlibpath_var_CXX=no
11826 runpath_var='LD_RUN_PATH'
11828 case $cc_basename in
11830 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11839 sysv5* | sco3.2v5* | sco5v6*)
11840 # Note: We can NOT use -z defs as we might desire, because we do not
11841 # link with -lc, and that would cause any symbols used from libc to
11842 # always be unresolved, which means just about no library would
11843 # ever link correctly. If we're not using GNU ld we use -z text
11844 # though, which does catch some bad symbols but isn't as heavy-handed
11846 # For security reasons, it is highly recommended that you always
11847 # use absolute paths for naming shared libraries, and exclude the
11848 # DT_RUNPATH tag from executables and libraries. But doing so
11849 # requires that you compile everything twice, which is a pain.
11850 # So that behaviour is only enabled if SCOABSPATH is set to a
11851 # non-empty value in the environment. Most likely only useful for
11852 # creating official distributions of packages.
11853 # This is a hack until libtool officially supports absolute path
11854 # names for shared libraries.
11855 no_undefined_flag_CXX='${wl}-z,text'
11856 allow_undefined_flag_CXX='${wl}-z,nodefs'
11857 archive_cmds_need_lc_CXX=no
11858 hardcode_shlibpath_var_CXX=no
11859 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11860 hardcode_libdir_separator_CXX=':'
11861 link_all_deplibs_CXX=yes
11862 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11863 runpath_var='LD_RUN_PATH'
11865 case $cc_basename in
11867 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11868 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11877 case $cc_basename in
11879 # NonStop-UX NCC 3.20
11880 # FIXME: insert proper C++ library support
11884 # FIXME: insert proper C++ library support
11890 # FIXME: insert proper C++ library support
11894 # FIXME: insert proper C++ library support
11898 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11899 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11900 test "$ld_shlibs_CXX" = no && can_build_shared=no
11906 cat > conftest.$ac_ext <<EOF
11910 Foo (void) { a = 0; }
11916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11917 (eval $ac_compile) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; then
11921 # Parse the compiler output and extract the necessary
11922 # objects, libraries and library flags.
11924 # Sentinel used to keep track of whether or not we are before
11925 # the conftest object file.
11926 pre_test_object_deps_done=no
11928 # The `*' in the case matches for architectures that use `case' in
11929 # $output_verbose_cmd can trigger glob expansion during the loop
11930 # eval without this substitution.
11931 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11933 for p in `eval $output_verbose_link_cmd`; do
11937 # Some compilers place space between "-{L,R}" and the path.
11938 # Remove the space.
11939 if test $p = "-L" \
11940 || test $p = "-R"; then
11947 if test "$pre_test_object_deps_done" = no; then
11950 # Internal compiler library paths should come after those
11951 # provided the user. The postdeps already come after the
11952 # user supplied libs so there is no need to process them.
11953 if test -z "$compiler_lib_search_path_CXX"; then
11954 compiler_lib_search_path_CXX="${prev}${p}"
11956 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11959 # The "-l" case would never come before the object being
11960 # linked, so don't bother handling this case.
11963 if test -z "$postdeps_CXX"; then
11964 postdeps_CXX="${prev}${p}"
11966 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11972 # This assumes that the test object file only shows up
11973 # once in the compiler output.
11974 if test "$p" = "conftest.$objext"; then
11975 pre_test_object_deps_done=yes
11979 if test "$pre_test_object_deps_done" = no; then
11980 if test -z "$predep_objects_CXX"; then
11981 predep_objects_CXX="$p"
11983 predep_objects_CXX="$predep_objects_CXX $p"
11986 if test -z "$postdep_objects_CXX"; then
11987 postdep_objects_CXX="$p"
11989 postdep_objects_CXX="$postdep_objects_CXX $p"
11994 *) ;; # Ignore the rest.
12002 echo "libtool.m4: error: problem compiling CXX test program"
12005 $rm -f confest.$objext
12007 # PORTME: override above test on systems where it is broken
12010 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12011 # hack all around it, let's just trust "g++" to DTRT.
12012 predep_objects_CXX=
12013 postdep_objects_CXX=
12018 case $cc_basename in
12020 # Adding this requires a known-good setup of shared libraries for
12021 # Sun compiler versions before 5.6, else PIC objects from an old
12022 # archive will be linked into the output, leading to subtle bugs.
12023 postdeps_CXX='-lCstd -lCrun'
12030 case " $postdeps_CXX " in
12031 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12034 lt_prog_compiler_wl_CXX=
12035 lt_prog_compiler_pic_CXX=
12036 lt_prog_compiler_static_CXX=
12038 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12039 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12041 # C++ specific cases for pic, static, wl, etc.
12042 if test "$GXX" = yes; then
12043 lt_prog_compiler_wl_CXX='-Wl,'
12044 lt_prog_compiler_static_CXX='-static'
12048 # All AIX code is PIC.
12049 if test "$host_cpu" = ia64; then
12050 # AIX 5 now supports IA64 processor
12051 lt_prog_compiler_static_CXX='-Bstatic'
12055 # FIXME: we need at least 68020 code to build shared libraries, but
12056 # adding the `-m68020' flag to GCC prevents building anything better,
12058 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12060 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12061 # PIC is the default for these OSes.
12063 mingw* | os2* | pw32*)
12064 # This hack is so that the source file can tell whether it is being
12065 # built for inclusion in a dll (and should export symbols for example).
12066 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12068 darwin* | rhapsody*)
12069 # PIC is the default on this platform
12070 # Common symbols not allowed in MH_DYLIB files
12071 lt_prog_compiler_pic_CXX='-fno-common'
12074 # DJGPP does not support shared libraries at all
12075 lt_prog_compiler_pic_CXX=
12078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12079 # Instead, we relocate shared libraries at runtime.
12082 if test -d /usr/nec; then
12083 lt_prog_compiler_pic_CXX=-Kconform_pic
12087 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12088 # not for PA HP-UX.
12093 lt_prog_compiler_pic_CXX='-fPIC'
12098 lt_prog_compiler_pic_CXX='-fPIC'
12104 # All AIX code is PIC.
12105 if test "$host_cpu" = ia64; then
12106 # AIX 5 now supports IA64 processor
12107 lt_prog_compiler_static_CXX='-Bstatic'
12109 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12113 case $cc_basename in
12115 # Green Hills C++ Compiler
12116 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12121 # PIC is the default on this platform
12122 # Common symbols not allowed in MH_DYLIB files
12123 case $cc_basename in
12125 lt_prog_compiler_pic_CXX='-qnocommon'
12126 lt_prog_compiler_wl_CXX='-Wl,'
12131 case $cc_basename in
12133 lt_prog_compiler_pic_CXX='-KPIC'
12136 # Green Hills C++ Compiler
12137 lt_prog_compiler_pic_CXX='-pic'
12143 freebsd* | kfreebsd*-gnu | dragonfly*)
12144 # FreeBSD uses GNU C++
12146 hpux9* | hpux10* | hpux11*)
12147 case $cc_basename in
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12151 if test "$host_cpu" != ia64; then
12152 lt_prog_compiler_pic_CXX='+Z'
12156 lt_prog_compiler_wl_CXX='-Wl,'
12157 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12163 lt_prog_compiler_pic_CXX='+Z'
12172 # This is c89, which is MS Visual C++ (no shared libs)
12173 # Anyone wants to do a port?
12175 irix5* | irix6* | nonstopux*)
12176 case $cc_basename in
12178 lt_prog_compiler_wl_CXX='-Wl,'
12179 lt_prog_compiler_static_CXX='-non_shared'
12180 # CC pic flag -KPIC is the default.
12187 case $cc_basename in
12190 lt_prog_compiler_wl_CXX='--backend -Wl,'
12191 lt_prog_compiler_pic_CXX='-fPIC'
12195 lt_prog_compiler_wl_CXX='-Wl,'
12196 lt_prog_compiler_pic_CXX='-KPIC'
12197 lt_prog_compiler_static_CXX='-static'
12200 # Portland Group C++ compiler.
12201 lt_prog_compiler_wl_CXX='-Wl,'
12202 lt_prog_compiler_pic_CXX='-fpic'
12203 lt_prog_compiler_static_CXX='-Bstatic'
12207 # Make sure the PIC flag is empty. It appears that all Alpha
12208 # Linux and Compaq Tru64 Unix objects are PIC.
12209 lt_prog_compiler_pic_CXX=
12210 lt_prog_compiler_static_CXX='-non_shared'
12221 case $cc_basename in
12223 lt_prog_compiler_pic_CXX='-W c,exportall'
12231 osf3* | osf4* | osf5*)
12232 case $cc_basename in
12234 lt_prog_compiler_wl_CXX='--backend -Wl,'
12237 # Rational C++ 2.4.1
12238 lt_prog_compiler_pic_CXX='-pic'
12241 # Digital/Compaq C++
12242 lt_prog_compiler_wl_CXX='-Wl,'
12243 # Make sure the PIC flag is empty. It appears that all Alpha
12244 # Linux and Compaq Tru64 Unix objects are PIC.
12245 lt_prog_compiler_pic_CXX=
12246 lt_prog_compiler_static_CXX='-non_shared'
12255 case $cc_basename in
12257 # Sun C++ 4.2, 5.x and Centerline C++
12258 lt_prog_compiler_pic_CXX='-KPIC'
12259 lt_prog_compiler_static_CXX='-Bstatic'
12260 lt_prog_compiler_wl_CXX='-Qoption ld '
12263 # Green Hills C++ Compiler
12264 lt_prog_compiler_pic_CXX='-PIC'
12271 case $cc_basename in
12274 lt_prog_compiler_pic_CXX='-pic'
12275 lt_prog_compiler_static_CXX='-Bstatic'
12279 lt_prog_compiler_pic_CXX='-pic'
12286 case $cc_basename in
12288 # NonStop-UX NCC 3.20
12289 lt_prog_compiler_pic_CXX='-KPIC'
12295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12296 case $cc_basename in
12298 lt_prog_compiler_wl_CXX='-Wl,'
12299 lt_prog_compiler_pic_CXX='-KPIC'
12300 lt_prog_compiler_static_CXX='-Bstatic'
12307 lt_prog_compiler_can_build_shared_CXX=no
12312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12313 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12316 # Check to make sure the PIC flag actually works.
12318 if test -n "$lt_prog_compiler_pic_CXX"; then
12320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12322 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 lt_prog_compiler_pic_works_CXX=no
12326 ac_outfile=conftest.$ac_objext
12327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12328 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12329 # Insert the option either (1) after the last *FLAGS variable, or
12330 # (2) before a word containing "conftest.", or (3) at the end.
12331 # Note that $ac_compile itself does not contain backslashes and begins
12332 # with a dollar sign (not a hyphen), so the echo should work correctly.
12333 # The option is referenced via a variable to avoid confusing sed.
12334 lt_compile=`echo "$ac_compile" | $SED \
12335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12337 -e 's:$: $lt_compiler_flag:'`
12338 (eval echo "\"\$as_me:12338: $lt_compile\"" >&5)
12339 (eval "$lt_compile" 2>conftest.err)
12341 cat conftest.err >&5
12342 echo "$as_me:12342: \$? = $ac_status" >&5
12343 if (exit $ac_status) && test -s "$ac_outfile"; then
12344 # The compiler can only warn and ignore the option if not recognized
12345 # So say no if there are warnings other than the usual output.
12346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12349 lt_prog_compiler_pic_works_CXX=yes
12355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12356 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12358 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12359 case $lt_prog_compiler_pic_CXX in
12361 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12364 lt_prog_compiler_pic_CXX=
12365 lt_prog_compiler_can_build_shared_CXX=no
12370 # For platforms which do not support PIC, -DPIC is meaningless:
12372 lt_prog_compiler_pic_CXX=
12375 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12380 # Check to make sure the static flag actually works.
12382 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12385 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 lt_prog_compiler_static_works_CXX=no
12389 save_LDFLAGS="$LDFLAGS"
12390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12391 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12393 # The linker can only warn and ignore the option if not recognized
12394 # So say no if there are warnings
12395 if test -s conftest.err; then
12396 # Append any errors to the config.log.
12397 cat conftest.err 1>&5
12398 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12400 if diff conftest.exp conftest.er2 >/dev/null; then
12401 lt_prog_compiler_static_works_CXX=yes
12404 lt_prog_compiler_static_works_CXX=yes
12408 LDFLAGS="$save_LDFLAGS"
12411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12412 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12414 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12417 lt_prog_compiler_static_CXX=
12421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12423 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12424 echo $ECHO_N "(cached) $ECHO_C" >&6
12426 lt_cv_prog_compiler_c_o_CXX=no
12427 $rm -r conftest 2>/dev/null
12431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12433 lt_compiler_flag="-o out/conftest2.$ac_objext"
12434 # Insert the option either (1) after the last *FLAGS variable, or
12435 # (2) before a word containing "conftest.", or (3) at the end.
12436 # Note that $ac_compile itself does not contain backslashes and begins
12437 # with a dollar sign (not a hyphen), so the echo should work correctly.
12438 lt_compile=`echo "$ac_compile" | $SED \
12439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12441 -e 's:$: $lt_compiler_flag:'`
12442 (eval echo "\"\$as_me:12442: $lt_compile\"" >&5)
12443 (eval "$lt_compile" 2>out/conftest.err)
12445 cat out/conftest.err >&5
12446 echo "$as_me:12446: \$? = $ac_status" >&5
12447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12449 # The compiler can only warn and ignore the option if not recognized
12450 # So say no if there are warnings
12451 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12454 lt_cv_prog_compiler_c_o_CXX=yes
12459 # SGI C++ compiler will create directory out/ii_files/ for
12460 # template instantiation
12461 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12462 $rm out/* && rmdir out
12468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12472 hard_links="nottested"
12473 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12474 # do not overwrite the value of need_locks provided by the user
12475 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12481 ln conftest.a conftest.b 2>&5 || hard_links=no
12482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12483 { echo "$as_me:$LINENO: result: $hard_links" >&5
12484 echo "${ECHO_T}$hard_links" >&6; }
12485 if test "$hard_links" = no; then
12486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12497 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12500 # If we're using GNU nm, then we don't want the "-C" option.
12501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12503 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12505 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12509 export_symbols_cmds_CXX="$ltdll_cmds"
12512 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12515 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12519 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12520 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12521 test "$ld_shlibs_CXX" = no && can_build_shared=no
12524 # Do we need to explicitly link libc?
12526 case "x$archive_cmds_need_lc_CXX" in
12528 # Assume -lc should be added
12529 archive_cmds_need_lc_CXX=yes
12531 if test "$enable_shared" = yes && test "$GCC" = yes; then
12532 case $archive_cmds_CXX in
12534 # FIXME: we may have to deal with multi-command sequences.
12537 # Test whether the compiler implicitly links with -lc since on some
12538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12539 # to ld, don't add -lc before -lgcc.
12540 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12541 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12543 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12546 (eval $ac_compile) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } 2>conftest.err; then
12552 libobjs=conftest.$ac_objext
12554 wl=$lt_prog_compiler_wl_CXX
12555 pic_flag=$lt_prog_compiler_pic_CXX
12561 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12562 allow_undefined_flag_CXX=
12563 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12564 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); }
12569 archive_cmds_need_lc_CXX=no
12571 archive_cmds_need_lc_CXX=yes
12573 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12575 cat conftest.err 1>&5
12578 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12579 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12586 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12587 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12588 library_names_spec=
12589 libname_spec='lib$name'
12593 postuninstall_cmds=
12597 shlibpath_overrides_runpath=unknown
12599 dynamic_linker="$host_os ld.so"
12600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12601 if test "$GCC" = yes; then
12602 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12603 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12604 # if the path contains ";" then we assume it to be the separator
12605 # otherwise default to the standard path separator (i.e. ":") - it is
12606 # assumed that no part of a normal pathname contains ";" but that should
12607 # okay in the real world where ";" in dirpaths is itself problematic.
12608 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12610 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12615 need_lib_prefix=unknown
12616 hardcode_into_libs=no
12618 # when you set need_version to no, make sure it does not cause -set_version
12619 # flags to be left without arguments
12620 need_version=unknown
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12626 shlibpath_var=LIBPATH
12628 # AIX 3 has no versioning support, so we append a major version to the name.
12629 soname_spec='${libname}${release}${shared_ext}$major'
12636 hardcode_into_libs=yes
12637 if test "$host_cpu" = ia64; then
12638 # AIX 5 supports IA64
12639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12640 shlibpath_var=LD_LIBRARY_PATH
12642 # With GCC up to 2.95.x, collect2 would create an import file
12643 # for dependence libraries. The import file would start with
12644 # the line `#! .'. This would cause the generated library to
12645 # depend on `.', always an invalid library. This was fixed in
12646 # development snapshots of GCC prior to 3.0.
12648 aix4 | aix4.[01] | aix4.[01].*)
12649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12651 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12654 can_build_shared=no
12658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12659 # soname into executable. Probably we can add versioning support to
12660 # collect2, so additional links can be useful in future.
12661 if test "$aix_use_runtimelinking" = yes; then
12662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12663 # instead of lib<name>.a to let people know that these are not
12664 # typical AIX shared libraries.
12665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12667 # We preserve .a as extension for shared libraries through AIX4.2
12668 # and later when we are not doing run time linking.
12669 library_names_spec='${libname}${release}.a $libname.a'
12670 soname_spec='${libname}${release}${shared_ext}$major'
12672 shlibpath_var=LIBPATH
12677 library_names_spec='$libname.ixlibrary $libname.a'
12678 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12679 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'
12683 library_names_spec='${libname}${shared_ext}'
12684 dynamic_linker="$host_os ld.so"
12685 shlibpath_var=LIBRARY_PATH
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12696 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12697 # the default ld.so.conf also contains /usr/contrib/lib and
12698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12699 # libtool to hard-code these into programs
12702 cygwin* | mingw* | pw32*)
12703 version_type=windows
12708 case $GCC,$host_os in
12709 yes,cygwin* | yes,mingw* | yes,pw32*)
12710 library_names_spec='$libname.dll.a'
12711 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12712 postinstall_cmds='base_file=`basename \${file}`~
12713 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12714 dldir=$destdir/`dirname \$dlpath`~
12715 test -d \$dldir || mkdir -p \$dldir~
12716 $install_prog $dir/$dlname \$dldir/$dlname~
12717 chmod a+x \$dldir/$dlname'
12718 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12719 dlpath=$dir/\$dldll~
12721 shlibpath_overrides_runpath=yes
12725 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12726 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12727 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12730 # MinGW DLLs use traditional 'lib' prefix
12731 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12733 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12734 # It is most probably a Windows format PATH printed by
12735 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12736 # path with ; separators, and with drive letters. We can handle the
12737 # drive letters (cygwin fileutils understands them), so leave them,
12738 # especially as we might pass files found there to a mingw objdump,
12739 # which wouldn't understand a cygwinified path. Ahh.
12740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12746 # pw32 DLLs use 'pw' prefix rather than 'lib'
12747 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12753 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
12754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12755 supports_anon_versioning=no
12756 case `$LD -v 2>/dev/null` in
12757 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12758 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12759 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12760 *\ 2.11.*) ;; # other 2.11 versions
12761 *) supports_anon_versioning=yes ;;
12763 if test $supports_anon_versioning = yes; then
12764 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12765 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12766 $echo "local: *; };" >> $output_objdir/$libname.ver~
12767 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12769 $archive_expsym_cmds="$archive_cmds"
12777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12780 dynamic_linker='Win32 ld.exe'
12781 # FIXME: first we should search . and the directory the executable is in
12785 darwin* | rhapsody*)
12786 dynamic_linker="$host_os dyld"
12787 version_type=darwin
12790 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12791 soname_spec='${libname}${release}${major}$shared_ext'
12792 shlibpath_overrides_runpath=yes
12793 shlibpath_var=DYLD_LIBRARY_PATH
12794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12795 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12796 if test "$GCC" = yes; then
12797 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12799 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12801 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 shlibpath_var=LD_LIBRARY_PATH
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 shlibpath_overrides_runpath=no
12825 hardcode_into_libs=yes
12826 dynamic_linker='GNU ld.so'
12829 freebsd* | dragonfly*)
12830 # DragonFly does not have aout. When/if they implement a new
12831 # versioning mechanism, adjust this.
12832 if test -x /usr/bin/objformat; then
12833 objformat=`/usr/bin/objformat`
12836 freebsd[123]*) objformat=aout ;;
12837 *) objformat=elf ;;
12840 # Handle Gentoo/FreeBSD as it was Linux
12841 case $host_vendor in
12843 version_type=linux ;;
12845 version_type=freebsd-$objformat ;;
12848 case $version_type in
12850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12860 soname_spec='${libname}${release}${shared_ext}$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=yes
12870 freebsd3.[01]* | freebsdelf3.[01]*)
12871 shlibpath_overrides_runpath=yes
12872 hardcode_into_libs=yes
12874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12876 shlibpath_overrides_runpath=no
12877 hardcode_into_libs=yes
12879 freebsd*) # from 4.6 on
12880 shlibpath_overrides_runpath=yes
12881 hardcode_into_libs=yes
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12891 soname_spec='${libname}${release}${shared_ext}$major'
12892 shlibpath_var=LD_LIBRARY_PATH
12893 hardcode_into_libs=yes
12896 hpux9* | hpux10* | hpux11*)
12897 # Give a soname corresponding to the major version so that dld.sl refuses to
12898 # link against other versions.
12905 hardcode_into_libs=yes
12906 dynamic_linker="$host_os dld.so"
12907 shlibpath_var=LD_LIBRARY_PATH
12908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 if test "X$HPUX_IA64_MODE" = X32; then
12912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12920 hardcode_into_libs=yes
12921 dynamic_linker="$host_os dld.sl"
12922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12931 dynamic_linker="$host_os dld.sl"
12932 shlibpath_var=SHLIB_PATH
12933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12935 soname_spec='${libname}${release}${shared_ext}$major'
12938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12939 postinstall_cmds='chmod 555 $lib'
12946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12947 soname_spec='${libname}${release}${shared_ext}$major'
12948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=no
12951 hardcode_into_libs=yes
12954 irix5* | irix6* | nonstopux*)
12956 nonstopux*) version_type=nonstopux ;;
12958 if test "$lt_cv_prog_gnu_ld" = yes; then
12966 soname_spec='${libname}${release}${shared_ext}$major'
12967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12969 irix5* | nonstopux*)
12970 libsuff= shlibsuff=
12973 case $LD in # libtool.m4 will add one of these switches to LD
12974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12975 libsuff= shlibsuff= libmagic=32-bit;;
12976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12977 libsuff=32 shlibsuff=N32 libmagic=N32;;
12978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12980 *) libsuff= shlibsuff= libmagic=never-match;;
12984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12985 shlibpath_overrides_runpath=no
12986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12988 hardcode_into_libs=yes
12991 # No shared lib support for Linux oldld, aout, or coff.
12992 linux*oldld* | linux*aout* | linux*coff*)
12996 # This must be Linux ELF.
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13002 soname_spec='${libname}${release}${shared_ext}$major'
13003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13004 shlibpath_var=LD_LIBRARY_PATH
13005 shlibpath_overrides_runpath=no
13006 # This implies no fast_install, which is unacceptable.
13007 # Some rework will be needed to allow for fast_install
13008 # before this can be enabled.
13009 hardcode_into_libs=yes
13011 # Append ld.so.conf contents to the search path
13012 if test -f /etc/ld.so.conf; then
13013 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13017 # We used to test for /lib/ld.so.1 and disable shared libraries on
13018 # powerpc, because MkLinux only supported shared libraries with the
13019 # GNU dynamic linker. Since this was broken with cross compilers,
13020 # most powerpc-linux boxes support dynamic linking these days and
13021 # people can always --disable-shared, the test was removed, and we
13022 # assume the GNU/Linux dynamic linker is in use.
13023 dynamic_linker='GNU/Linux ld.so'
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 shlibpath_overrides_runpath=no
13034 hardcode_into_libs=yes
13035 dynamic_linker='GNU ld.so'
13042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13045 dynamic_linker='NetBSD (a.out) ld.so'
13047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13048 soname_spec='${libname}${release}${shared_ext}$major'
13049 dynamic_linker='NetBSD ld.elf_so'
13051 shlibpath_var=LD_LIBRARY_PATH
13052 shlibpath_overrides_runpath=yes
13053 hardcode_into_libs=yes
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13068 soname_spec='${libname}${release}${shared_ext}$major'
13069 shlibpath_var=LD_LIBRARY_PATH
13070 shlibpath_overrides_runpath=yes
13075 sys_lib_dlsearch_path_spec="/usr/lib"
13077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13080 *) need_version=no ;;
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13084 shlibpath_var=LD_LIBRARY_PATH
13085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13087 openbsd2.[89] | openbsd2.[89].*)
13088 shlibpath_overrides_runpath=no
13091 shlibpath_overrides_runpath=yes
13095 shlibpath_overrides_runpath=yes
13100 libname_spec='$name'
13103 library_names_spec='$libname${shared_ext} $libname.a'
13104 dynamic_linker='OS/2 ld.exe'
13105 shlibpath_var=LIBPATH
13108 osf3* | osf4* | osf5*)
13112 soname_spec='${libname}${release}${shared_ext}$major'
13113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13114 shlibpath_var=LD_LIBRARY_PATH
13115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13124 soname_spec='${libname}${release}${shared_ext}$major'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 shlibpath_overrides_runpath=yes
13127 hardcode_into_libs=yes
13128 # ldd complains unless libraries are executable
13129 postinstall_cmds='chmod +x $lib'
13134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13136 shlibpath_var=LD_LIBRARY_PATH
13137 shlibpath_overrides_runpath=yes
13138 if test "$with_gnu_ld" = yes; then
13146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 shlibpath_var=LD_LIBRARY_PATH
13149 case $host_vendor in
13151 shlibpath_overrides_runpath=no
13153 export_dynamic_flag_spec='${wl}-Blargedynsym'
13154 runpath_var=LD_RUN_PATH
13162 shlibpath_overrides_runpath=no
13163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13169 if test -d /usr/nec ;then
13171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13172 soname_spec='$libname${shared_ext}.$major'
13173 shlibpath_var=LD_LIBRARY_PATH
13177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13178 version_type=freebsd-elf
13181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13182 soname_spec='${libname}${release}${shared_ext}$major'
13183 shlibpath_var=LD_LIBRARY_PATH
13184 hardcode_into_libs=yes
13185 if test "$with_gnu_ld" = yes; then
13186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13187 shlibpath_overrides_runpath=no
13189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13190 shlibpath_overrides_runpath=yes
13193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13197 sys_lib_dlsearch_path_spec='/usr/lib'
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 soname_spec='${libname}${release}${shared_ext}$major'
13204 shlibpath_var=LD_LIBRARY_PATH
13211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13212 echo "${ECHO_T}$dynamic_linker" >&6; }
13213 test "$dynamic_linker" = no && can_build_shared=no
13215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13216 if test "$GCC" = yes; then
13217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13220 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13221 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13222 hardcode_action_CXX=
13223 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13224 test -n "$runpath_var_CXX" || \
13225 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13227 # We can hardcode non-existant directories.
13228 if test "$hardcode_direct_CXX" != no &&
13229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13230 # have to relink, otherwise we might link with an installed library
13231 # when we should be linking with a yet-to-be-installed one
13232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13233 test "$hardcode_minus_L_CXX" != no; then
13234 # Linking always hardcodes the temporary library directory.
13235 hardcode_action_CXX=relink
13237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13238 hardcode_action_CXX=immediate
13241 # We cannot hardcode anything, or else we can only hardcode existing
13243 hardcode_action_CXX=unsupported
13245 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13246 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13248 if test "$hardcode_action_CXX" = relink; then
13249 # Fast installation is not supported
13250 enable_fast_install=no
13251 elif test "$shlibpath_overrides_runpath" = yes ||
13252 test "$enable_shared" = no; then
13253 # Fast installation is not necessary
13254 enable_fast_install=needless
13258 # The else clause should only fire when bootstrapping the
13259 # libtool distribution, otherwise you forgot to ship ltmain.sh
13260 # with your package, and you will get complaints that there are
13261 # no rules to generate ltmain.sh.
13262 if test -f "$ltmain"; then
13263 # See if we are running on zsh, and set the options which allow our commands through
13264 # without removal of \ escapes.
13265 if test -n "${ZSH_VERSION+set}" ; then
13266 setopt NO_GLOB_SUBST
13268 # Now quote all the things that may contain metacharacters while being
13269 # careful not to overquote the AC_SUBSTed values. We take copies of the
13270 # variables and quote the copies for generation of the libtool script.
13271 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13273 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13274 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13275 deplibs_check_method reload_flag reload_cmds need_locks \
13276 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13277 lt_cv_sys_global_symbol_to_c_name_address \
13278 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13279 old_postinstall_cmds old_postuninstall_cmds \
13283 lt_prog_compiler_wl_CXX \
13284 lt_prog_compiler_pic_CXX \
13285 lt_prog_compiler_static_CXX \
13286 lt_prog_compiler_no_builtin_flag_CXX \
13287 export_dynamic_flag_spec_CXX \
13288 thread_safe_flag_spec_CXX \
13289 whole_archive_flag_spec_CXX \
13290 enable_shared_with_static_runtimes_CXX \
13291 old_archive_cmds_CXX \
13292 old_archive_from_new_cmds_CXX \
13293 predep_objects_CXX \
13294 postdep_objects_CXX \
13297 compiler_lib_search_path_CXX \
13299 archive_expsym_cmds_CXX \
13300 postinstall_cmds_CXX \
13301 postuninstall_cmds_CXX \
13302 old_archive_from_expsyms_cmds_CXX \
13303 allow_undefined_flag_CXX \
13304 no_undefined_flag_CXX \
13305 export_symbols_cmds_CXX \
13306 hardcode_libdir_flag_spec_CXX \
13307 hardcode_libdir_flag_spec_ld_CXX \
13308 hardcode_libdir_separator_CXX \
13309 hardcode_automatic_CXX \
13311 module_expsym_cmds_CXX \
13312 lt_cv_prog_compiler_c_o_CXX \
13313 exclude_expsyms_CXX \
13314 include_expsyms_CXX; do
13317 old_archive_cmds_CXX | \
13318 old_archive_from_new_cmds_CXX | \
13319 archive_cmds_CXX | \
13320 archive_expsym_cmds_CXX | \
13321 module_cmds_CXX | \
13322 module_expsym_cmds_CXX | \
13323 old_archive_from_expsyms_cmds_CXX | \
13324 export_symbols_cmds_CXX | \
13325 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13326 postinstall_cmds | postuninstall_cmds | \
13327 old_postinstall_cmds | old_postuninstall_cmds | \
13328 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13329 # Double-quote double-evaled strings.
13330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13333 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13339 *'\$0 --fallback-echo"')
13340 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13346 cat <<__EOF__ >> "$cfgfile"
13347 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13349 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13351 # Shell to use when invoking shell scripts.
13354 # Whether or not to build shared libraries.
13355 build_libtool_libs=$enable_shared
13357 # Whether or not to build static libraries.
13358 build_old_libs=$enable_static
13360 # Whether or not to add -lc for building shared libraries.
13361 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13363 # Whether or not to disallow shared libs when runtime libs are static
13364 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13366 # Whether or not to optimize for fast installation.
13367 fast_install=$enable_fast_install
13370 host_alias=$host_alias
13374 # The build system.
13375 build_alias=$build_alias
13379 # An echo program that does not interpret backslashes.
13384 AR_FLAGS=$lt_AR_FLAGS
13389 # LTCC compiler flags.
13390 LTCFLAGS=$lt_LTCFLAGS
13392 # A language-specific compiler.
13393 CC=$lt_compiler_CXX
13395 # Is the compiler the GNU C compiler?
13401 # The linker used to build libraries.
13404 # Whether we need hard or soft links.
13407 # A BSD-compatible nm program.
13410 # A symbol stripping program
13413 # Used to examine libraries when file_magic_cmd begins "file"
13414 MAGIC_CMD=$MAGIC_CMD
13416 # Used on cygwin: DLL creation program.
13419 # Used on cygwin: object dumper.
13422 # Used on cygwin: assembler.
13425 # The name of the directory that contains temporary libtool files.
13428 # How to create reloadable object files.
13429 reload_flag=$lt_reload_flag
13430 reload_cmds=$lt_reload_cmds
13432 # How to pass a linker flag through the compiler.
13433 wl=$lt_lt_prog_compiler_wl_CXX
13435 # Object file suffix (normally "o").
13436 objext="$ac_objext"
13438 # Old archive suffix (normally "a").
13441 # Shared library suffix (normally ".so").
13442 shrext_cmds='$shrext_cmds'
13444 # Executable file suffix (normally "").
13447 # Additional compiler flags for building library objects.
13448 pic_flag=$lt_lt_prog_compiler_pic_CXX
13451 # What is the maximum length of a command?
13452 max_cmd_len=$lt_cv_sys_max_cmd_len
13454 # Does compiler simultaneously support -c and -o options?
13455 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13457 # Must we lock files when doing compilation?
13458 need_locks=$lt_need_locks
13460 # Do we need the lib prefix for modules?
13461 need_lib_prefix=$need_lib_prefix
13463 # Do we need a version for libraries?
13464 need_version=$need_version
13466 # Whether dlopen is supported.
13467 dlopen_support=$enable_dlopen
13469 # Whether dlopen of programs is supported.
13470 dlopen_self=$enable_dlopen_self
13472 # Whether dlopen of statically linked programs is supported.
13473 dlopen_self_static=$enable_dlopen_self_static
13475 # Compiler flag to prevent dynamic linking.
13476 link_static_flag=$lt_lt_prog_compiler_static_CXX
13478 # Compiler flag to turn off builtin functions.
13479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13481 # Compiler flag to allow reflexive dlopens.
13482 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13484 # Compiler flag to generate shared objects directly from archives.
13485 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13487 # Compiler flag to generate thread-safe objects.
13488 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13490 # Library versioning type.
13491 version_type=$version_type
13493 # Format of library name prefix.
13494 libname_spec=$lt_libname_spec
13496 # List of archive names. First name is the real one, the rest are links.
13497 # The last name is the one that the linker finds with -lNAME.
13498 library_names_spec=$lt_library_names_spec
13500 # The coded name of the library, if different from the real name.
13501 soname_spec=$lt_soname_spec
13503 # Commands used to build and install an old-style archive.
13505 old_archive_cmds=$lt_old_archive_cmds_CXX
13506 old_postinstall_cmds=$lt_old_postinstall_cmds
13507 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13509 # Create an old-style archive from a shared archive.
13510 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13512 # Create a temporary old-style archive to link instead of a shared archive.
13513 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13515 # Commands used to build and install a shared archive.
13516 archive_cmds=$lt_archive_cmds_CXX
13517 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13518 postinstall_cmds=$lt_postinstall_cmds
13519 postuninstall_cmds=$lt_postuninstall_cmds
13521 # Commands used to build a loadable module (assumed same as above if empty)
13522 module_cmds=$lt_module_cmds_CXX
13523 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13525 # Commands to strip libraries.
13526 old_striplib=$lt_old_striplib
13527 striplib=$lt_striplib
13529 # Dependencies to place before the objects being linked to create a
13531 predep_objects=$lt_predep_objects_CXX
13533 # Dependencies to place after the objects being linked to create a
13535 postdep_objects=$lt_postdep_objects_CXX
13537 # Dependencies to place before the objects being linked to create a
13539 predeps=$lt_predeps_CXX
13541 # Dependencies to place after the objects being linked to create a
13543 postdeps=$lt_postdeps_CXX
13545 # The library search path used internally by the compiler when linking
13546 # a shared library.
13547 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13549 # Method to check whether dependent libraries are shared objects.
13550 deplibs_check_method=$lt_deplibs_check_method
13552 # Command to use when deplibs_check_method == file_magic.
13553 file_magic_cmd=$lt_file_magic_cmd
13555 # Flag that allows shared libraries with undefined symbols to be built.
13556 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13558 # Flag that forces no undefined symbols.
13559 no_undefined_flag=$lt_no_undefined_flag_CXX
13561 # Commands used to finish a libtool library installation in a directory.
13562 finish_cmds=$lt_finish_cmds
13564 # Same as above, but a single script fragment to be evaled but not shown.
13565 finish_eval=$lt_finish_eval
13567 # Take the output of nm and produce a listing of raw symbols and C names.
13568 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13570 # Transform the output of nm in a proper C declaration
13571 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13573 # Transform the output of nm in a C name address pair
13574 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13576 # This is the shared library runtime path variable.
13577 runpath_var=$runpath_var
13579 # This is the shared library path variable.
13580 shlibpath_var=$shlibpath_var
13582 # Is shlibpath searched before the hard-coded library search path?
13583 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13585 # How to hardcode a shared library path into an executable.
13586 hardcode_action=$hardcode_action_CXX
13588 # Whether we should hardcode library paths into libraries.
13589 hardcode_into_libs=$hardcode_into_libs
13591 # Flag to hardcode \$libdir into a binary during linking.
13592 # This must work even if \$libdir does not exist.
13593 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13595 # If ld is used when linking, flag to hardcode \$libdir into
13596 # a binary during linking. This must work even if \$libdir does
13598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13600 # Whether we need a single -rpath flag with a separated argument.
13601 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13603 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13604 # resulting binary.
13605 hardcode_direct=$hardcode_direct_CXX
13607 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13608 # resulting binary.
13609 hardcode_minus_L=$hardcode_minus_L_CXX
13611 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13612 # the resulting binary.
13613 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13615 # Set to yes if building a shared library automatically hardcodes DIR into the library
13616 # and all subsequent libraries and executables linked against it.
13617 hardcode_automatic=$hardcode_automatic_CXX
13619 # Variables whose values should be saved in libtool wrapper scripts and
13620 # restored at relink time.
13621 variables_saved_for_relink="$variables_saved_for_relink"
13623 # Whether libtool must link a program against all its dependency libraries.
13624 link_all_deplibs=$link_all_deplibs_CXX
13626 # Compile-time system search path for libraries
13627 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13629 # Run-time system search path for libraries
13630 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13632 # Fix the shell variable \$srcfile for the compiler.
13633 fix_srcfile_path="$fix_srcfile_path_CXX"
13635 # Set to yes if exported symbols are required.
13636 always_export_symbols=$always_export_symbols_CXX
13638 # The commands to list exported symbols.
13639 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13641 # The commands to extract the exported symbol list from a shared archive.
13642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13644 # Symbols that should not be listed in the preloaded symbols.
13645 exclude_expsyms=$lt_exclude_expsyms_CXX
13647 # Symbols that must always be exported.
13648 include_expsyms=$lt_include_expsyms_CXX
13650 # ### END LIBTOOL TAG CONFIG: $tagname
13656 # If there is no Makefile yet, we rely on a make rule to execute
13657 # `config.status --recheck' to rerun these tests and create the
13658 # libtool script then.
13659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13660 if test -f "$ltmain_in"; then
13661 test -f Makefile && make "$ltmain"
13667 ac_cpp='$CPP $CPPFLAGS'
13668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13676 with_gnu_ldcxx=$with_gnu_ld
13677 with_gnu_ld=$lt_save_with_gnu_ld
13678 lt_cv_path_LDCXX=$lt_cv_path_LD
13679 lt_cv_path_LD=$lt_save_path_LD
13680 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13681 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13689 if test -n "$F77" && test "X$F77" != "Xno"; then
13692 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13693 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13697 archive_cmds_need_lc_F77=no
13698 allow_undefined_flag_F77=
13699 always_export_symbols_F77=no
13700 archive_expsym_cmds_F77=
13701 export_dynamic_flag_spec_F77=
13702 hardcode_direct_F77=no
13703 hardcode_libdir_flag_spec_F77=
13704 hardcode_libdir_flag_spec_ld_F77=
13705 hardcode_libdir_separator_F77=
13706 hardcode_minus_L_F77=no
13707 hardcode_automatic_F77=no
13709 module_expsym_cmds_F77=
13710 link_all_deplibs_F77=unknown
13711 old_archive_cmds_F77=$old_archive_cmds
13712 no_undefined_flag_F77=
13713 whole_archive_flag_spec_F77=
13714 enable_shared_with_static_runtimes_F77=no
13716 # Source file extension for f77 test sources.
13719 # Object file extension for compiled f77 test sources.
13723 # Code to be used in simple compile tests
13724 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13726 # Code to be used in simple link tests
13727 lt_simple_link_test_code=" program t\n end\n"
13729 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13731 # If no C compiler was specified, use CC.
13734 # If no C compiler flags were specified, use CFLAGS.
13735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13737 # Allow CC to be a program name with arguments.
13741 # save warnings/boilerplate of simple test code
13742 ac_outfile=conftest.$ac_objext
13743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13745 _lt_compiler_boilerplate=`cat conftest.err`
13748 ac_outfile=conftest.$ac_objext
13749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13751 _lt_linker_boilerplate=`cat conftest.err`
13755 # Allow CC to be a program name with arguments.
13760 for cc_temp in $compiler""; do
13762 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13763 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13768 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13771 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13772 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13773 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13774 echo "${ECHO_T}$can_build_shared" >&6; }
13776 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13777 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13778 test "$can_build_shared" = "no" && enable_shared=no
13780 # On AIX, shared libraries and static libraries use the same namespace, and
13781 # are all built from PIC.
13784 test "$enable_shared" = yes && enable_static=no
13785 if test -n "$RANLIB"; then
13786 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13787 postinstall_cmds='$RANLIB $lib'
13791 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13792 test "$enable_shared" = yes && enable_static=no
13796 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13797 echo "${ECHO_T}$enable_shared" >&6; }
13799 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13800 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13801 # Make sure either enable_shared or enable_static is yes.
13802 test "$enable_shared" = yes || enable_static=yes
13803 { echo "$as_me:$LINENO: result: $enable_static" >&5
13804 echo "${ECHO_T}$enable_static" >&6; }
13809 lt_prog_compiler_wl_F77=
13810 lt_prog_compiler_pic_F77=
13811 lt_prog_compiler_static_F77=
13813 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13814 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13816 if test "$GCC" = yes; then
13817 lt_prog_compiler_wl_F77='-Wl,'
13818 lt_prog_compiler_static_F77='-static'
13822 # All AIX code is PIC.
13823 if test "$host_cpu" = ia64; then
13824 # AIX 5 now supports IA64 processor
13825 lt_prog_compiler_static_F77='-Bstatic'
13830 # FIXME: we need at least 68020 code to build shared libraries, but
13831 # adding the `-m68020' flag to GCC prevents building anything better,
13833 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13837 # PIC is the default for these OSes.
13840 mingw* | pw32* | os2*)
13841 # This hack is so that the source file can tell whether it is being
13842 # built for inclusion in a dll (and should export symbols for example).
13843 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13846 darwin* | rhapsody*)
13847 # PIC is the default on this platform
13848 # Common symbols not allowed in MH_DYLIB files
13849 lt_prog_compiler_pic_F77='-fno-common'
13853 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13854 # Instead, we relocate shared libraries at runtime.
13858 # Just because we use GCC doesn't mean we suddenly get shared libraries
13859 # on systems that don't support them.
13860 lt_prog_compiler_can_build_shared_F77=no
13865 if test -d /usr/nec; then
13866 lt_prog_compiler_pic_F77=-Kconform_pic
13871 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13872 # not for PA HP-UX.
13878 lt_prog_compiler_pic_F77='-fPIC'
13884 lt_prog_compiler_pic_F77='-fPIC'
13888 # PORTME Check for flag to pass linker flags through the system compiler.
13891 lt_prog_compiler_wl_F77='-Wl,'
13892 if test "$host_cpu" = ia64; then
13893 # AIX 5 now supports IA64 processor
13894 lt_prog_compiler_static_F77='-Bstatic'
13896 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13900 # PIC is the default on this platform
13901 # Common symbols not allowed in MH_DYLIB files
13902 case $cc_basename in
13904 lt_prog_compiler_pic_F77='-qnocommon'
13905 lt_prog_compiler_wl_F77='-Wl,'
13910 mingw* | pw32* | os2*)
13911 # This hack is so that the source file can tell whether it is being
13912 # built for inclusion in a dll (and should export symbols for example).
13913 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13916 hpux9* | hpux10* | hpux11*)
13917 lt_prog_compiler_wl_F77='-Wl,'
13918 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13919 # not for PA HP-UX.
13925 lt_prog_compiler_pic_F77='+Z'
13928 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13929 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13932 irix5* | irix6* | nonstopux*)
13933 lt_prog_compiler_wl_F77='-Wl,'
13934 # PIC (with -KPIC) is the default.
13935 lt_prog_compiler_static_F77='-non_shared'
13939 lt_prog_compiler_pic_F77='-KPIC'
13940 lt_prog_compiler_static_F77='-Bstatic'
13944 case $cc_basename in
13946 lt_prog_compiler_wl_F77='-Wl,'
13947 lt_prog_compiler_pic_F77='-KPIC'
13948 lt_prog_compiler_static_F77='-static'
13950 pgcc* | pgf77* | pgf90* | pgf95*)
13951 # Portland Group compilers (*not* the Pentium gcc compiler,
13952 # which looks to be a dead project)
13953 lt_prog_compiler_wl_F77='-Wl,'
13954 lt_prog_compiler_pic_F77='-fpic'
13955 lt_prog_compiler_static_F77='-Bstatic'
13958 lt_prog_compiler_wl_F77='-Wl,'
13959 # All Alpha code is PIC.
13960 lt_prog_compiler_static_F77='-non_shared'
13965 osf3* | osf4* | osf5*)
13966 lt_prog_compiler_wl_F77='-Wl,'
13967 # All OSF/1 code is PIC.
13968 lt_prog_compiler_static_F77='-non_shared'
13972 lt_prog_compiler_pic_F77='-KPIC'
13973 lt_prog_compiler_static_F77='-Bstatic'
13974 case $cc_basename in
13975 f77* | f90* | f95*)
13976 lt_prog_compiler_wl_F77='-Qoption ld ';;
13978 lt_prog_compiler_wl_F77='-Wl,';;
13983 lt_prog_compiler_wl_F77='-Qoption ld '
13984 lt_prog_compiler_pic_F77='-PIC'
13985 lt_prog_compiler_static_F77='-Bstatic'
13988 sysv4 | sysv4.2uw2* | sysv4.3*)
13989 lt_prog_compiler_wl_F77='-Wl,'
13990 lt_prog_compiler_pic_F77='-KPIC'
13991 lt_prog_compiler_static_F77='-Bstatic'
13995 if test -d /usr/nec ;then
13996 lt_prog_compiler_pic_F77='-Kconform_pic'
13997 lt_prog_compiler_static_F77='-Bstatic'
14001 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 lt_prog_compiler_pic_F77='-KPIC'
14004 lt_prog_compiler_static_F77='-Bstatic'
14008 lt_prog_compiler_wl_F77='-Wl,'
14009 lt_prog_compiler_can_build_shared_F77=no
14013 lt_prog_compiler_pic_F77='-pic'
14014 lt_prog_compiler_static_F77='-Bstatic'
14018 lt_prog_compiler_can_build_shared_F77=no
14023 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14024 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14027 # Check to make sure the PIC flag actually works.
14029 if test -n "$lt_prog_compiler_pic_F77"; then
14031 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14032 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14033 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14036 lt_prog_compiler_pic_works_F77=no
14037 ac_outfile=conftest.$ac_objext
14038 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14039 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14040 # Insert the option either (1) after the last *FLAGS variable, or
14041 # (2) before a word containing "conftest.", or (3) at the end.
14042 # Note that $ac_compile itself does not contain backslashes and begins
14043 # with a dollar sign (not a hyphen), so the echo should work correctly.
14044 # The option is referenced via a variable to avoid confusing sed.
14045 lt_compile=`echo "$ac_compile" | $SED \
14046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14048 -e 's:$: $lt_compiler_flag:'`
14049 (eval echo "\"\$as_me:14049: $lt_compile\"" >&5)
14050 (eval "$lt_compile" 2>conftest.err)
14052 cat conftest.err >&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 if (exit $ac_status) && test -s "$ac_outfile"; then
14055 # The compiler can only warn and ignore the option if not recognized
14056 # So say no if there are warnings other than the usual output.
14057 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14059 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14060 lt_prog_compiler_pic_works_F77=yes
14066 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14067 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14069 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14070 case $lt_prog_compiler_pic_F77 in
14072 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14075 lt_prog_compiler_pic_F77=
14076 lt_prog_compiler_can_build_shared_F77=no
14081 # For platforms which do not support PIC, -DPIC is meaningless:
14083 lt_prog_compiler_pic_F77=
14086 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14091 # Check to make sure the static flag actually works.
14093 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14094 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14095 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14096 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14097 echo $ECHO_N "(cached) $ECHO_C" >&6
14099 lt_prog_compiler_static_works_F77=no
14100 save_LDFLAGS="$LDFLAGS"
14101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14102 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14104 # The linker can only warn and ignore the option if not recognized
14105 # So say no if there are warnings
14106 if test -s conftest.err; then
14107 # Append any errors to the config.log.
14108 cat conftest.err 1>&5
14109 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14111 if diff conftest.exp conftest.er2 >/dev/null; then
14112 lt_prog_compiler_static_works_F77=yes
14115 lt_prog_compiler_static_works_F77=yes
14119 LDFLAGS="$save_LDFLAGS"
14122 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14123 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14125 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14128 lt_prog_compiler_static_F77=
14132 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14133 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14134 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14135 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 lt_cv_prog_compiler_c_o_F77=no
14138 $rm -r conftest 2>/dev/null
14142 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14144 lt_compiler_flag="-o out/conftest2.$ac_objext"
14145 # Insert the option either (1) after the last *FLAGS variable, or
14146 # (2) before a word containing "conftest.", or (3) at the end.
14147 # Note that $ac_compile itself does not contain backslashes and begins
14148 # with a dollar sign (not a hyphen), so the echo should work correctly.
14149 lt_compile=`echo "$ac_compile" | $SED \
14150 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14151 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14152 -e 's:$: $lt_compiler_flag:'`
14153 (eval echo "\"\$as_me:14153: $lt_compile\"" >&5)
14154 (eval "$lt_compile" 2>out/conftest.err)
14156 cat out/conftest.err >&5
14157 echo "$as_me:14157: \$? = $ac_status" >&5
14158 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14160 # The compiler can only warn and ignore the option if not recognized
14161 # So say no if there are warnings
14162 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14163 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14164 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14165 lt_cv_prog_compiler_c_o_F77=yes
14170 # SGI C++ compiler will create directory out/ii_files/ for
14171 # template instantiation
14172 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14173 $rm out/* && rmdir out
14179 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14180 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14183 hard_links="nottested"
14184 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14185 # do not overwrite the value of need_locks provided by the user
14186 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14187 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14192 ln conftest.a conftest.b 2>&5 || hard_links=no
14193 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14194 { echo "$as_me:$LINENO: result: $hard_links" >&5
14195 echo "${ECHO_T}$hard_links" >&6; }
14196 if test "$hard_links" = no; then
14197 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14198 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14205 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14206 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14209 allow_undefined_flag_F77=
14210 enable_shared_with_static_runtimes_F77=no
14212 archive_expsym_cmds_F77=
14213 old_archive_From_new_cmds_F77=
14214 old_archive_from_expsyms_cmds_F77=
14215 export_dynamic_flag_spec_F77=
14216 whole_archive_flag_spec_F77=
14217 thread_safe_flag_spec_F77=
14218 hardcode_libdir_flag_spec_F77=
14219 hardcode_libdir_flag_spec_ld_F77=
14220 hardcode_libdir_separator_F77=
14221 hardcode_direct_F77=no
14222 hardcode_minus_L_F77=no
14223 hardcode_shlibpath_var_F77=unsupported
14224 link_all_deplibs_F77=unknown
14225 hardcode_automatic_F77=no
14227 module_expsym_cmds_F77=
14228 always_export_symbols_F77=no
14229 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14230 # include_expsyms should be a list of space-separated symbols to be *always*
14231 # included in the symbol list
14232 include_expsyms_F77=
14233 # exclude_expsyms can be an extended regexp of symbols to exclude
14234 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14235 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14236 # as well as any symbol that contains `d'.
14237 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14238 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14239 # platforms (ab)use it in PIC code, but their linkers get confused if
14240 # the symbol is explicitly referenced. Since portable code cannot
14241 # rely on this symbol name, it's probably fine to never include it in
14242 # preloaded symbol tables.
14243 extract_expsyms_cmds=
14244 # Just being paranoid about ensuring that cc_basename is set.
14245 for cc_temp in $compiler""; do
14247 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14248 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14256 cygwin* | mingw* | pw32*)
14257 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14258 # When not using gcc, we currently assume that we are using
14259 # Microsoft Visual C++.
14260 if test "$GCC" != yes; then
14265 # we just hope/assume this is gcc and not c89 (= MSVC++)
14274 if test "$with_gnu_ld" = yes; then
14275 # If archive_cmds runs LD, not CC, wlarc should be empty
14278 # Set some defaults for GNU ld with shared library support. These
14279 # are reset later if shared libraries are not supported. Putting them
14280 # here allows them to be overridden if necessary.
14281 runpath_var=LD_RUN_PATH
14282 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14283 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14284 # ancient GNU ld didn't support --whole-archive et. al.
14285 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14286 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14288 whole_archive_flag_spec_F77=
14290 supports_anon_versioning=no
14291 case `$LD -v 2>/dev/null` in
14292 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14293 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14294 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14295 *\ 2.11.*) ;; # other 2.11 versions
14296 *) supports_anon_versioning=yes ;;
14299 # See if GNU ld supports shared libraries.
14301 aix3* | aix4* | aix5*)
14302 # On AIX/PPC, the GNU linker is very broken
14303 if test "$host_cpu" != ia64; then
14307 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14308 *** to be unable to reliably create shared libraries on AIX.
14309 *** Therefore, libtool is disabling shared libraries support. If you
14310 *** really care for shared libraries, you may want to modify your PATH
14311 *** so that a non-GNU linker is found, and then restart.
14318 archive_cmds_F77='$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)'
14319 hardcode_libdir_flag_spec_F77='-L$libdir'
14320 hardcode_minus_L_F77=yes
14322 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14323 # that the semantics of dynamic libraries on AmigaOS, at least up
14324 # to version 4, is to share data among multiple programs linked
14325 # with the same dynamic library. Since this doesn't match the
14326 # behavior of shared libraries on other platforms, we can't use
14332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14333 allow_undefined_flag_F77=unsupported
14334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14335 # support --undefined. This deserves some investigation. FIXME
14336 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14342 cygwin* | mingw* | pw32*)
14343 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14344 # as there is no search path for DLLs.
14345 hardcode_libdir_flag_spec_F77='-L$libdir'
14346 allow_undefined_flag_F77=unsupported
14347 always_export_symbols_F77=no
14348 enable_shared_with_static_runtimes_F77=yes
14349 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14351 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14353 # If the export-symbols file already is a .def file (1st line
14354 # is EXPORTS), use it as is; otherwise, prepend...
14355 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14356 cp $export_symbols $output_objdir/$soname.def;
14358 echo EXPORTS > $output_objdir/$soname.def;
14359 cat $export_symbols >> $output_objdir/$soname.def;
14361 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14368 hardcode_direct_F77=no
14369 hardcode_shlibpath_var_F77=no
14370 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14371 export_dynamic_flag_spec_F77='${wl}-E'
14372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14373 # Instead, shared libraries are loaded at an image base (0x10000000 by
14374 # default) and relocated if they conflict, which is a slow very memory
14375 # consuming and fragmenting process. To avoid this, we pick a random,
14376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14378 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14379 archive_expsym_cmds_F77='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'
14383 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14385 case $cc_basename,$host_cpu in
14386 pgcc*) # Portland Group C compiler
14387 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14388 tmp_addflag=' $pic_flag'
14390 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14391 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14392 tmp_addflag=' $pic_flag -Mnomain' ;;
14393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14394 tmp_addflag=' -i_dynamic' ;;
14395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14396 tmp_addflag=' -i_dynamic -nofor_main' ;;
14397 ifc* | ifort*) # Intel Fortran compiler
14398 tmp_addflag=' -nofor_main' ;;
14400 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14402 if test $supports_anon_versioning = yes; then
14403 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14404 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14405 $echo "local: *; };" >> $output_objdir/$libname.ver~
14406 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14415 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14418 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14419 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14428 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14429 *** create shared libraries on Solaris systems. Therefore, libtool
14430 *** is disabling shared libraries support. We urge you to upgrade GNU
14431 *** binutils to release 2.9.1 or newer. Another option is to modify
14432 *** your PATH or compiler configuration so that the native linker is
14433 *** used, and then restart.
14436 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14437 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14438 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14445 case `$LD -v 2>&1` in
14446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14450 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14451 *** reliably create shared libraries on SCO systems. Therefore, libtool
14452 *** is disabling shared libraries support. We urge you to upgrade GNU
14453 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14454 *** your PATH or compiler configuration so that the native linker is
14455 *** used, and then restart.
14460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14461 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14462 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14463 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14472 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14474 hardcode_direct_F77=yes
14475 hardcode_shlibpath_var_F77=no
14479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14480 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14481 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14488 if test "$ld_shlibs_F77" = no; then
14490 hardcode_libdir_flag_spec_F77=
14491 export_dynamic_flag_spec_F77=
14492 whole_archive_flag_spec_F77=
14495 # PORTME fill in a description of your system's linker (not GNU ld)
14498 allow_undefined_flag_F77=unsupported
14499 always_export_symbols_F77=yes
14500 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14501 # Note: this linker hardcodes the directories in LIBPATH if there
14502 # are no directories specified by -L.
14503 hardcode_minus_L_F77=yes
14504 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14505 # Neither direct hardcoding nor static linking is supported with a
14507 hardcode_direct_F77=unsupported
14512 if test "$host_cpu" = ia64; then
14513 # On IA64, the linker does run time linking by default, so we don't
14514 # have to do anything special.
14515 aix_use_runtimelinking=no
14516 exp_sym_flag='-Bexport'
14519 # If we're using GNU nm, then we don't want the "-C" option.
14520 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14521 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14522 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14524 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14526 aix_use_runtimelinking=no
14528 # Test if we are trying to use run time linking or normal
14529 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14530 # need to do runtime linking.
14531 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14532 for ld_flag in $LDFLAGS; do
14533 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14534 aix_use_runtimelinking=yes
14541 exp_sym_flag='-bexport'
14542 no_entry_flag='-bnoentry'
14545 # When large executables or shared objects are built, AIX ld can
14546 # have problems creating the table of contents. If linking a library
14547 # or program results in "error TOC overflow" add -mminimal-toc to
14548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14551 archive_cmds_F77=''
14552 hardcode_direct_F77=yes
14553 hardcode_libdir_separator_F77=':'
14554 link_all_deplibs_F77=yes
14556 if test "$GCC" = yes; then
14557 case $host_os in aix4.[012]|aix4.[012].*)
14558 # We only want to do this on AIX 4.2 and lower, the check
14559 # below for broken collect2 doesn't work under 4.3+
14560 collect2name=`${CC} -print-prog-name=collect2`
14561 if test -f "$collect2name" && \
14562 strings "$collect2name" | grep resolve_lib_name >/dev/null
14564 # We have reworked collect2
14565 hardcode_direct_F77=yes
14567 # We have old collect2
14568 hardcode_direct_F77=unsupported
14569 # It fails to find uninstalled libraries when the uninstalled
14570 # path is not listed in the libpath. Setting hardcode_minus_L
14571 # to unsupported forces relinking
14572 hardcode_minus_L_F77=yes
14573 hardcode_libdir_flag_spec_F77='-L$libdir'
14574 hardcode_libdir_separator_F77=
14578 shared_flag='-shared'
14579 if test "$aix_use_runtimelinking" = yes; then
14580 shared_flag="$shared_flag "'${wl}-G'
14584 if test "$host_cpu" = ia64; then
14585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14586 # chokes on -Wl,-G. The following line is correct:
14589 if test "$aix_use_runtimelinking" = yes; then
14590 shared_flag='${wl}-G'
14592 shared_flag='${wl}-bM:SRE'
14597 # It seems that -bexpall does not export symbols beginning with
14598 # underscore (_), so it is better to generate a list of symbols to export.
14599 always_export_symbols_F77=yes
14600 if test "$aix_use_runtimelinking" = yes; then
14601 # Warning - without using the other runtime loading flags (-brtl),
14602 # -berok will link without error, but may produce a broken library.
14603 allow_undefined_flag_F77='-berok'
14604 # Determine the default libpath from the value encoded in an empty executable.
14605 cat >conftest.$ac_ext <<_ACEOF
14610 rm -f conftest.$ac_objext conftest$ac_exeext
14611 if { (ac_try="$ac_link"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_link") 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest$ac_exeext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14645 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14647 # Check for a 64-bit object if we didn't find anything.
14648 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14657 rm -f core conftest.err conftest.$ac_objext \
14658 conftest$ac_exeext conftest.$ac_ext
14659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14661 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14662 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14664 if test "$host_cpu" = ia64; then
14665 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14666 allow_undefined_flag_F77="-z nodefs"
14667 archive_expsym_cmds_F77="\$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"
14669 # Determine the default libpath from the value encoded in an empty executable.
14670 cat >conftest.$ac_ext <<_ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_link") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
14689 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14690 { (case "(($ac_try" in
14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692 *) ac_try_echo=$ac_try;;
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695 (eval "$ac_try") 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest$ac_exeext'
14700 { (case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_try") 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14712 # Check for a 64-bit object if we didn't find anything.
14713 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14716 echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14722 rm -f core conftest.err conftest.$ac_objext \
14723 conftest$ac_exeext conftest.$ac_ext
14724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14726 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14727 # Warning - without using the other run time loading flags,
14728 # -berok will link without error, but may produce a broken library.
14729 no_undefined_flag_F77=' ${wl}-bernotok'
14730 allow_undefined_flag_F77=' ${wl}-berok'
14731 # Exported symbols can be pulled into shared objects from archives
14732 whole_archive_flag_spec_F77='$convenience'
14733 archive_cmds_need_lc_F77=yes
14734 # This is similar to how AIX traditionally builds its shared libraries.
14735 archive_expsym_cmds_F77="\$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'
14741 archive_cmds_F77='$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)'
14742 hardcode_libdir_flag_spec_F77='-L$libdir'
14743 hardcode_minus_L_F77=yes
14744 # see comment about different semantics on the GNU ld section
14749 export_dynamic_flag_spec_F77=-rdynamic
14752 cygwin* | mingw* | pw32*)
14753 # When not using gcc, we currently assume that we are using
14754 # Microsoft Visual C++.
14755 # hardcode_libdir_flag_spec is actually meaningless, as there is
14756 # no search path for DLLs.
14757 hardcode_libdir_flag_spec_F77=' '
14758 allow_undefined_flag_F77=unsupported
14759 # Tell ltmain to make .lib files, not .a files.
14761 # Tell ltmain to make .dll files, not .so files.
14763 # FIXME: Setting linknames here is a bad hack.
14764 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14765 # The linker will automatically build a .lib file if we build a DLL.
14766 old_archive_From_new_cmds_F77='true'
14767 # FIXME: Should let the user specify the lib program.
14768 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14769 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14770 enable_shared_with_static_runtimes_F77=yes
14773 darwin* | rhapsody*)
14775 rhapsody* | darwin1.[012])
14776 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14779 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14780 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14782 case ${MACOSX_DEPLOYMENT_TARGET} in
14784 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14787 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14793 archive_cmds_need_lc_F77=no
14794 hardcode_direct_F77=no
14795 hardcode_automatic_F77=yes
14796 hardcode_shlibpath_var_F77=unsupported
14797 whole_archive_flag_spec_F77=''
14798 link_all_deplibs_F77=yes
14799 if test "$GCC" = yes ; then
14800 output_verbose_link_cmd='echo'
14801 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14802 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14804 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14805 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14807 case $cc_basename in
14809 output_verbose_link_cmd='echo'
14810 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14811 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14813 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14814 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14825 hardcode_libdir_flag_spec_F77='-L$libdir'
14826 hardcode_shlibpath_var_F77=no
14833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14834 # support. Future versions do this automatically, but an explicit c++rt0.o
14835 # does not break anything, and helps significantly (at the cost of a little
14838 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14839 hardcode_libdir_flag_spec_F77='-R$libdir'
14840 hardcode_direct_F77=yes
14841 hardcode_shlibpath_var_F77=no
14844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14846 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14847 hardcode_direct_F77=yes
14848 hardcode_minus_L_F77=yes
14849 hardcode_shlibpath_var_F77=no
14852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14853 freebsd* | kfreebsd*-gnu | dragonfly*)
14854 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14855 hardcode_libdir_flag_spec_F77='-R$libdir'
14856 hardcode_direct_F77=yes
14857 hardcode_shlibpath_var_F77=no
14861 if test "$GCC" = yes; then
14862 archive_cmds_F77='$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'
14864 archive_cmds_F77='$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'
14866 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14867 hardcode_libdir_separator_F77=:
14868 hardcode_direct_F77=yes
14870 # hardcode_minus_L: Not really in the search PATH,
14871 # but as the default location of the library.
14872 hardcode_minus_L_F77=yes
14873 export_dynamic_flag_spec_F77='${wl}-E'
14877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14878 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14882 if test "$with_gnu_ld" = no; then
14883 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14884 hardcode_libdir_separator_F77=:
14886 hardcode_direct_F77=yes
14887 export_dynamic_flag_spec_F77='${wl}-E'
14889 # hardcode_minus_L: Not really in the search PATH,
14890 # but as the default location of the library.
14891 hardcode_minus_L_F77=yes
14896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14899 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14902 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14905 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14917 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14921 if test "$with_gnu_ld" = no; then
14922 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14923 hardcode_libdir_separator_F77=:
14927 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14928 hardcode_direct_F77=no
14929 hardcode_shlibpath_var_F77=no
14932 hardcode_direct_F77=yes
14933 export_dynamic_flag_spec_F77='${wl}-E'
14935 # hardcode_minus_L: Not really in the search PATH,
14936 # but as the default location of the library.
14937 hardcode_minus_L_F77=yes
14943 irix5* | irix6* | nonstopux*)
14944 if test "$GCC" = yes; then
14945 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14947 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14948 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14950 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14951 hardcode_libdir_separator_F77=:
14952 link_all_deplibs_F77=yes
14956 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14959 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14961 hardcode_libdir_flag_spec_F77='-R$libdir'
14962 hardcode_direct_F77=yes
14963 hardcode_shlibpath_var_F77=no
14967 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968 hardcode_direct_F77=yes
14969 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14970 hardcode_libdir_separator_F77=:
14971 hardcode_shlibpath_var_F77=no
14975 hardcode_direct_F77=yes
14976 hardcode_shlibpath_var_F77=no
14977 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14980 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981 export_dynamic_flag_spec_F77='${wl}-E'
14984 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14985 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14986 hardcode_libdir_flag_spec_F77='-R$libdir'
14989 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14990 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14997 hardcode_libdir_flag_spec_F77='-L$libdir'
14998 hardcode_minus_L_F77=yes
14999 allow_undefined_flag_F77=unsupported
15000 archive_cmds_F77='$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'
15001 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15005 if test "$GCC" = yes; then
15006 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15007 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15009 allow_undefined_flag_F77=' -expect_unresolved \*'
15010 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15012 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15013 hardcode_libdir_separator_F77=:
15016 osf4* | osf5*) # as osf3* with the addition of -msym flag
15017 if test "$GCC" = yes; then
15018 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15019 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15020 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15022 allow_undefined_flag_F77=' -expect_unresolved \*'
15023 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15024 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15025 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15027 # Both c and cxx compiler support -rpath directly
15028 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15030 hardcode_libdir_separator_F77=:
15034 no_undefined_flag_F77=' -z text'
15035 if test "$GCC" = yes; then
15037 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15039 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15042 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15043 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15046 hardcode_libdir_flag_spec_F77='-R$libdir'
15047 hardcode_shlibpath_var_F77=no
15049 solaris2.[0-5] | solaris2.[0-5].*) ;;
15051 # The compiler driver will combine linker options so we
15052 # cannot just pass the convience library names through
15053 # without $wl, iff we do not link with $LD.
15054 # Luckily, gcc supports the same syntax we need for Sun Studio.
15055 # Supported since Solaris 2.6 (maybe 2.5.1?)
15058 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15060 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15063 link_all_deplibs_F77=yes
15067 if test "x$host_vendor" = xsequent; then
15068 # Use $CC to link under sequent, because it throws in some extra .o
15069 # files that make .init and .fini sections work.
15070 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15072 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15074 hardcode_libdir_flag_spec_F77='-L$libdir'
15075 hardcode_direct_F77=yes
15076 hardcode_minus_L_F77=yes
15077 hardcode_shlibpath_var_F77=no
15081 case $host_vendor in
15083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15084 hardcode_direct_F77=yes # is this really true???
15087 ## LD is ld it makes a PLAMLIB
15088 ## CC just makes a GrossModule.
15089 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15090 reload_cmds_F77='$CC -r -o $output$reload_objs'
15091 hardcode_direct_F77=no
15094 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15095 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15098 runpath_var='LD_RUN_PATH'
15099 hardcode_shlibpath_var_F77=no
15103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15104 hardcode_shlibpath_var_F77=no
15105 export_dynamic_flag_spec_F77='-Bexport'
15109 if test -d /usr/nec; then
15110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15111 hardcode_shlibpath_var_F77=no
15112 runpath_var=LD_RUN_PATH
15113 hardcode_runpath_var=yes
15118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15119 no_undefined_flag_F77='${wl}-z,text'
15120 archive_cmds_need_lc_F77=no
15121 hardcode_shlibpath_var_F77=no
15122 runpath_var='LD_RUN_PATH'
15124 if test "$GCC" = yes; then
15125 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15126 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15133 sysv5* | sco3.2v5* | sco5v6*)
15134 # Note: We can NOT use -z defs as we might desire, because we do not
15135 # link with -lc, and that would cause any symbols used from libc to
15136 # always be unresolved, which means just about no library would
15137 # ever link correctly. If we're not using GNU ld we use -z text
15138 # though, which does catch some bad symbols but isn't as heavy-handed
15140 no_undefined_flag_F77='${wl}-z,text'
15141 allow_undefined_flag_F77='${wl}-z,nodefs'
15142 archive_cmds_need_lc_F77=no
15143 hardcode_shlibpath_var_F77=no
15144 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15145 hardcode_libdir_separator_F77=':'
15146 link_all_deplibs_F77=yes
15147 export_dynamic_flag_spec_F77='${wl}-Bexport'
15148 runpath_var='LD_RUN_PATH'
15150 if test "$GCC" = yes; then
15151 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15152 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15161 hardcode_libdir_flag_spec_F77='-L$libdir'
15162 hardcode_shlibpath_var_F77=no
15171 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15172 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15173 test "$ld_shlibs_F77" = no && can_build_shared=no
15176 # Do we need to explicitly link libc?
15178 case "x$archive_cmds_need_lc_F77" in
15180 # Assume -lc should be added
15181 archive_cmds_need_lc_F77=yes
15183 if test "$enable_shared" = yes && test "$GCC" = yes; then
15184 case $archive_cmds_F77 in
15186 # FIXME: we may have to deal with multi-command sequences.
15189 # Test whether the compiler implicitly links with -lc since on some
15190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15191 # to ld, don't add -lc before -lgcc.
15192 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15193 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15195 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15198 (eval $ac_compile) 2>&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } 2>conftest.err; then
15204 libobjs=conftest.$ac_objext
15206 wl=$lt_prog_compiler_wl_F77
15207 pic_flag=$lt_prog_compiler_pic_F77
15213 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15214 allow_undefined_flag_F77=
15215 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15216 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }
15221 archive_cmds_need_lc_F77=no
15223 archive_cmds_need_lc_F77=yes
15225 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15227 cat conftest.err 1>&5
15230 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15231 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15238 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15239 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15240 library_names_spec=
15241 libname_spec='lib$name'
15245 postuninstall_cmds=
15249 shlibpath_overrides_runpath=unknown
15251 dynamic_linker="$host_os ld.so"
15252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15253 if test "$GCC" = yes; then
15254 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15255 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15256 # if the path contains ";" then we assume it to be the separator
15257 # otherwise default to the standard path separator (i.e. ":") - it is
15258 # assumed that no part of a normal pathname contains ";" but that should
15259 # okay in the real world where ";" in dirpaths is itself problematic.
15260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15265 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15267 need_lib_prefix=unknown
15268 hardcode_into_libs=no
15270 # when you set need_version to no, make sure it does not cause -set_version
15271 # flags to be left without arguments
15272 need_version=unknown
15277 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15278 shlibpath_var=LIBPATH
15280 # AIX 3 has no versioning support, so we append a major version to the name.
15281 soname_spec='${libname}${release}${shared_ext}$major'
15288 hardcode_into_libs=yes
15289 if test "$host_cpu" = ia64; then
15290 # AIX 5 supports IA64
15291 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15292 shlibpath_var=LD_LIBRARY_PATH
15294 # With GCC up to 2.95.x, collect2 would create an import file
15295 # for dependence libraries. The import file would start with
15296 # the line `#! .'. This would cause the generated library to
15297 # depend on `.', always an invalid library. This was fixed in
15298 # development snapshots of GCC prior to 3.0.
15300 aix4 | aix4.[01] | aix4.[01].*)
15301 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15303 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15306 can_build_shared=no
15310 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15311 # soname into executable. Probably we can add versioning support to
15312 # collect2, so additional links can be useful in future.
15313 if test "$aix_use_runtimelinking" = yes; then
15314 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15315 # instead of lib<name>.a to let people know that these are not
15316 # typical AIX shared libraries.
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15319 # We preserve .a as extension for shared libraries through AIX4.2
15320 # and later when we are not doing run time linking.
15321 library_names_spec='${libname}${release}.a $libname.a'
15322 soname_spec='${libname}${release}${shared_ext}$major'
15324 shlibpath_var=LIBPATH
15329 library_names_spec='$libname.ixlibrary $libname.a'
15330 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15331 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'
15335 library_names_spec='${libname}${shared_ext}'
15336 dynamic_linker="$host_os ld.so"
15337 shlibpath_var=LIBRARY_PATH
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15348 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15349 # the default ld.so.conf also contains /usr/contrib/lib and
15350 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15351 # libtool to hard-code these into programs
15354 cygwin* | mingw* | pw32*)
15355 version_type=windows
15360 case $GCC,$host_os in
15361 yes,cygwin* | yes,mingw* | yes,pw32*)
15362 library_names_spec='$libname.dll.a'
15363 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15364 postinstall_cmds='base_file=`basename \${file}`~
15365 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15366 dldir=$destdir/`dirname \$dlpath`~
15367 test -d \$dldir || mkdir -p \$dldir~
15368 $install_prog $dir/$dlname \$dldir/$dlname~
15369 chmod a+x \$dldir/$dlname'
15370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15371 dlpath=$dir/\$dldll~
15373 shlibpath_overrides_runpath=yes
15377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15379 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15382 # MinGW DLLs use traditional 'lib' prefix
15383 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15385 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15386 # It is most probably a Windows format PATH printed by
15387 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15388 # path with ; separators, and with drive letters. We can handle the
15389 # drive letters (cygwin fileutils understands them), so leave them,
15390 # especially as we might pass files found there to a mingw objdump,
15391 # which wouldn't understand a cygwinified path. Ahh.
15392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15398 # pw32 DLLs use 'pw' prefix rather than 'lib'
15399 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15405 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15407 supports_anon_versioning=no
15408 case `$LD -v 2>/dev/null` in
15409 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15410 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15411 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15412 *\ 2.11.*) ;; # other 2.11 versions
15413 *) supports_anon_versioning=yes ;;
15415 if test $supports_anon_versioning = yes; then
15416 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15418 $echo "local: *; };" >> $output_objdir/$libname.ver~
15419 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15421 $archive_expsym_cmds="$archive_cmds"
15429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15432 dynamic_linker='Win32 ld.exe'
15433 # FIXME: first we should search . and the directory the executable is in
15437 darwin* | rhapsody*)
15438 dynamic_linker="$host_os dyld"
15439 version_type=darwin
15442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15443 soname_spec='${libname}${release}${major}$shared_ext'
15444 shlibpath_overrides_runpath=yes
15445 shlibpath_var=DYLD_LIBRARY_PATH
15446 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15447 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15448 if test "$GCC" = yes; then
15449 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15451 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15461 soname_spec='${libname}${release}${shared_ext}$major'
15462 shlibpath_var=LD_LIBRARY_PATH
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15477 hardcode_into_libs=yes
15478 dynamic_linker='GNU ld.so'
15481 freebsd* | dragonfly*)
15482 # DragonFly does not have aout. When/if they implement a new
15483 # versioning mechanism, adjust this.
15484 if test -x /usr/bin/objformat; then
15485 objformat=`/usr/bin/objformat`
15488 freebsd[123]*) objformat=aout ;;
15489 *) objformat=elf ;;
15492 # Handle Gentoo/FreeBSD as it was Linux
15493 case $host_vendor in
15495 version_type=linux ;;
15497 version_type=freebsd-$objformat ;;
15500 case $version_type in
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15517 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15522 freebsd3.[01]* | freebsdelf3.[01]*)
15523 shlibpath_overrides_runpath=yes
15524 hardcode_into_libs=yes
15526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15528 shlibpath_overrides_runpath=no
15529 hardcode_into_libs=yes
15531 freebsd*) # from 4.6 on
15532 shlibpath_overrides_runpath=yes
15533 hardcode_into_libs=yes
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 hardcode_into_libs=yes
15548 hpux9* | hpux10* | hpux11*)
15549 # Give a soname corresponding to the major version so that dld.sl refuses to
15550 # link against other versions.
15557 hardcode_into_libs=yes
15558 dynamic_linker="$host_os dld.so"
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562 soname_spec='${libname}${release}${shared_ext}$major'
15563 if test "X$HPUX_IA64_MODE" = X32; then
15564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15572 hardcode_into_libs=yes
15573 dynamic_linker="$host_os dld.sl"
15574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15583 dynamic_linker="$host_os dld.sl"
15584 shlibpath_var=SHLIB_PATH
15585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15590 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15591 postinstall_cmds='chmod 555 $lib'
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 shlibpath_overrides_runpath=no
15603 hardcode_into_libs=yes
15606 irix5* | irix6* | nonstopux*)
15608 nonstopux*) version_type=nonstopux ;;
15610 if test "$lt_cv_prog_gnu_ld" = yes; then
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15621 irix5* | nonstopux*)
15622 libsuff= shlibsuff=
15625 case $LD in # libtool.m4 will add one of these switches to LD
15626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15627 libsuff= shlibsuff= libmagic=32-bit;;
15628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15629 libsuff=32 shlibsuff=N32 libmagic=N32;;
15630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15632 *) libsuff= shlibsuff= libmagic=never-match;;
15636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15637 shlibpath_overrides_runpath=no
15638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15640 hardcode_into_libs=yes
15643 # No shared lib support for Linux oldld, aout, or coff.
15644 linux*oldld* | linux*aout* | linux*coff*)
15648 # This must be Linux ELF.
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654 soname_spec='${libname}${release}${shared_ext}$major'
15655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 shlibpath_overrides_runpath=no
15658 # This implies no fast_install, which is unacceptable.
15659 # Some rework will be needed to allow for fast_install
15660 # before this can be enabled.
15661 hardcode_into_libs=yes
15663 # Append ld.so.conf contents to the search path
15664 if test -f /etc/ld.so.conf; then
15665 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15669 # We used to test for /lib/ld.so.1 and disable shared libraries on
15670 # powerpc, because MkLinux only supported shared libraries with the
15671 # GNU dynamic linker. Since this was broken with cross compilers,
15672 # most powerpc-linux boxes support dynamic linking these days and
15673 # people can always --disable-shared, the test was removed, and we
15674 # assume the GNU/Linux dynamic linker is in use.
15675 dynamic_linker='GNU/Linux ld.so'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15685 shlibpath_overrides_runpath=no
15686 hardcode_into_libs=yes
15687 dynamic_linker='GNU ld.so'
15694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697 dynamic_linker='NetBSD (a.out) ld.so'
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 dynamic_linker='NetBSD ld.elf_so'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=yes
15705 hardcode_into_libs=yes
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 shlibpath_var=LD_LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720 soname_spec='${libname}${release}${shared_ext}$major'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=yes
15727 sys_lib_dlsearch_path_spec="/usr/lib"
15729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15732 *) need_version=no ;;
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736 shlibpath_var=LD_LIBRARY_PATH
15737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15739 openbsd2.[89] | openbsd2.[89].*)
15740 shlibpath_overrides_runpath=no
15743 shlibpath_overrides_runpath=yes
15747 shlibpath_overrides_runpath=yes
15752 libname_spec='$name'
15755 library_names_spec='$libname${shared_ext} $libname.a'
15756 dynamic_linker='OS/2 ld.exe'
15757 shlibpath_var=LIBPATH
15760 osf3* | osf4* | osf5*)
15764 soname_spec='${libname}${release}${shared_ext}$major'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776 soname_spec='${libname}${release}${shared_ext}$major'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 shlibpath_overrides_runpath=yes
15779 hardcode_into_libs=yes
15780 # ldd complains unless libraries are executable
15781 postinstall_cmds='chmod +x $lib'
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 shlibpath_overrides_runpath=yes
15790 if test "$with_gnu_ld" = yes; then
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 case $host_vendor in
15803 shlibpath_overrides_runpath=no
15805 export_dynamic_flag_spec='${wl}-Blargedynsym'
15806 runpath_var=LD_RUN_PATH
15814 shlibpath_overrides_runpath=no
15815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15821 if test -d /usr/nec ;then
15823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15824 soname_spec='$libname${shared_ext}.$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830 version_type=freebsd-elf
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 hardcode_into_libs=yes
15837 if test "$with_gnu_ld" = yes; then
15838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15839 shlibpath_overrides_runpath=no
15841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15842 shlibpath_overrides_runpath=yes
15845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15849 sys_lib_dlsearch_path_spec='/usr/lib'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15864 echo "${ECHO_T}$dynamic_linker" >&6; }
15865 test "$dynamic_linker" = no && can_build_shared=no
15867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15868 if test "$GCC" = yes; then
15869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15874 hardcode_action_F77=
15875 if test -n "$hardcode_libdir_flag_spec_F77" || \
15876 test -n "$runpath_var_F77" || \
15877 test "X$hardcode_automatic_F77" = "Xyes" ; then
15879 # We can hardcode non-existant directories.
15880 if test "$hardcode_direct_F77" != no &&
15881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15882 # have to relink, otherwise we might link with an installed library
15883 # when we should be linking with a yet-to-be-installed one
15884 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15885 test "$hardcode_minus_L_F77" != no; then
15886 # Linking always hardcodes the temporary library directory.
15887 hardcode_action_F77=relink
15889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15890 hardcode_action_F77=immediate
15893 # We cannot hardcode anything, or else we can only hardcode existing
15895 hardcode_action_F77=unsupported
15897 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15898 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15900 if test "$hardcode_action_F77" = relink; then
15901 # Fast installation is not supported
15902 enable_fast_install=no
15903 elif test "$shlibpath_overrides_runpath" = yes ||
15904 test "$enable_shared" = no; then
15905 # Fast installation is not necessary
15906 enable_fast_install=needless
15910 # The else clause should only fire when bootstrapping the
15911 # libtool distribution, otherwise you forgot to ship ltmain.sh
15912 # with your package, and you will get complaints that there are
15913 # no rules to generate ltmain.sh.
15914 if test -f "$ltmain"; then
15915 # See if we are running on zsh, and set the options which allow our commands through
15916 # without removal of \ escapes.
15917 if test -n "${ZSH_VERSION+set}" ; then
15918 setopt NO_GLOB_SUBST
15920 # Now quote all the things that may contain metacharacters while being
15921 # careful not to overquote the AC_SUBSTed values. We take copies of the
15922 # variables and quote the copies for generation of the libtool script.
15923 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15925 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15926 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15927 deplibs_check_method reload_flag reload_cmds need_locks \
15928 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15929 lt_cv_sys_global_symbol_to_c_name_address \
15930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15931 old_postinstall_cmds old_postuninstall_cmds \
15935 lt_prog_compiler_wl_F77 \
15936 lt_prog_compiler_pic_F77 \
15937 lt_prog_compiler_static_F77 \
15938 lt_prog_compiler_no_builtin_flag_F77 \
15939 export_dynamic_flag_spec_F77 \
15940 thread_safe_flag_spec_F77 \
15941 whole_archive_flag_spec_F77 \
15942 enable_shared_with_static_runtimes_F77 \
15943 old_archive_cmds_F77 \
15944 old_archive_from_new_cmds_F77 \
15945 predep_objects_F77 \
15946 postdep_objects_F77 \
15949 compiler_lib_search_path_F77 \
15951 archive_expsym_cmds_F77 \
15952 postinstall_cmds_F77 \
15953 postuninstall_cmds_F77 \
15954 old_archive_from_expsyms_cmds_F77 \
15955 allow_undefined_flag_F77 \
15956 no_undefined_flag_F77 \
15957 export_symbols_cmds_F77 \
15958 hardcode_libdir_flag_spec_F77 \
15959 hardcode_libdir_flag_spec_ld_F77 \
15960 hardcode_libdir_separator_F77 \
15961 hardcode_automatic_F77 \
15963 module_expsym_cmds_F77 \
15964 lt_cv_prog_compiler_c_o_F77 \
15965 exclude_expsyms_F77 \
15966 include_expsyms_F77; do
15969 old_archive_cmds_F77 | \
15970 old_archive_from_new_cmds_F77 | \
15971 archive_cmds_F77 | \
15972 archive_expsym_cmds_F77 | \
15973 module_cmds_F77 | \
15974 module_expsym_cmds_F77 | \
15975 old_archive_from_expsyms_cmds_F77 | \
15976 export_symbols_cmds_F77 | \
15977 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15978 postinstall_cmds | postuninstall_cmds | \
15979 old_postinstall_cmds | old_postuninstall_cmds | \
15980 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15981 # Double-quote double-evaled strings.
15982 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15991 *'\$0 --fallback-echo"')
15992 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15998 cat <<__EOF__ >> "$cfgfile"
15999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16003 # Shell to use when invoking shell scripts.
16006 # Whether or not to build shared libraries.
16007 build_libtool_libs=$enable_shared
16009 # Whether or not to build static libraries.
16010 build_old_libs=$enable_static
16012 # Whether or not to add -lc for building shared libraries.
16013 build_libtool_need_lc=$archive_cmds_need_lc_F77
16015 # Whether or not to disallow shared libs when runtime libs are static
16016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16018 # Whether or not to optimize for fast installation.
16019 fast_install=$enable_fast_install
16022 host_alias=$host_alias
16026 # The build system.
16027 build_alias=$build_alias
16031 # An echo program that does not interpret backslashes.
16036 AR_FLAGS=$lt_AR_FLAGS
16041 # LTCC compiler flags.
16042 LTCFLAGS=$lt_LTCFLAGS
16044 # A language-specific compiler.
16045 CC=$lt_compiler_F77
16047 # Is the compiler the GNU C compiler?
16053 # The linker used to build libraries.
16056 # Whether we need hard or soft links.
16059 # A BSD-compatible nm program.
16062 # A symbol stripping program
16065 # Used to examine libraries when file_magic_cmd begins "file"
16066 MAGIC_CMD=$MAGIC_CMD
16068 # Used on cygwin: DLL creation program.
16071 # Used on cygwin: object dumper.
16074 # Used on cygwin: assembler.
16077 # The name of the directory that contains temporary libtool files.
16080 # How to create reloadable object files.
16081 reload_flag=$lt_reload_flag
16082 reload_cmds=$lt_reload_cmds
16084 # How to pass a linker flag through the compiler.
16085 wl=$lt_lt_prog_compiler_wl_F77
16087 # Object file suffix (normally "o").
16088 objext="$ac_objext"
16090 # Old archive suffix (normally "a").
16093 # Shared library suffix (normally ".so").
16094 shrext_cmds='$shrext_cmds'
16096 # Executable file suffix (normally "").
16099 # Additional compiler flags for building library objects.
16100 pic_flag=$lt_lt_prog_compiler_pic_F77
16103 # What is the maximum length of a command?
16104 max_cmd_len=$lt_cv_sys_max_cmd_len
16106 # Does compiler simultaneously support -c and -o options?
16107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16109 # Must we lock files when doing compilation?
16110 need_locks=$lt_need_locks
16112 # Do we need the lib prefix for modules?
16113 need_lib_prefix=$need_lib_prefix
16115 # Do we need a version for libraries?
16116 need_version=$need_version
16118 # Whether dlopen is supported.
16119 dlopen_support=$enable_dlopen
16121 # Whether dlopen of programs is supported.
16122 dlopen_self=$enable_dlopen_self
16124 # Whether dlopen of statically linked programs is supported.
16125 dlopen_self_static=$enable_dlopen_self_static
16127 # Compiler flag to prevent dynamic linking.
16128 link_static_flag=$lt_lt_prog_compiler_static_F77
16130 # Compiler flag to turn off builtin functions.
16131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16133 # Compiler flag to allow reflexive dlopens.
16134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16136 # Compiler flag to generate shared objects directly from archives.
16137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16139 # Compiler flag to generate thread-safe objects.
16140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16142 # Library versioning type.
16143 version_type=$version_type
16145 # Format of library name prefix.
16146 libname_spec=$lt_libname_spec
16148 # List of archive names. First name is the real one, the rest are links.
16149 # The last name is the one that the linker finds with -lNAME.
16150 library_names_spec=$lt_library_names_spec
16152 # The coded name of the library, if different from the real name.
16153 soname_spec=$lt_soname_spec
16155 # Commands used to build and install an old-style archive.
16157 old_archive_cmds=$lt_old_archive_cmds_F77
16158 old_postinstall_cmds=$lt_old_postinstall_cmds
16159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16161 # Create an old-style archive from a shared archive.
16162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16164 # Create a temporary old-style archive to link instead of a shared archive.
16165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16167 # Commands used to build and install a shared archive.
16168 archive_cmds=$lt_archive_cmds_F77
16169 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16170 postinstall_cmds=$lt_postinstall_cmds
16171 postuninstall_cmds=$lt_postuninstall_cmds
16173 # Commands used to build a loadable module (assumed same as above if empty)
16174 module_cmds=$lt_module_cmds_F77
16175 module_expsym_cmds=$lt_module_expsym_cmds_F77
16177 # Commands to strip libraries.
16178 old_striplib=$lt_old_striplib
16179 striplib=$lt_striplib
16181 # Dependencies to place before the objects being linked to create a
16183 predep_objects=$lt_predep_objects_F77
16185 # Dependencies to place after the objects being linked to create a
16187 postdep_objects=$lt_postdep_objects_F77
16189 # Dependencies to place before the objects being linked to create a
16191 predeps=$lt_predeps_F77
16193 # Dependencies to place after the objects being linked to create a
16195 postdeps=$lt_postdeps_F77
16197 # The library search path used internally by the compiler when linking
16198 # a shared library.
16199 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16201 # Method to check whether dependent libraries are shared objects.
16202 deplibs_check_method=$lt_deplibs_check_method
16204 # Command to use when deplibs_check_method == file_magic.
16205 file_magic_cmd=$lt_file_magic_cmd
16207 # Flag that allows shared libraries with undefined symbols to be built.
16208 allow_undefined_flag=$lt_allow_undefined_flag_F77
16210 # Flag that forces no undefined symbols.
16211 no_undefined_flag=$lt_no_undefined_flag_F77
16213 # Commands used to finish a libtool library installation in a directory.
16214 finish_cmds=$lt_finish_cmds
16216 # Same as above, but a single script fragment to be evaled but not shown.
16217 finish_eval=$lt_finish_eval
16219 # Take the output of nm and produce a listing of raw symbols and C names.
16220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16222 # Transform the output of nm in a proper C declaration
16223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16225 # Transform the output of nm in a C name address pair
16226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16228 # This is the shared library runtime path variable.
16229 runpath_var=$runpath_var
16231 # This is the shared library path variable.
16232 shlibpath_var=$shlibpath_var
16234 # Is shlibpath searched before the hard-coded library search path?
16235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16237 # How to hardcode a shared library path into an executable.
16238 hardcode_action=$hardcode_action_F77
16240 # Whether we should hardcode library paths into libraries.
16241 hardcode_into_libs=$hardcode_into_libs
16243 # Flag to hardcode \$libdir into a binary during linking.
16244 # This must work even if \$libdir does not exist.
16245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16247 # If ld is used when linking, flag to hardcode \$libdir into
16248 # a binary during linking. This must work even if \$libdir does
16250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16252 # Whether we need a single -rpath flag with a separated argument.
16253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_direct=$hardcode_direct_F77
16259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_minus_L=$hardcode_minus_L_F77
16263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16264 # the resulting binary.
16265 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16267 # Set to yes if building a shared library automatically hardcodes DIR into the library
16268 # and all subsequent libraries and executables linked against it.
16269 hardcode_automatic=$hardcode_automatic_F77
16271 # Variables whose values should be saved in libtool wrapper scripts and
16272 # restored at relink time.
16273 variables_saved_for_relink="$variables_saved_for_relink"
16275 # Whether libtool must link a program against all its dependency libraries.
16276 link_all_deplibs=$link_all_deplibs_F77
16278 # Compile-time system search path for libraries
16279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16281 # Run-time system search path for libraries
16282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16284 # Fix the shell variable \$srcfile for the compiler.
16285 fix_srcfile_path="$fix_srcfile_path_F77"
16287 # Set to yes if exported symbols are required.
16288 always_export_symbols=$always_export_symbols_F77
16290 # The commands to list exported symbols.
16291 export_symbols_cmds=$lt_export_symbols_cmds_F77
16293 # The commands to extract the exported symbol list from a shared archive.
16294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16296 # Symbols that should not be listed in the preloaded symbols.
16297 exclude_expsyms=$lt_exclude_expsyms_F77
16299 # Symbols that must always be exported.
16300 include_expsyms=$lt_include_expsyms_F77
16302 # ### END LIBTOOL TAG CONFIG: $tagname
16308 # If there is no Makefile yet, we rely on a make rule to execute
16309 # `config.status --recheck' to rerun these tests and create the
16310 # libtool script then.
16311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16312 if test -f "$ltmain_in"; then
16313 test -f Makefile && make "$ltmain"
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16332 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16335 # Source file extension for Java test sources.
16338 # Object file extension for compiled Java test sources.
16342 # Code to be used in simple compile tests
16343 lt_simple_compile_test_code="class foo {}\n"
16345 # Code to be used in simple link tests
16346 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16350 # If no C compiler was specified, use CC.
16353 # If no C compiler flags were specified, use CFLAGS.
16354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16356 # Allow CC to be a program name with arguments.
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16367 ac_outfile=conftest.$ac_objext
16368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16374 # Allow CC to be a program name with arguments.
16379 for cc_temp in $compiler""; do
16381 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16391 archive_cmds_need_lc_GCJ=no
16393 old_archive_cmds_GCJ=$old_archive_cmds
16396 lt_prog_compiler_no_builtin_flag_GCJ=
16398 if test "$GCC" = yes; then
16399 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16402 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16403 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16404 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16407 lt_cv_prog_compiler_rtti_exceptions=no
16408 ac_outfile=conftest.$ac_objext
16409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16410 lt_compiler_flag="-fno-rtti -fno-exceptions"
16411 # Insert the option either (1) after the last *FLAGS variable, or
16412 # (2) before a word containing "conftest.", or (3) at the end.
16413 # Note that $ac_compile itself does not contain backslashes and begins
16414 # with a dollar sign (not a hyphen), so the echo should work correctly.
16415 # The option is referenced via a variable to avoid confusing sed.
16416 lt_compile=`echo "$ac_compile" | $SED \
16417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16419 -e 's:$: $lt_compiler_flag:'`
16420 (eval echo "\"\$as_me:16420: $lt_compile\"" >&5)
16421 (eval "$lt_compile" 2>conftest.err)
16423 cat conftest.err >&5
16424 echo "$as_me:16424: \$? = $ac_status" >&5
16425 if (exit $ac_status) && test -s "$ac_outfile"; then
16426 # The compiler can only warn and ignore the option if not recognized
16427 # So say no if there are warnings other than the usual output.
16428 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16430 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16431 lt_cv_prog_compiler_rtti_exceptions=yes
16437 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16438 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16440 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16441 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16448 lt_prog_compiler_wl_GCJ=
16449 lt_prog_compiler_pic_GCJ=
16450 lt_prog_compiler_static_GCJ=
16452 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16453 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16455 if test "$GCC" = yes; then
16456 lt_prog_compiler_wl_GCJ='-Wl,'
16457 lt_prog_compiler_static_GCJ='-static'
16461 # All AIX code is PIC.
16462 if test "$host_cpu" = ia64; then
16463 # AIX 5 now supports IA64 processor
16464 lt_prog_compiler_static_GCJ='-Bstatic'
16469 # FIXME: we need at least 68020 code to build shared libraries, but
16470 # adding the `-m68020' flag to GCC prevents building anything better,
16472 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16475 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16476 # PIC is the default for these OSes.
16479 mingw* | pw32* | os2*)
16480 # This hack is so that the source file can tell whether it is being
16481 # built for inclusion in a dll (and should export symbols for example).
16482 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16485 darwin* | rhapsody*)
16486 # PIC is the default on this platform
16487 # Common symbols not allowed in MH_DYLIB files
16488 lt_prog_compiler_pic_GCJ='-fno-common'
16492 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16493 # Instead, we relocate shared libraries at runtime.
16497 # Just because we use GCC doesn't mean we suddenly get shared libraries
16498 # on systems that don't support them.
16499 lt_prog_compiler_can_build_shared_GCJ=no
16504 if test -d /usr/nec; then
16505 lt_prog_compiler_pic_GCJ=-Kconform_pic
16510 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16511 # not for PA HP-UX.
16517 lt_prog_compiler_pic_GCJ='-fPIC'
16523 lt_prog_compiler_pic_GCJ='-fPIC'
16527 # PORTME Check for flag to pass linker flags through the system compiler.
16530 lt_prog_compiler_wl_GCJ='-Wl,'
16531 if test "$host_cpu" = ia64; then
16532 # AIX 5 now supports IA64 processor
16533 lt_prog_compiler_static_GCJ='-Bstatic'
16535 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16539 # PIC is the default on this platform
16540 # Common symbols not allowed in MH_DYLIB files
16541 case $cc_basename in
16543 lt_prog_compiler_pic_GCJ='-qnocommon'
16544 lt_prog_compiler_wl_GCJ='-Wl,'
16549 mingw* | pw32* | os2*)
16550 # This hack is so that the source file can tell whether it is being
16551 # built for inclusion in a dll (and should export symbols for example).
16552 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16555 hpux9* | hpux10* | hpux11*)
16556 lt_prog_compiler_wl_GCJ='-Wl,'
16557 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16558 # not for PA HP-UX.
16564 lt_prog_compiler_pic_GCJ='+Z'
16567 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16568 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16571 irix5* | irix6* | nonstopux*)
16572 lt_prog_compiler_wl_GCJ='-Wl,'
16573 # PIC (with -KPIC) is the default.
16574 lt_prog_compiler_static_GCJ='-non_shared'
16578 lt_prog_compiler_pic_GCJ='-KPIC'
16579 lt_prog_compiler_static_GCJ='-Bstatic'
16583 case $cc_basename in
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 lt_prog_compiler_pic_GCJ='-KPIC'
16587 lt_prog_compiler_static_GCJ='-static'
16589 pgcc* | pgf77* | pgf90* | pgf95*)
16590 # Portland Group compilers (*not* the Pentium gcc compiler,
16591 # which looks to be a dead project)
16592 lt_prog_compiler_wl_GCJ='-Wl,'
16593 lt_prog_compiler_pic_GCJ='-fpic'
16594 lt_prog_compiler_static_GCJ='-Bstatic'
16597 lt_prog_compiler_wl_GCJ='-Wl,'
16598 # All Alpha code is PIC.
16599 lt_prog_compiler_static_GCJ='-non_shared'
16604 osf3* | osf4* | osf5*)
16605 lt_prog_compiler_wl_GCJ='-Wl,'
16606 # All OSF/1 code is PIC.
16607 lt_prog_compiler_static_GCJ='-non_shared'
16611 lt_prog_compiler_pic_GCJ='-KPIC'
16612 lt_prog_compiler_static_GCJ='-Bstatic'
16613 case $cc_basename in
16614 f77* | f90* | f95*)
16615 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16617 lt_prog_compiler_wl_GCJ='-Wl,';;
16622 lt_prog_compiler_wl_GCJ='-Qoption ld '
16623 lt_prog_compiler_pic_GCJ='-PIC'
16624 lt_prog_compiler_static_GCJ='-Bstatic'
16627 sysv4 | sysv4.2uw2* | sysv4.3*)
16628 lt_prog_compiler_wl_GCJ='-Wl,'
16629 lt_prog_compiler_pic_GCJ='-KPIC'
16630 lt_prog_compiler_static_GCJ='-Bstatic'
16634 if test -d /usr/nec ;then
16635 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16636 lt_prog_compiler_static_GCJ='-Bstatic'
16640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16641 lt_prog_compiler_wl_GCJ='-Wl,'
16642 lt_prog_compiler_pic_GCJ='-KPIC'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16647 lt_prog_compiler_wl_GCJ='-Wl,'
16648 lt_prog_compiler_can_build_shared_GCJ=no
16652 lt_prog_compiler_pic_GCJ='-pic'
16653 lt_prog_compiler_static_GCJ='-Bstatic'
16657 lt_prog_compiler_can_build_shared_GCJ=no
16662 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16663 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16666 # Check to make sure the PIC flag actually works.
16668 if test -n "$lt_prog_compiler_pic_GCJ"; then
16670 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16671 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16672 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16673 echo $ECHO_N "(cached) $ECHO_C" >&6
16675 lt_prog_compiler_pic_works_GCJ=no
16676 ac_outfile=conftest.$ac_objext
16677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16678 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16679 # Insert the option either (1) after the last *FLAGS variable, or
16680 # (2) before a word containing "conftest.", or (3) at the end.
16681 # Note that $ac_compile itself does not contain backslashes and begins
16682 # with a dollar sign (not a hyphen), so the echo should work correctly.
16683 # The option is referenced via a variable to avoid confusing sed.
16684 lt_compile=`echo "$ac_compile" | $SED \
16685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16687 -e 's:$: $lt_compiler_flag:'`
16688 (eval echo "\"\$as_me:16688: $lt_compile\"" >&5)
16689 (eval "$lt_compile" 2>conftest.err)
16691 cat conftest.err >&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 if (exit $ac_status) && test -s "$ac_outfile"; then
16694 # The compiler can only warn and ignore the option if not recognized
16695 # So say no if there are warnings other than the usual output.
16696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16699 lt_prog_compiler_pic_works_GCJ=yes
16705 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16706 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16708 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16709 case $lt_prog_compiler_pic_GCJ in
16711 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16714 lt_prog_compiler_pic_GCJ=
16715 lt_prog_compiler_can_build_shared_GCJ=no
16720 # For platforms which do not support PIC, -DPIC is meaningless:
16722 lt_prog_compiler_pic_GCJ=
16725 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730 # Check to make sure the static flag actually works.
16732 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16733 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16734 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16735 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16736 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 lt_prog_compiler_static_works_GCJ=no
16739 save_LDFLAGS="$LDFLAGS"
16740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16741 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16743 # The linker can only warn and ignore the option if not recognized
16744 # So say no if there are warnings
16745 if test -s conftest.err; then
16746 # Append any errors to the config.log.
16747 cat conftest.err 1>&5
16748 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16750 if diff conftest.exp conftest.er2 >/dev/null; then
16751 lt_prog_compiler_static_works_GCJ=yes
16754 lt_prog_compiler_static_works_GCJ=yes
16758 LDFLAGS="$save_LDFLAGS"
16761 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16762 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16764 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16767 lt_prog_compiler_static_GCJ=
16771 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16772 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16773 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16776 lt_cv_prog_compiler_c_o_GCJ=no
16777 $rm -r conftest 2>/dev/null
16781 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16783 lt_compiler_flag="-o out/conftest2.$ac_objext"
16784 # Insert the option either (1) after the last *FLAGS variable, or
16785 # (2) before a word containing "conftest.", or (3) at the end.
16786 # Note that $ac_compile itself does not contain backslashes and begins
16787 # with a dollar sign (not a hyphen), so the echo should work correctly.
16788 lt_compile=`echo "$ac_compile" | $SED \
16789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16791 -e 's:$: $lt_compiler_flag:'`
16792 (eval echo "\"\$as_me:16792: $lt_compile\"" >&5)
16793 (eval "$lt_compile" 2>out/conftest.err)
16795 cat out/conftest.err >&5
16796 echo "$as_me:16796: \$? = $ac_status" >&5
16797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16799 # The compiler can only warn and ignore the option if not recognized
16800 # So say no if there are warnings
16801 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16804 lt_cv_prog_compiler_c_o_GCJ=yes
16809 # SGI C++ compiler will create directory out/ii_files/ for
16810 # template instantiation
16811 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16812 $rm out/* && rmdir out
16818 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16819 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16822 hard_links="nottested"
16823 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16824 # do not overwrite the value of need_locks provided by the user
16825 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16826 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16831 ln conftest.a conftest.b 2>&5 || hard_links=no
16832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16833 { echo "$as_me:$LINENO: result: $hard_links" >&5
16834 echo "${ECHO_T}$hard_links" >&6; }
16835 if test "$hard_links" = no; then
16836 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16837 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16844 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16845 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16848 allow_undefined_flag_GCJ=
16849 enable_shared_with_static_runtimes_GCJ=no
16851 archive_expsym_cmds_GCJ=
16852 old_archive_From_new_cmds_GCJ=
16853 old_archive_from_expsyms_cmds_GCJ=
16854 export_dynamic_flag_spec_GCJ=
16855 whole_archive_flag_spec_GCJ=
16856 thread_safe_flag_spec_GCJ=
16857 hardcode_libdir_flag_spec_GCJ=
16858 hardcode_libdir_flag_spec_ld_GCJ=
16859 hardcode_libdir_separator_GCJ=
16860 hardcode_direct_GCJ=no
16861 hardcode_minus_L_GCJ=no
16862 hardcode_shlibpath_var_GCJ=unsupported
16863 link_all_deplibs_GCJ=unknown
16864 hardcode_automatic_GCJ=no
16866 module_expsym_cmds_GCJ=
16867 always_export_symbols_GCJ=no
16868 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16869 # include_expsyms should be a list of space-separated symbols to be *always*
16870 # included in the symbol list
16871 include_expsyms_GCJ=
16872 # exclude_expsyms can be an extended regexp of symbols to exclude
16873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16875 # as well as any symbol that contains `d'.
16876 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16878 # platforms (ab)use it in PIC code, but their linkers get confused if
16879 # the symbol is explicitly referenced. Since portable code cannot
16880 # rely on this symbol name, it's probably fine to never include it in
16881 # preloaded symbol tables.
16882 extract_expsyms_cmds=
16883 # Just being paranoid about ensuring that cc_basename is set.
16884 for cc_temp in $compiler""; do
16886 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16887 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16892 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16895 cygwin* | mingw* | pw32*)
16896 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16897 # When not using gcc, we currently assume that we are using
16898 # Microsoft Visual C++.
16899 if test "$GCC" != yes; then
16904 # we just hope/assume this is gcc and not c89 (= MSVC++)
16913 if test "$with_gnu_ld" = yes; then
16914 # If archive_cmds runs LD, not CC, wlarc should be empty
16917 # Set some defaults for GNU ld with shared library support. These
16918 # are reset later if shared libraries are not supported. Putting them
16919 # here allows them to be overridden if necessary.
16920 runpath_var=LD_RUN_PATH
16921 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16922 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16923 # ancient GNU ld didn't support --whole-archive et. al.
16924 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16925 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16927 whole_archive_flag_spec_GCJ=
16929 supports_anon_versioning=no
16930 case `$LD -v 2>/dev/null` in
16931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16934 *\ 2.11.*) ;; # other 2.11 versions
16935 *) supports_anon_versioning=yes ;;
16938 # See if GNU ld supports shared libraries.
16940 aix3* | aix4* | aix5*)
16941 # On AIX/PPC, the GNU linker is very broken
16942 if test "$host_cpu" != ia64; then
16946 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16947 *** to be unable to reliably create shared libraries on AIX.
16948 *** Therefore, libtool is disabling shared libraries support. If you
16949 *** really care for shared libraries, you may want to modify your PATH
16950 *** so that a non-GNU linker is found, and then restart.
16957 archive_cmds_GCJ='$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)'
16958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16959 hardcode_minus_L_GCJ=yes
16961 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16962 # that the semantics of dynamic libraries on AmigaOS, at least up
16963 # to version 4, is to share data among multiple programs linked
16964 # with the same dynamic library. Since this doesn't match the
16965 # behavior of shared libraries on other platforms, we can't use
16971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16972 allow_undefined_flag_GCJ=unsupported
16973 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16974 # support --undefined. This deserves some investigation. FIXME
16975 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16981 cygwin* | mingw* | pw32*)
16982 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16983 # as there is no search path for DLLs.
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 allow_undefined_flag_GCJ=unsupported
16986 always_export_symbols_GCJ=no
16987 enable_shared_with_static_runtimes_GCJ=yes
16988 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16990 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16992 # If the export-symbols file already is a .def file (1st line
16993 # is EXPORTS), use it as is; otherwise, prepend...
16994 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16995 cp $export_symbols $output_objdir/$soname.def;
16997 echo EXPORTS > $output_objdir/$soname.def;
16998 cat $export_symbols >> $output_objdir/$soname.def;
17000 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17007 hardcode_direct_GCJ=no
17008 hardcode_shlibpath_var_GCJ=no
17009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17010 export_dynamic_flag_spec_GCJ='${wl}-E'
17011 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17012 # Instead, shared libraries are loaded at an image base (0x10000000 by
17013 # default) and relocated if they conflict, which is a slow very memory
17014 # consuming and fragmenting process. To avoid this, we pick a random,
17015 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17016 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17017 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17018 archive_expsym_cmds_GCJ='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'
17022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17024 case $cc_basename,$host_cpu in
17025 pgcc*) # Portland Group C compiler
17026 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17027 tmp_addflag=' $pic_flag'
17029 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17030 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17031 tmp_addflag=' $pic_flag -Mnomain' ;;
17032 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17033 tmp_addflag=' -i_dynamic' ;;
17034 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17035 tmp_addflag=' -i_dynamic -nofor_main' ;;
17036 ifc* | ifort*) # Intel Fortran compiler
17037 tmp_addflag=' -nofor_main' ;;
17039 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041 if test $supports_anon_versioning = yes; then
17042 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17043 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17044 $echo "local: *; };" >> $output_objdir/$libname.ver~
17045 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17053 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17054 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17057 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17058 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17063 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17067 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17068 *** create shared libraries on Solaris systems. Therefore, libtool
17069 *** is disabling shared libraries support. We urge you to upgrade GNU
17070 *** binutils to release 2.9.1 or newer. Another option is to modify
17071 *** your PATH or compiler configuration so that the native linker is
17072 *** used, and then restart.
17075 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17076 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17077 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17084 case `$LD -v 2>&1` in
17085 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17089 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17090 *** reliably create shared libraries on SCO systems. Therefore, libtool
17091 *** is disabling shared libraries support. We urge you to upgrade GNU
17092 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17093 *** your PATH or compiler configuration so that the native linker is
17094 *** used, and then restart.
17099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17100 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17101 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17102 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17111 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17113 hardcode_direct_GCJ=yes
17114 hardcode_shlibpath_var_GCJ=no
17118 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17119 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17120 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17127 if test "$ld_shlibs_GCJ" = no; then
17129 hardcode_libdir_flag_spec_GCJ=
17130 export_dynamic_flag_spec_GCJ=
17131 whole_archive_flag_spec_GCJ=
17134 # PORTME fill in a description of your system's linker (not GNU ld)
17137 allow_undefined_flag_GCJ=unsupported
17138 always_export_symbols_GCJ=yes
17139 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17140 # Note: this linker hardcodes the directories in LIBPATH if there
17141 # are no directories specified by -L.
17142 hardcode_minus_L_GCJ=yes
17143 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17144 # Neither direct hardcoding nor static linking is supported with a
17146 hardcode_direct_GCJ=unsupported
17151 if test "$host_cpu" = ia64; then
17152 # On IA64, the linker does run time linking by default, so we don't
17153 # have to do anything special.
17154 aix_use_runtimelinking=no
17155 exp_sym_flag='-Bexport'
17158 # If we're using GNU nm, then we don't want the "-C" option.
17159 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17160 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17161 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17163 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17165 aix_use_runtimelinking=no
17167 # Test if we are trying to use run time linking or normal
17168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17169 # need to do runtime linking.
17170 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17171 for ld_flag in $LDFLAGS; do
17172 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17173 aix_use_runtimelinking=yes
17180 exp_sym_flag='-bexport'
17181 no_entry_flag='-bnoentry'
17184 # When large executables or shared objects are built, AIX ld can
17185 # have problems creating the table of contents. If linking a library
17186 # or program results in "error TOC overflow" add -mminimal-toc to
17187 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17188 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17190 archive_cmds_GCJ=''
17191 hardcode_direct_GCJ=yes
17192 hardcode_libdir_separator_GCJ=':'
17193 link_all_deplibs_GCJ=yes
17195 if test "$GCC" = yes; then
17196 case $host_os in aix4.[012]|aix4.[012].*)
17197 # We only want to do this on AIX 4.2 and lower, the check
17198 # below for broken collect2 doesn't work under 4.3+
17199 collect2name=`${CC} -print-prog-name=collect2`
17200 if test -f "$collect2name" && \
17201 strings "$collect2name" | grep resolve_lib_name >/dev/null
17203 # We have reworked collect2
17204 hardcode_direct_GCJ=yes
17206 # We have old collect2
17207 hardcode_direct_GCJ=unsupported
17208 # It fails to find uninstalled libraries when the uninstalled
17209 # path is not listed in the libpath. Setting hardcode_minus_L
17210 # to unsupported forces relinking
17211 hardcode_minus_L_GCJ=yes
17212 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17213 hardcode_libdir_separator_GCJ=
17217 shared_flag='-shared'
17218 if test "$aix_use_runtimelinking" = yes; then
17219 shared_flag="$shared_flag "'${wl}-G'
17223 if test "$host_cpu" = ia64; then
17224 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17225 # chokes on -Wl,-G. The following line is correct:
17228 if test "$aix_use_runtimelinking" = yes; then
17229 shared_flag='${wl}-G'
17231 shared_flag='${wl}-bM:SRE'
17236 # It seems that -bexpall does not export symbols beginning with
17237 # underscore (_), so it is better to generate a list of symbols to export.
17238 always_export_symbols_GCJ=yes
17239 if test "$aix_use_runtimelinking" = yes; then
17240 # Warning - without using the other runtime loading flags (-brtl),
17241 # -berok will link without error, but may produce a broken library.
17242 allow_undefined_flag_GCJ='-berok'
17243 # Determine the default libpath from the value encoded in an empty executable.
17244 cat >conftest.$ac_ext <<_ACEOF
17247 cat confdefs.h >>conftest.$ac_ext
17248 cat >>conftest.$ac_ext <<_ACEOF
17249 /* end confdefs.h. */
17259 rm -f conftest.$ac_objext conftest$ac_exeext
17260 if { (ac_try="$ac_link"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_link") 2>conftest.er1
17268 grep -v '^ *+' conftest.er1 >conftest.err
17270 cat conftest.err >&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); } &&
17273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17274 { (case "(($ac_try" in
17275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276 *) ac_try_echo=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_try") 2>&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); }; } &&
17283 { ac_try='test -s conftest$ac_exeext'
17284 { (case "(($ac_try" in
17285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286 *) ac_try_echo=$ac_try;;
17288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17289 (eval "$ac_try") 2>&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; }; then
17294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17296 # Check for a 64-bit object if we didn't find anything.
17297 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17300 echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17310 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17311 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17313 if test "$host_cpu" = ia64; then
17314 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17315 allow_undefined_flag_GCJ="-z nodefs"
17316 archive_expsym_cmds_GCJ="\$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"
17318 # Determine the default libpath from the value encoded in an empty executable.
17319 cat >conftest.$ac_ext <<_ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h. */
17334 rm -f conftest.$ac_objext conftest$ac_exeext
17335 if { (ac_try="$ac_link"
17336 case "(($ac_try" in
17337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17338 *) ac_try_echo=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_link") 2>conftest.er1
17343 grep -v '^ *+' conftest.er1 >conftest.err
17345 cat conftest.err >&5
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17349 { (case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_try") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17371 # Check for a 64-bit object if we didn't find anything.
17372 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17381 rm -f core conftest.err conftest.$ac_objext \
17382 conftest$ac_exeext conftest.$ac_ext
17383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17385 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17386 # Warning - without using the other run time loading flags,
17387 # -berok will link without error, but may produce a broken library.
17388 no_undefined_flag_GCJ=' ${wl}-bernotok'
17389 allow_undefined_flag_GCJ=' ${wl}-berok'
17390 # Exported symbols can be pulled into shared objects from archives
17391 whole_archive_flag_spec_GCJ='$convenience'
17392 archive_cmds_need_lc_GCJ=yes
17393 # This is similar to how AIX traditionally builds its shared libraries.
17394 archive_expsym_cmds_GCJ="\$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'
17400 archive_cmds_GCJ='$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)'
17401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17402 hardcode_minus_L_GCJ=yes
17403 # see comment about different semantics on the GNU ld section
17408 export_dynamic_flag_spec_GCJ=-rdynamic
17411 cygwin* | mingw* | pw32*)
17412 # When not using gcc, we currently assume that we are using
17413 # Microsoft Visual C++.
17414 # hardcode_libdir_flag_spec is actually meaningless, as there is
17415 # no search path for DLLs.
17416 hardcode_libdir_flag_spec_GCJ=' '
17417 allow_undefined_flag_GCJ=unsupported
17418 # Tell ltmain to make .lib files, not .a files.
17420 # Tell ltmain to make .dll files, not .so files.
17422 # FIXME: Setting linknames here is a bad hack.
17423 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17424 # The linker will automatically build a .lib file if we build a DLL.
17425 old_archive_From_new_cmds_GCJ='true'
17426 # FIXME: Should let the user specify the lib program.
17427 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17428 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17429 enable_shared_with_static_runtimes_GCJ=yes
17432 darwin* | rhapsody*)
17434 rhapsody* | darwin1.[012])
17435 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17438 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17439 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17441 case ${MACOSX_DEPLOYMENT_TARGET} in
17443 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17446 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17452 archive_cmds_need_lc_GCJ=no
17453 hardcode_direct_GCJ=no
17454 hardcode_automatic_GCJ=yes
17455 hardcode_shlibpath_var_GCJ=unsupported
17456 whole_archive_flag_spec_GCJ=''
17457 link_all_deplibs_GCJ=yes
17458 if test "$GCC" = yes ; then
17459 output_verbose_link_cmd='echo'
17460 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17461 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17462 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17463 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17464 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17466 case $cc_basename in
17468 output_verbose_link_cmd='echo'
17469 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17470 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17471 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17472 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17473 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17483 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17485 hardcode_shlibpath_var_GCJ=no
17492 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17493 # support. Future versions do this automatically, but an explicit c++rt0.o
17494 # does not break anything, and helps significantly (at the cost of a little
17497 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17498 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17499 hardcode_direct_GCJ=yes
17500 hardcode_shlibpath_var_GCJ=no
17503 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17506 hardcode_direct_GCJ=yes
17507 hardcode_minus_L_GCJ=yes
17508 hardcode_shlibpath_var_GCJ=no
17511 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17512 freebsd* | kfreebsd*-gnu | dragonfly*)
17513 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17515 hardcode_direct_GCJ=yes
17516 hardcode_shlibpath_var_GCJ=no
17520 if test "$GCC" = yes; then
17521 archive_cmds_GCJ='$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'
17523 archive_cmds_GCJ='$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'
17525 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17526 hardcode_libdir_separator_GCJ=:
17527 hardcode_direct_GCJ=yes
17529 # hardcode_minus_L: Not really in the search PATH,
17530 # but as the default location of the library.
17531 hardcode_minus_L_GCJ=yes
17532 export_dynamic_flag_spec_GCJ='${wl}-E'
17536 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17537 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17541 if test "$with_gnu_ld" = no; then
17542 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17543 hardcode_libdir_separator_GCJ=:
17545 hardcode_direct_GCJ=yes
17546 export_dynamic_flag_spec_GCJ='${wl}-E'
17548 # hardcode_minus_L: Not really in the search PATH,
17549 # but as the default location of the library.
17550 hardcode_minus_L_GCJ=yes
17555 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17558 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17570 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17573 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17576 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17580 if test "$with_gnu_ld" = no; then
17581 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17582 hardcode_libdir_separator_GCJ=:
17586 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17587 hardcode_direct_GCJ=no
17588 hardcode_shlibpath_var_GCJ=no
17591 hardcode_direct_GCJ=yes
17592 export_dynamic_flag_spec_GCJ='${wl}-E'
17594 # hardcode_minus_L: Not really in the search PATH,
17595 # but as the default location of the library.
17596 hardcode_minus_L_GCJ=yes
17602 irix5* | irix6* | nonstopux*)
17603 if test "$GCC" = yes; then
17604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17606 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17607 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17610 hardcode_libdir_separator_GCJ=:
17611 link_all_deplibs_GCJ=yes
17615 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17618 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17620 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17621 hardcode_direct_GCJ=yes
17622 hardcode_shlibpath_var_GCJ=no
17626 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17627 hardcode_direct_GCJ=yes
17628 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17629 hardcode_libdir_separator_GCJ=:
17630 hardcode_shlibpath_var_GCJ=no
17634 hardcode_direct_GCJ=yes
17635 hardcode_shlibpath_var_GCJ=no
17636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17637 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17638 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17640 export_dynamic_flag_spec_GCJ='${wl}-E'
17643 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17644 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17645 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17648 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17649 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17656 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657 hardcode_minus_L_GCJ=yes
17658 allow_undefined_flag_GCJ=unsupported
17659 archive_cmds_GCJ='$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'
17660 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17664 if test "$GCC" = yes; then
17665 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17666 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17668 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17669 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17671 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17672 hardcode_libdir_separator_GCJ=:
17675 osf4* | osf5*) # as osf3* with the addition of -msym flag
17676 if test "$GCC" = yes; then
17677 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17678 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17681 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17682 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17683 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17684 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17686 # Both c and cxx compiler support -rpath directly
17687 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17689 hardcode_libdir_separator_GCJ=:
17693 no_undefined_flag_GCJ=' -z text'
17694 if test "$GCC" = yes; then
17696 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17697 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17698 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17701 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17702 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17703 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17705 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17706 hardcode_shlibpath_var_GCJ=no
17708 solaris2.[0-5] | solaris2.[0-5].*) ;;
17710 # The compiler driver will combine linker options so we
17711 # cannot just pass the convience library names through
17712 # without $wl, iff we do not link with $LD.
17713 # Luckily, gcc supports the same syntax we need for Sun Studio.
17714 # Supported since Solaris 2.6 (maybe 2.5.1?)
17717 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17719 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17722 link_all_deplibs_GCJ=yes
17726 if test "x$host_vendor" = xsequent; then
17727 # Use $CC to link under sequent, because it throws in some extra .o
17728 # files that make .init and .fini sections work.
17729 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17731 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17734 hardcode_direct_GCJ=yes
17735 hardcode_minus_L_GCJ=yes
17736 hardcode_shlibpath_var_GCJ=no
17740 case $host_vendor in
17742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 hardcode_direct_GCJ=yes # is this really true???
17746 ## LD is ld it makes a PLAMLIB
17747 ## CC just makes a GrossModule.
17748 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17749 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17750 hardcode_direct_GCJ=no
17753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17754 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17757 runpath_var='LD_RUN_PATH'
17758 hardcode_shlibpath_var_GCJ=no
17762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17763 hardcode_shlibpath_var_GCJ=no
17764 export_dynamic_flag_spec_GCJ='-Bexport'
17768 if test -d /usr/nec; then
17769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770 hardcode_shlibpath_var_GCJ=no
17771 runpath_var=LD_RUN_PATH
17772 hardcode_runpath_var=yes
17777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17778 no_undefined_flag_GCJ='${wl}-z,text'
17779 archive_cmds_need_lc_GCJ=no
17780 hardcode_shlibpath_var_GCJ=no
17781 runpath_var='LD_RUN_PATH'
17783 if test "$GCC" = yes; then
17784 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17785 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17787 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17788 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17792 sysv5* | sco3.2v5* | sco5v6*)
17793 # Note: We can NOT use -z defs as we might desire, because we do not
17794 # link with -lc, and that would cause any symbols used from libc to
17795 # always be unresolved, which means just about no library would
17796 # ever link correctly. If we're not using GNU ld we use -z text
17797 # though, which does catch some bad symbols but isn't as heavy-handed
17799 no_undefined_flag_GCJ='${wl}-z,text'
17800 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17801 archive_cmds_need_lc_GCJ=no
17802 hardcode_shlibpath_var_GCJ=no
17803 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17804 hardcode_libdir_separator_GCJ=':'
17805 link_all_deplibs_GCJ=yes
17806 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17807 runpath_var='LD_RUN_PATH'
17809 if test "$GCC" = yes; then
17810 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17811 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17813 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17814 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17821 hardcode_shlibpath_var_GCJ=no
17830 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17831 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17832 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17835 # Do we need to explicitly link libc?
17837 case "x$archive_cmds_need_lc_GCJ" in
17839 # Assume -lc should be added
17840 archive_cmds_need_lc_GCJ=yes
17842 if test "$enable_shared" = yes && test "$GCC" = yes; then
17843 case $archive_cmds_GCJ in
17845 # FIXME: we may have to deal with multi-command sequences.
17848 # Test whether the compiler implicitly links with -lc since on some
17849 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17850 # to ld, don't add -lc before -lgcc.
17851 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17852 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857 (eval $ac_compile) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } 2>conftest.err; then
17863 libobjs=conftest.$ac_objext
17865 wl=$lt_prog_compiler_wl_GCJ
17866 pic_flag=$lt_prog_compiler_pic_GCJ
17872 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17873 allow_undefined_flag_GCJ=
17874 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17875 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }
17880 archive_cmds_need_lc_GCJ=no
17882 archive_cmds_need_lc_GCJ=yes
17884 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17886 cat conftest.err 1>&5
17889 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17890 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17897 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17898 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17899 library_names_spec=
17900 libname_spec='lib$name'
17904 postuninstall_cmds=
17908 shlibpath_overrides_runpath=unknown
17910 dynamic_linker="$host_os ld.so"
17911 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17912 if test "$GCC" = yes; then
17913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17914 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17915 # if the path contains ";" then we assume it to be the separator
17916 # otherwise default to the standard path separator (i.e. ":") - it is
17917 # assumed that no part of a normal pathname contains ";" but that should
17918 # okay in the real world where ";" in dirpaths is itself problematic.
17919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17926 need_lib_prefix=unknown
17927 hardcode_into_libs=no
17929 # when you set need_version to no, make sure it does not cause -set_version
17930 # flags to be left without arguments
17931 need_version=unknown
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17937 shlibpath_var=LIBPATH
17939 # AIX 3 has no versioning support, so we append a major version to the name.
17940 soname_spec='${libname}${release}${shared_ext}$major'
17947 hardcode_into_libs=yes
17948 if test "$host_cpu" = ia64; then
17949 # AIX 5 supports IA64
17950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17951 shlibpath_var=LD_LIBRARY_PATH
17953 # With GCC up to 2.95.x, collect2 would create an import file
17954 # for dependence libraries. The import file would start with
17955 # the line `#! .'. This would cause the generated library to
17956 # depend on `.', always an invalid library. This was fixed in
17957 # development snapshots of GCC prior to 3.0.
17959 aix4 | aix4.[01] | aix4.[01].*)
17960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17965 can_build_shared=no
17969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17970 # soname into executable. Probably we can add versioning support to
17971 # collect2, so additional links can be useful in future.
17972 if test "$aix_use_runtimelinking" = yes; then
17973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17974 # instead of lib<name>.a to let people know that these are not
17975 # typical AIX shared libraries.
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978 # We preserve .a as extension for shared libraries through AIX4.2
17979 # and later when we are not doing run time linking.
17980 library_names_spec='${libname}${release}.a $libname.a'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17983 shlibpath_var=LIBPATH
17988 library_names_spec='$libname.ixlibrary $libname.a'
17989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17990 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'
17994 library_names_spec='${libname}${shared_ext}'
17995 dynamic_linker="$host_os ld.so"
17996 shlibpath_var=LIBRARY_PATH
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18005 shlibpath_var=LD_LIBRARY_PATH
18006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18008 # the default ld.so.conf also contains /usr/contrib/lib and
18009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18010 # libtool to hard-code these into programs
18013 cygwin* | mingw* | pw32*)
18014 version_type=windows
18019 case $GCC,$host_os in
18020 yes,cygwin* | yes,mingw* | yes,pw32*)
18021 library_names_spec='$libname.dll.a'
18022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18023 postinstall_cmds='base_file=`basename \${file}`~
18024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18025 dldir=$destdir/`dirname \$dlpath`~
18026 test -d \$dldir || mkdir -p \$dldir~
18027 $install_prog $dir/$dlname \$dldir/$dlname~
18028 chmod a+x \$dldir/$dlname'
18029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18030 dlpath=$dir/\$dldll~
18032 shlibpath_overrides_runpath=yes
18036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18037 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18038 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18041 # MinGW DLLs use traditional 'lib' prefix
18042 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18044 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18045 # It is most probably a Windows format PATH printed by
18046 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18047 # path with ; separators, and with drive letters. We can handle the
18048 # drive letters (cygwin fileutils understands them), so leave them,
18049 # especially as we might pass files found there to a mingw objdump,
18050 # which wouldn't understand a cygwinified path. Ahh.
18051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18057 # pw32 DLLs use 'pw' prefix rather than 'lib'
18058 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18064 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18066 supports_anon_versioning=no
18067 case `$LD -v 2>/dev/null` in
18068 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18069 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18070 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18071 *\ 2.11.*) ;; # other 2.11 versions
18072 *) supports_anon_versioning=yes ;;
18074 if test $supports_anon_versioning = yes; then
18075 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18076 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18077 $echo "local: *; };" >> $output_objdir/$libname.ver~
18078 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18080 $archive_expsym_cmds="$archive_cmds"
18088 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18091 dynamic_linker='Win32 ld.exe'
18092 # FIXME: first we should search . and the directory the executable is in
18096 darwin* | rhapsody*)
18097 dynamic_linker="$host_os dyld"
18098 version_type=darwin
18101 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18102 soname_spec='${libname}${release}${major}$shared_ext'
18103 shlibpath_overrides_runpath=yes
18104 shlibpath_var=DYLD_LIBRARY_PATH
18105 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18106 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18107 if test "$GCC" = yes; then
18108 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18110 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18120 soname_spec='${libname}${release}${shared_ext}$major'
18121 shlibpath_var=LD_LIBRARY_PATH
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18133 soname_spec='${libname}${release}${shared_ext}$major'
18134 shlibpath_var=LD_LIBRARY_PATH
18135 shlibpath_overrides_runpath=no
18136 hardcode_into_libs=yes
18137 dynamic_linker='GNU ld.so'
18140 freebsd* | dragonfly*)
18141 # DragonFly does not have aout. When/if they implement a new
18142 # versioning mechanism, adjust this.
18143 if test -x /usr/bin/objformat; then
18144 objformat=`/usr/bin/objformat`
18147 freebsd[123]*) objformat=aout ;;
18148 *) objformat=elf ;;
18151 # Handle Gentoo/FreeBSD as it was Linux
18152 case $host_vendor in
18154 version_type=linux ;;
18156 version_type=freebsd-$objformat ;;
18159 case $version_type in
18161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18171 soname_spec='${libname}${release}${shared_ext}$major'
18176 shlibpath_var=LD_LIBRARY_PATH
18179 shlibpath_overrides_runpath=yes
18181 freebsd3.[01]* | freebsdelf3.[01]*)
18182 shlibpath_overrides_runpath=yes
18183 hardcode_into_libs=yes
18185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18187 shlibpath_overrides_runpath=no
18188 hardcode_into_libs=yes
18190 freebsd*) # from 4.6 on
18191 shlibpath_overrides_runpath=yes
18192 hardcode_into_libs=yes
18201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18202 soname_spec='${libname}${release}${shared_ext}$major'
18203 shlibpath_var=LD_LIBRARY_PATH
18204 hardcode_into_libs=yes
18207 hpux9* | hpux10* | hpux11*)
18208 # Give a soname corresponding to the major version so that dld.sl refuses to
18209 # link against other versions.
18216 hardcode_into_libs=yes
18217 dynamic_linker="$host_os dld.so"
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 if test "X$HPUX_IA64_MODE" = X32; then
18223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18231 hardcode_into_libs=yes
18232 dynamic_linker="$host_os dld.sl"
18233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18236 soname_spec='${libname}${release}${shared_ext}$major'
18237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18242 dynamic_linker="$host_os dld.sl"
18243 shlibpath_var=SHLIB_PATH
18244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246 soname_spec='${libname}${release}${shared_ext}$major'
18249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18250 postinstall_cmds='chmod 555 $lib'
18257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18258 soname_spec='${libname}${release}${shared_ext}$major'
18259 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18260 shlibpath_var=LD_LIBRARY_PATH
18261 shlibpath_overrides_runpath=no
18262 hardcode_into_libs=yes
18265 irix5* | irix6* | nonstopux*)
18267 nonstopux*) version_type=nonstopux ;;
18269 if test "$lt_cv_prog_gnu_ld" = yes; then
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18280 irix5* | nonstopux*)
18281 libsuff= shlibsuff=
18284 case $LD in # libtool.m4 will add one of these switches to LD
18285 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18286 libsuff= shlibsuff= libmagic=32-bit;;
18287 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18288 libsuff=32 shlibsuff=N32 libmagic=N32;;
18289 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18290 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18291 *) libsuff= shlibsuff= libmagic=never-match;;
18295 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18296 shlibpath_overrides_runpath=no
18297 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18298 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18299 hardcode_into_libs=yes
18302 # No shared lib support for Linux oldld, aout, or coff.
18303 linux*oldld* | linux*aout* | linux*coff*)
18307 # This must be Linux ELF.
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=no
18317 # This implies no fast_install, which is unacceptable.
18318 # Some rework will be needed to allow for fast_install
18319 # before this can be enabled.
18320 hardcode_into_libs=yes
18322 # Append ld.so.conf contents to the search path
18323 if test -f /etc/ld.so.conf; then
18324 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18325 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18328 # We used to test for /lib/ld.so.1 and disable shared libraries on
18329 # powerpc, because MkLinux only supported shared libraries with the
18330 # GNU dynamic linker. Since this was broken with cross compilers,
18331 # most powerpc-linux boxes support dynamic linking these days and
18332 # people can always --disable-shared, the test was removed, and we
18333 # assume the GNU/Linux dynamic linker is in use.
18334 dynamic_linker='GNU/Linux ld.so'
18341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18342 soname_spec='${libname}${release}${shared_ext}$major'
18343 shlibpath_var=LD_LIBRARY_PATH
18344 shlibpath_overrides_runpath=no
18345 hardcode_into_libs=yes
18346 dynamic_linker='GNU ld.so'
18353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18356 dynamic_linker='NetBSD (a.out) ld.so'
18358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18359 soname_spec='${libname}${release}${shared_ext}$major'
18360 dynamic_linker='NetBSD ld.elf_so'
18362 shlibpath_var=LD_LIBRARY_PATH
18363 shlibpath_overrides_runpath=yes
18364 hardcode_into_libs=yes
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 shlibpath_overrides_runpath=yes
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 shlibpath_var=LD_LIBRARY_PATH
18381 shlibpath_overrides_runpath=yes
18386 sys_lib_dlsearch_path_spec="/usr/lib"
18388 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18390 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18391 *) need_version=no ;;
18393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18395 shlibpath_var=LD_LIBRARY_PATH
18396 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18398 openbsd2.[89] | openbsd2.[89].*)
18399 shlibpath_overrides_runpath=no
18402 shlibpath_overrides_runpath=yes
18406 shlibpath_overrides_runpath=yes
18411 libname_spec='$name'
18414 library_names_spec='$libname${shared_ext} $libname.a'
18415 dynamic_linker='OS/2 ld.exe'
18416 shlibpath_var=LIBPATH
18419 osf3* | osf4* | osf5*)
18423 soname_spec='${libname}${release}${shared_ext}$major'
18424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18425 shlibpath_var=LD_LIBRARY_PATH
18426 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18427 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435 soname_spec='${libname}${release}${shared_ext}$major'
18436 shlibpath_var=LD_LIBRARY_PATH
18437 shlibpath_overrides_runpath=yes
18438 hardcode_into_libs=yes
18439 # ldd complains unless libraries are executable
18440 postinstall_cmds='chmod +x $lib'
18445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18446 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18447 shlibpath_var=LD_LIBRARY_PATH
18448 shlibpath_overrides_runpath=yes
18449 if test "$with_gnu_ld" = yes; then
18457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18458 soname_spec='${libname}${release}${shared_ext}$major'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 case $host_vendor in
18462 shlibpath_overrides_runpath=no
18464 export_dynamic_flag_spec='${wl}-Blargedynsym'
18465 runpath_var=LD_RUN_PATH
18473 shlibpath_overrides_runpath=no
18474 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18480 if test -d /usr/nec ;then
18482 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18483 soname_spec='$libname${shared_ext}.$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18488 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18489 version_type=freebsd-elf
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18495 hardcode_into_libs=yes
18496 if test "$with_gnu_ld" = yes; then
18497 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18498 shlibpath_overrides_runpath=no
18500 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18501 shlibpath_overrides_runpath=yes
18504 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18508 sys_lib_dlsearch_path_spec='/usr/lib'
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18522 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18523 echo "${ECHO_T}$dynamic_linker" >&6; }
18524 test "$dynamic_linker" = no && can_build_shared=no
18526 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18527 if test "$GCC" = yes; then
18528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18531 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18532 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18533 hardcode_action_GCJ=
18534 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18535 test -n "$runpath_var_GCJ" || \
18536 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18538 # We can hardcode non-existant directories.
18539 if test "$hardcode_direct_GCJ" != no &&
18540 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18541 # have to relink, otherwise we might link with an installed library
18542 # when we should be linking with a yet-to-be-installed one
18543 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18544 test "$hardcode_minus_L_GCJ" != no; then
18545 # Linking always hardcodes the temporary library directory.
18546 hardcode_action_GCJ=relink
18548 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18549 hardcode_action_GCJ=immediate
18552 # We cannot hardcode anything, or else we can only hardcode existing
18554 hardcode_action_GCJ=unsupported
18556 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18557 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18559 if test "$hardcode_action_GCJ" = relink; then
18560 # Fast installation is not supported
18561 enable_fast_install=no
18562 elif test "$shlibpath_overrides_runpath" = yes ||
18563 test "$enable_shared" = no; then
18564 # Fast installation is not necessary
18565 enable_fast_install=needless
18569 # The else clause should only fire when bootstrapping the
18570 # libtool distribution, otherwise you forgot to ship ltmain.sh
18571 # with your package, and you will get complaints that there are
18572 # no rules to generate ltmain.sh.
18573 if test -f "$ltmain"; then
18574 # See if we are running on zsh, and set the options which allow our commands through
18575 # without removal of \ escapes.
18576 if test -n "${ZSH_VERSION+set}" ; then
18577 setopt NO_GLOB_SUBST
18579 # Now quote all the things that may contain metacharacters while being
18580 # careful not to overquote the AC_SUBSTed values. We take copies of the
18581 # variables and quote the copies for generation of the libtool script.
18582 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18584 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18585 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18586 deplibs_check_method reload_flag reload_cmds need_locks \
18587 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18588 lt_cv_sys_global_symbol_to_c_name_address \
18589 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18590 old_postinstall_cmds old_postuninstall_cmds \
18594 lt_prog_compiler_wl_GCJ \
18595 lt_prog_compiler_pic_GCJ \
18596 lt_prog_compiler_static_GCJ \
18597 lt_prog_compiler_no_builtin_flag_GCJ \
18598 export_dynamic_flag_spec_GCJ \
18599 thread_safe_flag_spec_GCJ \
18600 whole_archive_flag_spec_GCJ \
18601 enable_shared_with_static_runtimes_GCJ \
18602 old_archive_cmds_GCJ \
18603 old_archive_from_new_cmds_GCJ \
18604 predep_objects_GCJ \
18605 postdep_objects_GCJ \
18608 compiler_lib_search_path_GCJ \
18610 archive_expsym_cmds_GCJ \
18611 postinstall_cmds_GCJ \
18612 postuninstall_cmds_GCJ \
18613 old_archive_from_expsyms_cmds_GCJ \
18614 allow_undefined_flag_GCJ \
18615 no_undefined_flag_GCJ \
18616 export_symbols_cmds_GCJ \
18617 hardcode_libdir_flag_spec_GCJ \
18618 hardcode_libdir_flag_spec_ld_GCJ \
18619 hardcode_libdir_separator_GCJ \
18620 hardcode_automatic_GCJ \
18622 module_expsym_cmds_GCJ \
18623 lt_cv_prog_compiler_c_o_GCJ \
18624 exclude_expsyms_GCJ \
18625 include_expsyms_GCJ; do
18628 old_archive_cmds_GCJ | \
18629 old_archive_from_new_cmds_GCJ | \
18630 archive_cmds_GCJ | \
18631 archive_expsym_cmds_GCJ | \
18632 module_cmds_GCJ | \
18633 module_expsym_cmds_GCJ | \
18634 old_archive_from_expsyms_cmds_GCJ | \
18635 export_symbols_cmds_GCJ | \
18636 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18637 postinstall_cmds | postuninstall_cmds | \
18638 old_postinstall_cmds | old_postuninstall_cmds | \
18639 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18640 # Double-quote double-evaled strings.
18641 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18644 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18650 *'\$0 --fallback-echo"')
18651 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18657 cat <<__EOF__ >> "$cfgfile"
18658 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18660 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18662 # Shell to use when invoking shell scripts.
18665 # Whether or not to build shared libraries.
18666 build_libtool_libs=$enable_shared
18668 # Whether or not to build static libraries.
18669 build_old_libs=$enable_static
18671 # Whether or not to add -lc for building shared libraries.
18672 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18674 # Whether or not to disallow shared libs when runtime libs are static
18675 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18677 # Whether or not to optimize for fast installation.
18678 fast_install=$enable_fast_install
18681 host_alias=$host_alias
18685 # The build system.
18686 build_alias=$build_alias
18690 # An echo program that does not interpret backslashes.
18695 AR_FLAGS=$lt_AR_FLAGS
18700 # LTCC compiler flags.
18701 LTCFLAGS=$lt_LTCFLAGS
18703 # A language-specific compiler.
18704 CC=$lt_compiler_GCJ
18706 # Is the compiler the GNU C compiler?
18712 # The linker used to build libraries.
18715 # Whether we need hard or soft links.
18718 # A BSD-compatible nm program.
18721 # A symbol stripping program
18724 # Used to examine libraries when file_magic_cmd begins "file"
18725 MAGIC_CMD=$MAGIC_CMD
18727 # Used on cygwin: DLL creation program.
18730 # Used on cygwin: object dumper.
18733 # Used on cygwin: assembler.
18736 # The name of the directory that contains temporary libtool files.
18739 # How to create reloadable object files.
18740 reload_flag=$lt_reload_flag
18741 reload_cmds=$lt_reload_cmds
18743 # How to pass a linker flag through the compiler.
18744 wl=$lt_lt_prog_compiler_wl_GCJ
18746 # Object file suffix (normally "o").
18747 objext="$ac_objext"
18749 # Old archive suffix (normally "a").
18752 # Shared library suffix (normally ".so").
18753 shrext_cmds='$shrext_cmds'
18755 # Executable file suffix (normally "").
18758 # Additional compiler flags for building library objects.
18759 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18762 # What is the maximum length of a command?
18763 max_cmd_len=$lt_cv_sys_max_cmd_len
18765 # Does compiler simultaneously support -c and -o options?
18766 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18768 # Must we lock files when doing compilation?
18769 need_locks=$lt_need_locks
18771 # Do we need the lib prefix for modules?
18772 need_lib_prefix=$need_lib_prefix
18774 # Do we need a version for libraries?
18775 need_version=$need_version
18777 # Whether dlopen is supported.
18778 dlopen_support=$enable_dlopen
18780 # Whether dlopen of programs is supported.
18781 dlopen_self=$enable_dlopen_self
18783 # Whether dlopen of statically linked programs is supported.
18784 dlopen_self_static=$enable_dlopen_self_static
18786 # Compiler flag to prevent dynamic linking.
18787 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18789 # Compiler flag to turn off builtin functions.
18790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18792 # Compiler flag to allow reflexive dlopens.
18793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18795 # Compiler flag to generate shared objects directly from archives.
18796 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18798 # Compiler flag to generate thread-safe objects.
18799 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18801 # Library versioning type.
18802 version_type=$version_type
18804 # Format of library name prefix.
18805 libname_spec=$lt_libname_spec
18807 # List of archive names. First name is the real one, the rest are links.
18808 # The last name is the one that the linker finds with -lNAME.
18809 library_names_spec=$lt_library_names_spec
18811 # The coded name of the library, if different from the real name.
18812 soname_spec=$lt_soname_spec
18814 # Commands used to build and install an old-style archive.
18816 old_archive_cmds=$lt_old_archive_cmds_GCJ
18817 old_postinstall_cmds=$lt_old_postinstall_cmds
18818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18820 # Create an old-style archive from a shared archive.
18821 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18823 # Create a temporary old-style archive to link instead of a shared archive.
18824 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18826 # Commands used to build and install a shared archive.
18827 archive_cmds=$lt_archive_cmds_GCJ
18828 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18829 postinstall_cmds=$lt_postinstall_cmds
18830 postuninstall_cmds=$lt_postuninstall_cmds
18832 # Commands used to build a loadable module (assumed same as above if empty)
18833 module_cmds=$lt_module_cmds_GCJ
18834 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18836 # Commands to strip libraries.
18837 old_striplib=$lt_old_striplib
18838 striplib=$lt_striplib
18840 # Dependencies to place before the objects being linked to create a
18842 predep_objects=$lt_predep_objects_GCJ
18844 # Dependencies to place after the objects being linked to create a
18846 postdep_objects=$lt_postdep_objects_GCJ
18848 # Dependencies to place before the objects being linked to create a
18850 predeps=$lt_predeps_GCJ
18852 # Dependencies to place after the objects being linked to create a
18854 postdeps=$lt_postdeps_GCJ
18856 # The library search path used internally by the compiler when linking
18857 # a shared library.
18858 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18860 # Method to check whether dependent libraries are shared objects.
18861 deplibs_check_method=$lt_deplibs_check_method
18863 # Command to use when deplibs_check_method == file_magic.
18864 file_magic_cmd=$lt_file_magic_cmd
18866 # Flag that allows shared libraries with undefined symbols to be built.
18867 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18869 # Flag that forces no undefined symbols.
18870 no_undefined_flag=$lt_no_undefined_flag_GCJ
18872 # Commands used to finish a libtool library installation in a directory.
18873 finish_cmds=$lt_finish_cmds
18875 # Same as above, but a single script fragment to be evaled but not shown.
18876 finish_eval=$lt_finish_eval
18878 # Take the output of nm and produce a listing of raw symbols and C names.
18879 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18881 # Transform the output of nm in a proper C declaration
18882 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18884 # Transform the output of nm in a C name address pair
18885 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18887 # This is the shared library runtime path variable.
18888 runpath_var=$runpath_var
18890 # This is the shared library path variable.
18891 shlibpath_var=$shlibpath_var
18893 # Is shlibpath searched before the hard-coded library search path?
18894 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18896 # How to hardcode a shared library path into an executable.
18897 hardcode_action=$hardcode_action_GCJ
18899 # Whether we should hardcode library paths into libraries.
18900 hardcode_into_libs=$hardcode_into_libs
18902 # Flag to hardcode \$libdir into a binary during linking.
18903 # This must work even if \$libdir does not exist.
18904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18906 # If ld is used when linking, flag to hardcode \$libdir into
18907 # a binary during linking. This must work even if \$libdir does
18909 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18911 # Whether we need a single -rpath flag with a separated argument.
18912 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18914 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18915 # resulting binary.
18916 hardcode_direct=$hardcode_direct_GCJ
18918 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18919 # resulting binary.
18920 hardcode_minus_L=$hardcode_minus_L_GCJ
18922 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18923 # the resulting binary.
18924 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18926 # Set to yes if building a shared library automatically hardcodes DIR into the library
18927 # and all subsequent libraries and executables linked against it.
18928 hardcode_automatic=$hardcode_automatic_GCJ
18930 # Variables whose values should be saved in libtool wrapper scripts and
18931 # restored at relink time.
18932 variables_saved_for_relink="$variables_saved_for_relink"
18934 # Whether libtool must link a program against all its dependency libraries.
18935 link_all_deplibs=$link_all_deplibs_GCJ
18937 # Compile-time system search path for libraries
18938 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18940 # Run-time system search path for libraries
18941 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18943 # Fix the shell variable \$srcfile for the compiler.
18944 fix_srcfile_path="$fix_srcfile_path_GCJ"
18946 # Set to yes if exported symbols are required.
18947 always_export_symbols=$always_export_symbols_GCJ
18949 # The commands to list exported symbols.
18950 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18952 # The commands to extract the exported symbol list from a shared archive.
18953 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18955 # Symbols that should not be listed in the preloaded symbols.
18956 exclude_expsyms=$lt_exclude_expsyms_GCJ
18958 # Symbols that must always be exported.
18959 include_expsyms=$lt_include_expsyms_GCJ
18961 # ### END LIBTOOL TAG CONFIG: $tagname
18967 # If there is no Makefile yet, we rely on a make rule to execute
18968 # `config.status --recheck' to rerun these tests and create the
18969 # libtool script then.
18970 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18971 if test -f "$ltmain_in"; then
18972 test -f Makefile && make "$ltmain"
18978 ac_cpp='$CPP $CPPFLAGS'
18979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18993 # Source file extension for RC test sources.
18996 # Object file extension for compiled RC test sources.
19000 # Code to be used in simple compile tests
19001 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19003 # Code to be used in simple link tests
19004 lt_simple_link_test_code="$lt_simple_compile_test_code"
19006 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19008 # If no C compiler was specified, use CC.
19011 # If no C compiler flags were specified, use CFLAGS.
19012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19014 # Allow CC to be a program name with arguments.
19018 # save warnings/boilerplate of simple test code
19019 ac_outfile=conftest.$ac_objext
19020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19022 _lt_compiler_boilerplate=`cat conftest.err`
19025 ac_outfile=conftest.$ac_objext
19026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19028 _lt_linker_boilerplate=`cat conftest.err`
19032 # Allow CC to be a program name with arguments.
19037 for cc_temp in $compiler""; do
19039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19047 lt_cv_prog_compiler_c_o_RC=yes
19049 # The else clause should only fire when bootstrapping the
19050 # libtool distribution, otherwise you forgot to ship ltmain.sh
19051 # with your package, and you will get complaints that there are
19052 # no rules to generate ltmain.sh.
19053 if test -f "$ltmain"; then
19054 # See if we are running on zsh, and set the options which allow our commands through
19055 # without removal of \ escapes.
19056 if test -n "${ZSH_VERSION+set}" ; then
19057 setopt NO_GLOB_SUBST
19059 # Now quote all the things that may contain metacharacters while being
19060 # careful not to overquote the AC_SUBSTed values. We take copies of the
19061 # variables and quote the copies for generation of the libtool script.
19062 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19064 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19065 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19066 deplibs_check_method reload_flag reload_cmds need_locks \
19067 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19068 lt_cv_sys_global_symbol_to_c_name_address \
19069 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19070 old_postinstall_cmds old_postuninstall_cmds \
19074 lt_prog_compiler_wl_RC \
19075 lt_prog_compiler_pic_RC \
19076 lt_prog_compiler_static_RC \
19077 lt_prog_compiler_no_builtin_flag_RC \
19078 export_dynamic_flag_spec_RC \
19079 thread_safe_flag_spec_RC \
19080 whole_archive_flag_spec_RC \
19081 enable_shared_with_static_runtimes_RC \
19082 old_archive_cmds_RC \
19083 old_archive_from_new_cmds_RC \
19084 predep_objects_RC \
19085 postdep_objects_RC \
19088 compiler_lib_search_path_RC \
19090 archive_expsym_cmds_RC \
19091 postinstall_cmds_RC \
19092 postuninstall_cmds_RC \
19093 old_archive_from_expsyms_cmds_RC \
19094 allow_undefined_flag_RC \
19095 no_undefined_flag_RC \
19096 export_symbols_cmds_RC \
19097 hardcode_libdir_flag_spec_RC \
19098 hardcode_libdir_flag_spec_ld_RC \
19099 hardcode_libdir_separator_RC \
19100 hardcode_automatic_RC \
19102 module_expsym_cmds_RC \
19103 lt_cv_prog_compiler_c_o_RC \
19104 exclude_expsyms_RC \
19105 include_expsyms_RC; do
19108 old_archive_cmds_RC | \
19109 old_archive_from_new_cmds_RC | \
19110 archive_cmds_RC | \
19111 archive_expsym_cmds_RC | \
19113 module_expsym_cmds_RC | \
19114 old_archive_from_expsyms_cmds_RC | \
19115 export_symbols_cmds_RC | \
19116 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19117 postinstall_cmds | postuninstall_cmds | \
19118 old_postinstall_cmds | old_postuninstall_cmds | \
19119 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19120 # Double-quote double-evaled strings.
19121 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19124 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19130 *'\$0 --fallback-echo"')
19131 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19137 cat <<__EOF__ >> "$cfgfile"
19138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19142 # Shell to use when invoking shell scripts.
19145 # Whether or not to build shared libraries.
19146 build_libtool_libs=$enable_shared
19148 # Whether or not to build static libraries.
19149 build_old_libs=$enable_static
19151 # Whether or not to add -lc for building shared libraries.
19152 build_libtool_need_lc=$archive_cmds_need_lc_RC
19154 # Whether or not to disallow shared libs when runtime libs are static
19155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19157 # Whether or not to optimize for fast installation.
19158 fast_install=$enable_fast_install
19161 host_alias=$host_alias
19165 # The build system.
19166 build_alias=$build_alias
19170 # An echo program that does not interpret backslashes.
19175 AR_FLAGS=$lt_AR_FLAGS
19180 # LTCC compiler flags.
19181 LTCFLAGS=$lt_LTCFLAGS
19183 # A language-specific compiler.
19186 # Is the compiler the GNU C compiler?
19192 # The linker used to build libraries.
19195 # Whether we need hard or soft links.
19198 # A BSD-compatible nm program.
19201 # A symbol stripping program
19204 # Used to examine libraries when file_magic_cmd begins "file"
19205 MAGIC_CMD=$MAGIC_CMD
19207 # Used on cygwin: DLL creation program.
19210 # Used on cygwin: object dumper.
19213 # Used on cygwin: assembler.
19216 # The name of the directory that contains temporary libtool files.
19219 # How to create reloadable object files.
19220 reload_flag=$lt_reload_flag
19221 reload_cmds=$lt_reload_cmds
19223 # How to pass a linker flag through the compiler.
19224 wl=$lt_lt_prog_compiler_wl_RC
19226 # Object file suffix (normally "o").
19227 objext="$ac_objext"
19229 # Old archive suffix (normally "a").
19232 # Shared library suffix (normally ".so").
19233 shrext_cmds='$shrext_cmds'
19235 # Executable file suffix (normally "").
19238 # Additional compiler flags for building library objects.
19239 pic_flag=$lt_lt_prog_compiler_pic_RC
19242 # What is the maximum length of a command?
19243 max_cmd_len=$lt_cv_sys_max_cmd_len
19245 # Does compiler simultaneously support -c and -o options?
19246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19248 # Must we lock files when doing compilation?
19249 need_locks=$lt_need_locks
19251 # Do we need the lib prefix for modules?
19252 need_lib_prefix=$need_lib_prefix
19254 # Do we need a version for libraries?
19255 need_version=$need_version
19257 # Whether dlopen is supported.
19258 dlopen_support=$enable_dlopen
19260 # Whether dlopen of programs is supported.
19261 dlopen_self=$enable_dlopen_self
19263 # Whether dlopen of statically linked programs is supported.
19264 dlopen_self_static=$enable_dlopen_self_static
19266 # Compiler flag to prevent dynamic linking.
19267 link_static_flag=$lt_lt_prog_compiler_static_RC
19269 # Compiler flag to turn off builtin functions.
19270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19272 # Compiler flag to allow reflexive dlopens.
19273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19275 # Compiler flag to generate shared objects directly from archives.
19276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19278 # Compiler flag to generate thread-safe objects.
19279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19281 # Library versioning type.
19282 version_type=$version_type
19284 # Format of library name prefix.
19285 libname_spec=$lt_libname_spec
19287 # List of archive names. First name is the real one, the rest are links.
19288 # The last name is the one that the linker finds with -lNAME.
19289 library_names_spec=$lt_library_names_spec
19291 # The coded name of the library, if different from the real name.
19292 soname_spec=$lt_soname_spec
19294 # Commands used to build and install an old-style archive.
19296 old_archive_cmds=$lt_old_archive_cmds_RC
19297 old_postinstall_cmds=$lt_old_postinstall_cmds
19298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19300 # Create an old-style archive from a shared archive.
19301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19303 # Create a temporary old-style archive to link instead of a shared archive.
19304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19306 # Commands used to build and install a shared archive.
19307 archive_cmds=$lt_archive_cmds_RC
19308 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19309 postinstall_cmds=$lt_postinstall_cmds
19310 postuninstall_cmds=$lt_postuninstall_cmds
19312 # Commands used to build a loadable module (assumed same as above if empty)
19313 module_cmds=$lt_module_cmds_RC
19314 module_expsym_cmds=$lt_module_expsym_cmds_RC
19316 # Commands to strip libraries.
19317 old_striplib=$lt_old_striplib
19318 striplib=$lt_striplib
19320 # Dependencies to place before the objects being linked to create a
19322 predep_objects=$lt_predep_objects_RC
19324 # Dependencies to place after the objects being linked to create a
19326 postdep_objects=$lt_postdep_objects_RC
19328 # Dependencies to place before the objects being linked to create a
19330 predeps=$lt_predeps_RC
19332 # Dependencies to place after the objects being linked to create a
19334 postdeps=$lt_postdeps_RC
19336 # The library search path used internally by the compiler when linking
19337 # a shared library.
19338 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19340 # Method to check whether dependent libraries are shared objects.
19341 deplibs_check_method=$lt_deplibs_check_method
19343 # Command to use when deplibs_check_method == file_magic.
19344 file_magic_cmd=$lt_file_magic_cmd
19346 # Flag that allows shared libraries with undefined symbols to be built.
19347 allow_undefined_flag=$lt_allow_undefined_flag_RC
19349 # Flag that forces no undefined symbols.
19350 no_undefined_flag=$lt_no_undefined_flag_RC
19352 # Commands used to finish a libtool library installation in a directory.
19353 finish_cmds=$lt_finish_cmds
19355 # Same as above, but a single script fragment to be evaled but not shown.
19356 finish_eval=$lt_finish_eval
19358 # Take the output of nm and produce a listing of raw symbols and C names.
19359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19361 # Transform the output of nm in a proper C declaration
19362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19364 # Transform the output of nm in a C name address pair
19365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19367 # This is the shared library runtime path variable.
19368 runpath_var=$runpath_var
19370 # This is the shared library path variable.
19371 shlibpath_var=$shlibpath_var
19373 # Is shlibpath searched before the hard-coded library search path?
19374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19376 # How to hardcode a shared library path into an executable.
19377 hardcode_action=$hardcode_action_RC
19379 # Whether we should hardcode library paths into libraries.
19380 hardcode_into_libs=$hardcode_into_libs
19382 # Flag to hardcode \$libdir into a binary during linking.
19383 # This must work even if \$libdir does not exist.
19384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19386 # If ld is used when linking, flag to hardcode \$libdir into
19387 # a binary during linking. This must work even if \$libdir does
19389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19391 # Whether we need a single -rpath flag with a separated argument.
19392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19394 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19395 # resulting binary.
19396 hardcode_direct=$hardcode_direct_RC
19398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19399 # resulting binary.
19400 hardcode_minus_L=$hardcode_minus_L_RC
19402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19403 # the resulting binary.
19404 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19406 # Set to yes if building a shared library automatically hardcodes DIR into the library
19407 # and all subsequent libraries and executables linked against it.
19408 hardcode_automatic=$hardcode_automatic_RC
19410 # Variables whose values should be saved in libtool wrapper scripts and
19411 # restored at relink time.
19412 variables_saved_for_relink="$variables_saved_for_relink"
19414 # Whether libtool must link a program against all its dependency libraries.
19415 link_all_deplibs=$link_all_deplibs_RC
19417 # Compile-time system search path for libraries
19418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19420 # Run-time system search path for libraries
19421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19423 # Fix the shell variable \$srcfile for the compiler.
19424 fix_srcfile_path="$fix_srcfile_path_RC"
19426 # Set to yes if exported symbols are required.
19427 always_export_symbols=$always_export_symbols_RC
19429 # The commands to list exported symbols.
19430 export_symbols_cmds=$lt_export_symbols_cmds_RC
19432 # The commands to extract the exported symbol list from a shared archive.
19433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19435 # Symbols that should not be listed in the preloaded symbols.
19436 exclude_expsyms=$lt_exclude_expsyms_RC
19438 # Symbols that must always be exported.
19439 include_expsyms=$lt_include_expsyms_RC
19441 # ### END LIBTOOL TAG CONFIG: $tagname
19447 # If there is no Makefile yet, we rely on a make rule to execute
19448 # `config.status --recheck' to rerun these tests and create the
19449 # libtool script then.
19450 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19451 if test -f "$ltmain_in"; then
19452 test -f Makefile && make "$ltmain"
19458 ac_cpp='$CPP $CPPFLAGS'
19459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19468 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19469 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19470 { (exit 1); exit 1; }; }
19474 # Append the new tag name to the list of available tags.
19475 if test -n "$tagname" ; then
19476 available_tags="$available_tags $tagname"
19482 # Now substitute the updated list of available tags.
19483 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19484 mv "${ofile}T" "$ofile"
19488 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19489 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19490 { (exit 1); exit 1; }; }
19496 # This can be used to rebuild libtool when needed
19497 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19499 # Always use our own libtool.
19500 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19502 # Prevent multiple expansion
19523 for ac_prog in gzip uncompress compress
19525 # Extract the first word of "$ac_prog", so it can be a program name with args.
19526 set dummy $ac_prog; ac_word=$2
19527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19529 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 if test -n "$UNCOMPRESS"; then
19533 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
19535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536 for as_dir in $PATH
19539 test -z "$as_dir" && as_dir=.
19540 for ac_exec_ext in '' $ac_executable_extensions; do
19541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19542 ac_cv_prog_UNCOMPRESS="$ac_prog"
19543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19552 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
19553 if test -n "$UNCOMPRESS"; then
19554 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
19555 echo "${ECHO_T}$UNCOMPRESS" >&6; }
19557 { echo "$as_me:$LINENO: result: no" >&5
19558 echo "${ECHO_T}no" >&6; }
19562 test -n "$UNCOMPRESS" && break
19572 if test "x$EXEEXT" = "x.exe";then
19581 { echo "$as_me:$LINENO: checking host system type" >&5
19582 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
19583 if test "${ac_cv_host+set}" = set; then
19584 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 if test "x$host_alias" = x; then
19587 ac_cv_host=$ac_cv_build
19589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
19590 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
19591 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
19592 { (exit 1); exit 1; }; }
19596 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
19597 echo "${ECHO_T}$ac_cv_host" >&6; }
19598 case $ac_cv_host in
19600 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
19601 echo "$as_me: error: invalid value of canonical host" >&2;}
19602 { (exit 1); exit 1; }; };;
19605 ac_save_IFS=$IFS; IFS='-'
19611 # Remember, the first character of IFS is used to create $*,
19612 # except with old shells:
19615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
19620 { echo "$as_me:$LINENO: checking for target system" >&5
19621 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
19625 *cygwin* ) CYGWIN=yes;;
19626 *mingw* ) MINGW=yes;;
19630 if test "x$MINGW" = "xyes"; then
19631 #fix for the debian distribution of mingw
19632 if test -x "/usr/i586-mingw32msvc/bin/ar";then
19633 AR="/usr/i586-mingw32msvc/bin/ar"
19635 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
19636 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
19638 #fix for the gentoo distribution of mingw
19639 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
19640 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
19642 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
19643 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
19645 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
19646 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
19652 if test "x${CYGWIN}" = "xyes"; then
19653 cat >>confdefs.h <<_ACEOF
19657 { echo "$as_me:$LINENO: result: cygwin" >&5
19658 echo "${ECHO_T}cygwin" >&6; }
19660 if test "x${MINGW}" = "xyes"; then
19661 cat >>confdefs.h <<_ACEOF
19666 cat >>confdefs.h <<_ACEOF
19670 LIBS="$LIBS -lws2_32 -lgdi32"
19671 { echo "$as_me:$LINENO: result: mingw" >&5
19672 echo "${ECHO_T}mingw" >&6; }
19676 cat >>confdefs.h <<_ACEOF
19680 { echo "$as_me:$LINENO: result: " >&5
19681 echo "${ECHO_T}" >&6; }
19687 if test "x${MINGW}" != "xyes"; then
19689 cat >>confdefs.h <<_ACEOF
19702 # The following tries to make use of includes and libraries in
19703 # /usr/local, too. Notice: A -I/usr/local/include might break
19704 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
19705 # especially on systems which link /usr/local to /usr, so it has yet
19706 # to be seen how useful this is.
19707 if test -d /usr/local/lib; then
19708 LDFLAGS="$LDFLAGS -L/usr/local/lib"
19710 if test -d /usr/local/include; then
19711 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
19712 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
19715 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
19716 # if the user has a special prefix (like /opt), there might also be $prefix/lib
19717 # and $prefix/include, which should be included in our search paths for libraries
19719 LDFLAGS="$LDFLAGS -L${libdir}"
19720 CPPFLAGS="$CPPFLAGS -I${includedir}"
19721 # TODO- test whether gcc still works after this
19725 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
19728 # this must be done after (I believe) AC_PROG_MAKE_SET
19729 if test "x$DEBUG" '!=' "x";then
19730 STRIP="@echo debug enabled, not stripping "
19736 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
19737 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
19738 if test "${ac_cv_lib_m_sin+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 ac_check_lib_save_LIBS=$LIBS
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19750 /* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19765 rm -f conftest.$ac_objext conftest$ac_exeext
19766 if { (ac_try="$ac_link"
19767 case "(($ac_try" in
19768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19769 *) ac_try_echo=$ac_try;;
19771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19772 (eval "$ac_link") 2>conftest.er1
19774 grep -v '^ *+' conftest.er1 >conftest.err
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19780 { (case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_try") 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; } &&
19789 { ac_try='test -s conftest$ac_exeext'
19790 { (case "(($ac_try" in
19791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19792 *) ac_try_echo=$ac_try;;
19794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19795 (eval "$ac_try") 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_lib_m_sin=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19807 rm -f core conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
19812 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
19813 if test $ac_cv_lib_m_sin = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_LIBM 1
19821 echo "Error: Math library not found.";
19827 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19828 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_z_deflate+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
19870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871 { (case "(($ac_try" in
19872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873 *) ac_try_echo=$ac_try;;
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876 (eval "$ac_try") 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest$ac_exeext'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; }; then
19890 ac_cv_lib_z_deflate=yes
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_cv_lib_z_deflate=no
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 LIBS=$ac_check_lib_save_LIBS
19902 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19903 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
19904 if test $ac_cv_lib_z_deflate = yes; then
19905 cat >>confdefs.h <<_ACEOF
19906 #define HAVE_LIBZ 1
19916 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
19917 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
19918 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
19919 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 ac_check_lib_save_LIBS=$LIBS
19922 LIBS="-ljpeg $LIBS"
19923 cat >conftest.$ac_ext <<_ACEOF
19926 cat confdefs.h >>conftest.$ac_ext
19927 cat >>conftest.$ac_ext <<_ACEOF
19928 /* end confdefs.h. */
19930 /* Override any GCC internal prototype to avoid an error.
19931 Use char because int might match the return type of a GCC
19932 builtin and then its argument prototype would still apply. */
19936 char jpeg_write_raw_data ();
19940 return jpeg_write_raw_data ();
19945 rm -f conftest.$ac_objext conftest$ac_exeext
19946 if { (ac_try="$ac_link"
19947 case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_link") 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19960 { (case "(($ac_try" in
19961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962 *) ac_try_echo=$ac_try;;
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965 (eval "$ac_try") 2>&5
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; } &&
19969 { ac_try='test -s conftest$ac_exeext'
19970 { (case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_try") 2>&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
19981 echo "$as_me: failed program was:" >&5
19982 sed 's/^/| /' conftest.$ac_ext >&5
19984 ac_cv_lib_jpeg_jpeg_write_raw_data=no
19987 rm -f core conftest.err conftest.$ac_objext \
19988 conftest$ac_exeext conftest.$ac_ext
19989 LIBS=$ac_check_lib_save_LIBS
19991 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
19992 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
19993 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
19994 cat >>confdefs.h <<_ACEOF
19995 #define HAVE_LIBJPEG 1
19998 LIBS="-ljpeg $LIBS"
20001 JPEGLIBMISSING=true
20005 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
20006 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
20007 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 ac_check_lib_save_LIBS=$LIBS
20012 cat >conftest.$ac_ext <<_ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20019 /* Override any GCC internal prototype to avoid an error.
20020 Use char because int might match the return type of a GCC
20021 builtin and then its argument prototype would still apply. */
20025 char T1_LoadFont ();
20029 return T1_LoadFont ();
20034 rm -f conftest.$ac_objext conftest$ac_exeext
20035 if { (ac_try="$ac_link"
20036 case "(($ac_try" in
20037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20038 *) ac_try_echo=$ac_try;;
20040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20041 (eval "$ac_link") 2>conftest.er1
20043 grep -v '^ *+' conftest.er1 >conftest.err
20045 cat conftest.err >&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
20048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } &&
20058 { ac_try='test -s conftest$ac_exeext'
20059 { (case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_try") 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_lib_t1_T1_LoadFont=yes
20070 echo "$as_me: failed program was:" >&5
20071 sed 's/^/| /' conftest.$ac_ext >&5
20073 ac_cv_lib_t1_T1_LoadFont=no
20076 rm -f core conftest.err conftest.$ac_objext \
20077 conftest$ac_exeext conftest.$ac_ext
20078 LIBS=$ac_check_lib_save_LIBS
20080 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
20081 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
20082 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
20083 cat >>confdefs.h <<_ACEOF
20084 #define HAVE_LIBT1 1
20094 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
20095 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
20096 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-lungif $LIBS"
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20108 /* Override any GCC internal prototype to avoid an error.
20109 Use char because int might match the return type of a GCC
20110 builtin and then its argument prototype would still apply. */
20118 return DGifOpen ();
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_link") 2>conftest.er1
20132 grep -v '^ *+' conftest.er1 >conftest.err
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } &&
20137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20138 { (case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_try") 2>&5
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest$ac_exeext'
20148 { (case "(($ac_try" in
20149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150 *) ac_try_echo=$ac_try;;
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153 (eval "$ac_try") 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; }; then
20157 ac_cv_lib_ungif_DGifOpen=yes
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_cv_lib_ungif_DGifOpen=no
20165 rm -f core conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext conftest.$ac_ext
20167 LIBS=$ac_check_lib_save_LIBS
20169 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
20170 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
20171 if test $ac_cv_lib_ungif_DGifOpen = yes; then
20172 cat >>confdefs.h <<_ACEOF
20173 #define HAVE_LIBUNGIF 1
20176 LIBS="-lungif $LIBS"
20184 { echo "$as_me:$LINENO: checking for byte order" >&5
20185 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
20186 if test "$cross_compiling" = yes; then
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 int main (int argc, char *argv[])
20203 rm -f conftest$ac_exeext
20204 if { (ac_try="$ac_link"
20205 case "(($ac_try" in
20206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20207 *) ac_try_echo=$ac_try;;
20209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20210 (eval "$ac_link") 2>&5
20212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20214 { (case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_try") 2>&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20225 echo "$as_me: program exited with status $ac_status" >&5
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 ( exit $ac_status )
20232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 export CROSSCOMPILE
20238 if test "x${CROSSCOMPILE}" = "x1"; then
20239 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
20240 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
20241 { echo "$as_me:$LINENO: checking target system type" >&5
20242 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
20243 if test "${ac_cv_target+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20246 if test "x$target_alias" = x; then
20247 ac_cv_target=$ac_cv_host
20249 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
20250 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
20251 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
20252 { (exit 1); exit 1; }; }
20256 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
20257 echo "${ECHO_T}$ac_cv_target" >&6; }
20258 case $ac_cv_target in
20260 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
20261 echo "$as_me: error: invalid value of canonical target" >&2;}
20262 { (exit 1); exit 1; }; };;
20264 target=$ac_cv_target
20265 ac_save_IFS=$IFS; IFS='-'
20266 set x $ac_cv_target
20271 # Remember, the first character of IFS is used to create $*,
20272 # except with old shells:
20275 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
20278 # The aliases save the names the user supplied, while $host etc.
20279 # will get canonicalized.
20280 test -n "$target_alias" &&
20281 test "$program_prefix$program_suffix$program_transform_name" = \
20283 program_prefix=${target_alias}-
20284 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
20285 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
20286 case "${target}" in
20290 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
20296 export LITTLEENDIAN
20297 if test "x${LITTLEENDIAN}" = "x1"; then
20298 { echo "$as_me:$LINENO: result: little endian" >&5
20299 echo "${ECHO_T}little endian" >&6; }
20303 if test "x${BIGENDIAN}" = "x1"; then
20304 { echo "$as_me:$LINENO: result: big endian" >&5
20305 echo "${ECHO_T}big endian" >&6; }
20308 export WORDS_BIGENDIAN
20309 cat >>confdefs.h <<_ACEOF
20310 #define WORDS_BIGENDIAN 1
20314 if test "x${BYTEORDERCHECKOK}" != "x1"; then
20315 { echo "$as_me:$LINENO: result: unknown" >&5
20316 echo "${ECHO_T}unknown" >&6; }
20317 echo Byte order could not determined.
20323 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
20324 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
20325 if test "$cross_compiling" = yes; then
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 #include "stdlib.h"
20336 int main (int argc, char*argv[])
20338 return system("test `touch config.tmp2`");
20342 rm -f conftest$ac_exeext
20343 if { (ac_try="$ac_link"
20344 case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_link") 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20364 echo "$as_me: program exited with status $ac_status" >&5
20365 echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20369 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20374 if test "x${OK}" = "xOK";then
20375 test -f config.tmp2 || OK=
20378 if test "x${CROSSCOMPILE}" = "x1";then
20381 if test "x${OK}" = "xOK";then
20383 { echo "$as_me:$LINENO: result: yes" >&5
20384 echo "${ECHO_T}yes" >&6; }
20386 export SYSTEM_BACKTICKS
20387 cat >>confdefs.h <<_ACEOF
20388 #define SYSTEM_BACKTICKS 1
20392 { echo "$as_me:$LINENO: result: no" >&5
20393 echo "${ECHO_T}no" >&6; }
20398 test "$program_prefix" != NONE &&
20399 program_transform_name="s&^&$program_prefix&;$program_transform_name"
20400 # Use a double $ so make ignores it.
20401 test "$program_suffix" != NONE &&
20402 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
20403 # Double any \ or $. echo might interpret backslashes.
20404 # By default was `s,x,x', remove it if useless.
20405 cat <<\_ACEOF >conftest.sed
20406 s/[\\$]/&&/g;s/;s,x,x,$//
20408 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
20412 ac_config_headers="$ac_config_headers config.h"
20419 ac_header_dirent=no
20420 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20421 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20422 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20423 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20425 echo $ECHO_N "(cached) $ECHO_C" >&6
20427 cat >conftest.$ac_ext <<_ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h. */
20433 #include <sys/types.h>
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } &&
20459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20460 { (case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_try") 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest.$ac_objext'
20470 { (case "(($ac_try" in
20471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20472 *) ac_try_echo=$ac_try;;
20474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20475 (eval "$ac_try") 2>&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); }; }; then
20479 eval "$as_ac_Header=yes"
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 eval "$as_ac_Header=no"
20487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20489 ac_res=`eval echo '${'$as_ac_Header'}'`
20490 { echo "$as_me:$LINENO: result: $ac_res" >&5
20491 echo "${ECHO_T}$ac_res" >&6; }
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20497 ac_header_dirent=$ac_hdr; break
20501 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20502 if test $ac_header_dirent = dirent.h; then
20503 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20505 if test "${ac_cv_search_opendir+set}" = set; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 ac_func_search_save_LIBS=$LIBS
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 /* Override any GCC internal prototype to avoid an error.
20517 Use char because int might match the return type of a GCC
20518 builtin and then its argument prototype would still apply. */
20531 for ac_lib in '' dir; do
20532 if test -z "$ac_lib"; then
20533 ac_res="none required"
20536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20538 rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_link") 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } &&
20552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20553 { (case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558 (eval "$ac_try") 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_try") 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_search_opendir=$ac_res
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20580 rm -f core conftest.err conftest.$ac_objext \
20582 if test "${ac_cv_search_opendir+set}" = set; then
20586 if test "${ac_cv_search_opendir+set}" = set; then
20589 ac_cv_search_opendir=no
20591 rm conftest.$ac_ext
20592 LIBS=$ac_func_search_save_LIBS
20594 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20595 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20596 ac_res=$ac_cv_search_opendir
20597 if test "$ac_res" != no; then
20598 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20603 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20604 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20605 if test "${ac_cv_search_opendir+set}" = set; then
20606 echo $ECHO_N "(cached) $ECHO_C" >&6
20608 ac_func_search_save_LIBS=$LIBS
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20631 for ac_lib in '' x; do
20632 if test -z "$ac_lib"; then
20633 ac_res="none required"
20636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20638 rm -f conftest.$ac_objext conftest$ac_exeext
20639 if { (ac_try="$ac_link"
20640 case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_link") 2>conftest.er1
20647 grep -v '^ *+' conftest.er1 >conftest.err
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
20652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; } &&
20662 { ac_try='test -s conftest$ac_exeext'
20663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_search_opendir=$ac_res
20674 echo "$as_me: failed program was:" >&5
20675 sed 's/^/| /' conftest.$ac_ext >&5
20680 rm -f core conftest.err conftest.$ac_objext \
20682 if test "${ac_cv_search_opendir+set}" = set; then
20686 if test "${ac_cv_search_opendir+set}" = set; then
20689 ac_cv_search_opendir=no
20691 rm conftest.$ac_ext
20692 LIBS=$ac_func_search_save_LIBS
20694 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20695 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20696 ac_res=$ac_cv_search_opendir
20697 if test "$ac_res" != no; then
20698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20704 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20705 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20706 if test "${ac_cv_header_stdc+set}" = set; then
20707 echo $ECHO_N "(cached) $ECHO_C" >&6
20709 cat >conftest.$ac_ext <<_ACEOF
20712 cat confdefs.h >>conftest.$ac_ext
20713 cat >>conftest.$ac_ext <<_ACEOF
20714 /* end confdefs.h. */
20715 #include <stdlib.h>
20716 #include <stdarg.h>
20717 #include <string.h>
20728 rm -f conftest.$ac_objext
20729 if { (ac_try="$ac_compile"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_compile") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); } &&
20742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20743 { (case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_try") 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; } &&
20752 { ac_try='test -s conftest.$ac_objext'
20753 { (case "(($ac_try" in
20754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755 *) ac_try_echo=$ac_try;;
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758 (eval "$ac_try") 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; }; then
20762 ac_cv_header_stdc=yes
20764 echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20767 ac_cv_header_stdc=no
20770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 if test $ac_cv_header_stdc = yes; then
20773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include <string.h>
20783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20784 $EGREP "memchr" >/dev/null 2>&1; then
20787 ac_cv_header_stdc=no
20793 if test $ac_cv_header_stdc = yes; then
20794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 #include <stdlib.h>
20804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20805 $EGREP "free" >/dev/null 2>&1; then
20808 ac_cv_header_stdc=no
20814 if test $ac_cv_header_stdc = yes; then
20815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20816 if test "$cross_compiling" = yes; then
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20826 #include <stdlib.h>
20827 #if ((' ' & 0x0FF) == 0x020)
20828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20831 # define ISLOWER(c) \
20832 (('a' <= (c) && (c) <= 'i') \
20833 || ('j' <= (c) && (c) <= 'r') \
20834 || ('s' <= (c) && (c) <= 'z'))
20835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20843 for (i = 0; i < 256; i++)
20844 if (XOR (islower (i), ISLOWER (i))
20845 || toupper (i) != TOUPPER (i))
20850 rm -f conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20861 { (case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_try") 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20872 echo "$as_me: program exited with status $ac_status" >&5
20873 echo "$as_me: failed program was:" >&5
20874 sed 's/^/| /' conftest.$ac_ext >&5
20876 ( exit $ac_status )
20877 ac_cv_header_stdc=no
20879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20887 if test $ac_cv_header_stdc = yes; then
20889 cat >>confdefs.h <<\_ACEOF
20890 #define STDC_HEADERS 1
20910 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
20912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 ac_res=`eval echo '${'$as_ac_Header'}'`
20920 { echo "$as_me:$LINENO: result: $ac_res" >&5
20921 echo "${ECHO_T}$ac_res" >&6; }
20923 # Is the header compilable?
20924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 $ac_includes_default
20933 #include <$ac_header>
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20944 grep -v '^ *+' conftest.er1 >conftest.err
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } &&
20949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20950 { (case "(($ac_try" in
20951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20952 *) ac_try_echo=$ac_try;;
20954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20955 (eval "$ac_try") 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; } &&
20959 { ac_try='test -s conftest.$ac_objext'
20960 { (case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; }; then
20969 ac_header_compiler=yes
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_header_compiler=no
20977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20979 echo "${ECHO_T}$ac_header_compiler" >&6; }
20981 # Is the header present?
20982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20984 cat >conftest.$ac_ext <<_ACEOF
20987 cat confdefs.h >>conftest.$ac_ext
20988 cat >>conftest.$ac_ext <<_ACEOF
20989 /* end confdefs.h. */
20990 #include <$ac_header>
20992 if { (ac_try="$ac_cpp conftest.$ac_ext"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } >/dev/null; then
21005 if test -s conftest.err; then
21006 ac_cpp_err=$ac_c_preproc_warn_flag
21007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21014 if test -z "$ac_cpp_err"; then
21015 ac_header_preproc=yes
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_header_preproc=no
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21027 # So? What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21034 ac_header_preproc=yes
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 eval "$as_ac_Header=\$ac_header_preproc"
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060 { echo "$as_me:$LINENO: result: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21074 cat >>confdefs.h <<_ACEOF
21075 #define PACKAGE "$PACKAGE"
21078 cat >>confdefs.h <<_ACEOF
21079 #define VERSION "$VERSION"
21088 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21090 if test "${ac_cv_c_const+set}" = set; then
21091 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21103 /* FIXME: Include the comments suggested by Paul. */
21104 #ifndef __cplusplus
21105 /* Ultrix mips cc rejects this. */
21106 typedef int charset[2];
21108 /* SunOS 4.1.1 cc rejects this. */
21109 char const *const *ccp;
21111 /* NEC SVR4.0.2 mips cc rejects this. */
21112 struct point {int x, y;};
21113 static struct point const zero = {0,0};
21114 /* AIX XL C 1.02.0.0 rejects this.
21115 It does not let you subtract one const X* pointer from another in
21116 an arm of an if-expression whose if-part is not a constant
21118 const char *g = "string";
21119 ccp = &g + (g ? g-g : 0);
21120 /* HPUX 7.0 cc rejects these. */
21123 ccp = (char const *const *) p;
21124 { /* SCO 3.2v4 cc rejects this. */
21126 char const *s = 0 ? (char *) 0 : (char const *) 0;
21131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21132 int x[] = {25, 17};
21133 const int *foo = &x[0];
21136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21137 typedef const int *iptr;
21141 { /* AIX XL C 1.02.0.0 rejects this saying
21142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21143 struct s { int j; const int *ap[3]; };
21144 struct s *b; b->j = 5;
21146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21147 const int foo = 10;
21148 if (!foo) return 0;
21150 return !x[0] && !zero.x;
21157 rm -f conftest.$ac_objext
21158 if { (ac_try="$ac_compile"
21159 case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164 (eval "$ac_compile") 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21172 { (case "(($ac_try" in
21173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174 *) ac_try_echo=$ac_try;;
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177 (eval "$ac_try") 2>&5
21179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 (exit $ac_status); }; } &&
21181 { ac_try='test -s conftest.$ac_objext'
21182 { (case "(($ac_try" in
21183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184 *) ac_try_echo=$ac_try;;
21186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187 (eval "$ac_try") 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; }; then
21193 echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21202 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21203 if test $ac_cv_c_const = no; then
21205 cat >>confdefs.h <<\_ACEOF
21211 { echo "$as_me:$LINENO: checking for inline" >&5
21212 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21213 if test "${ac_cv_c_inline+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21217 for ac_kw in inline __inline__ __inline; do
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 #ifndef __cplusplus
21226 static $ac_kw foo_t static_foo () {return 0; }
21227 $ac_kw foo_t foo () {return 0; }
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 ac_cv_c_inline=$ac_kw
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 test "$ac_cv_c_inline" != no && break
21278 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21279 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21282 case $ac_cv_c_inline in
21285 case $ac_cv_c_inline in
21287 *) ac_val=$ac_cv_c_inline;;
21289 cat >>confdefs.h <<_ACEOF
21290 #ifndef __cplusplus
21291 #define inline $ac_val
21297 { echo "$as_me:$LINENO: checking for off_t" >&5
21298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21299 if test "${ac_cv_type_off_t+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21302 cat >conftest.$ac_ext <<_ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 $ac_includes_default
21309 typedef off_t ac__type_new_;
21313 if ((ac__type_new_ *) 0)
21315 if (sizeof (ac__type_new_))
21321 rm -f conftest.$ac_objext
21322 if { (ac_try="$ac_compile"
21323 case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21328 (eval "$ac_compile") 2>conftest.er1
21330 grep -v '^ *+' conftest.er1 >conftest.err
21332 cat conftest.err >&5
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); } &&
21335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21336 { (case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_try") 2>&5
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; } &&
21345 { ac_try='test -s conftest.$ac_objext'
21346 { (case "(($ac_try" in
21347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21348 *) ac_try_echo=$ac_try;;
21350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21351 (eval "$ac_try") 2>&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_cv_type_off_t=yes
21357 echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.$ac_ext >&5
21360 ac_cv_type_off_t=no
21363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21365 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21366 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21367 if test $ac_cv_type_off_t = yes; then
21371 cat >>confdefs.h <<_ACEOF
21372 #define off_t long int
21377 { echo "$as_me:$LINENO: checking for size_t" >&5
21378 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21379 if test "${ac_cv_type_size_t+set}" = set; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 typedef size_t ac__type_new_;
21393 if ((ac__type_new_ *) 0)
21395 if (sizeof (ac__type_new_))
21401 rm -f conftest.$ac_objext
21402 if { (ac_try="$ac_compile"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_compile") 2>conftest.er1
21410 grep -v '^ *+' conftest.er1 >conftest.err
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21416 { (case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_try") 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_try") 2>&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); }; }; then
21435 ac_cv_type_size_t=yes
21437 echo "$as_me: failed program was:" >&5
21438 sed 's/^/| /' conftest.$ac_ext >&5
21440 ac_cv_type_size_t=no
21443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21446 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21447 if test $ac_cv_type_size_t = yes; then
21451 cat >>confdefs.h <<_ACEOF
21452 #define size_t unsigned int
21457 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21458 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21459 if test "${ac_cv_struct_tm+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 cat >conftest.$ac_ext <<_ACEOF
21465 cat confdefs.h >>conftest.$ac_ext
21466 cat >>conftest.$ac_ext <<_ACEOF
21467 /* end confdefs.h. */
21468 #include <sys/types.h>
21474 struct tm *tp; tp->tm_sec;
21479 rm -f conftest.$ac_objext
21480 if { (ac_try="$ac_compile"
21481 case "(($ac_try" in
21482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21483 *) ac_try_echo=$ac_try;;
21485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21486 (eval "$ac_compile") 2>conftest.er1
21488 grep -v '^ *+' conftest.er1 >conftest.err
21490 cat conftest.err >&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); } &&
21493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21494 { (case "(($ac_try" in
21495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496 *) ac_try_echo=$ac_try;;
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499 (eval "$ac_try") 2>&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (case "(($ac_try" in
21505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506 *) ac_try_echo=$ac_try;;
21508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509 (eval "$ac_try") 2>&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); }; }; then
21513 ac_cv_struct_tm=time.h
21515 echo "$as_me: failed program was:" >&5
21516 sed 's/^/| /' conftest.$ac_ext >&5
21518 ac_cv_struct_tm=sys/time.h
21521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21524 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21525 if test $ac_cv_struct_tm = sys/time.h; then
21527 cat >>confdefs.h <<\_ACEOF
21528 #define TM_IN_SYS_TIME 1
21533 { echo "$as_me:$LINENO: checking for boolean" >&5
21534 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
21535 if test "${ac_cv_type_boolean+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 typedef boolean ac__type_new_;
21549 if ((ac__type_new_ *) 0)
21551 if (sizeof (ac__type_new_))
21557 rm -f conftest.$ac_objext
21558 if { (ac_try="$ac_compile"
21559 case "(($ac_try" in
21560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21561 *) ac_try_echo=$ac_try;;
21563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21564 (eval "$ac_compile") 2>conftest.er1
21566 grep -v '^ *+' conftest.er1 >conftest.err
21568 cat conftest.err >&5
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); } &&
21571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21572 { (case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_try") 2>&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
21582 { (case "(($ac_try" in
21583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21584 *) ac_try_echo=$ac_try;;
21586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21587 (eval "$ac_try") 2>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ac_cv_type_boolean=yes
21593 echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ac_cv_type_boolean=no
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
21602 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
21603 if test $ac_cv_type_boolean = yes; then
21607 cat >>confdefs.h <<_ACEOF
21608 #define boolean int
21612 #needed for jpeglib
21624 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
21626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21632 cat >conftest.$ac_ext <<_ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21640 #define $ac_func innocuous_$ac_func
21642 /* System header to define __stub macros and hopefully few prototypes,
21643 which can conflict with char $ac_func (); below.
21644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21645 <limits.h> exists even on freestanding compilers. */
21648 # include <limits.h>
21650 # include <assert.h>
21655 /* Override any GCC internal prototype to avoid an error.
21656 Use char because int might match the return type of a GCC
21657 builtin and then its argument prototype would still apply. */
21662 /* The GNU C library defines this for functions which it implements
21663 to always fail with ENOSYS. Some functions are actually named
21664 something starting with __ and the normal name is an alias. */
21665 #if defined __stub_$ac_func || defined __stub___$ac_func
21672 return $ac_func ();
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_link") 2>conftest.er1
21686 grep -v '^ *+' conftest.er1 >conftest.err
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21692 { (case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_try") 2>&5
21699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); }; } &&
21701 { ac_try='test -s conftest$ac_exeext'
21702 { (case "(($ac_try" in
21703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704 *) ac_try_echo=$ac_try;;
21706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21707 (eval "$ac_try") 2>&5
21709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 eval "$as_ac_var=yes"
21713 echo "$as_me: failed program was:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 eval "$as_ac_var=no"
21719 rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
21722 ac_res=`eval echo '${'$as_ac_var'}'`
21723 { echo "$as_me:$LINENO: result: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21725 if test `eval echo '${'$as_ac_var'}'` = yes; then
21726 cat >>confdefs.h <<_ACEOF
21727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21734 # ------------------------------------------------------------------
21738 # Extract the first word of "freetype-config", so it can be a program name with args.
21739 set dummy freetype-config; ac_word=$2
21740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21742 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
21743 echo $ECHO_N "(cached) $ECHO_C" >&6
21745 case $FREETYPE_CONFIG in
21747 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
21750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
21752 for as_dir in $as_dummy
21755 test -z "$as_dir" && as_dir=.
21756 for ac_exec_ext in '' $ac_executable_extensions; do
21757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21758 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21769 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
21770 if test -n "$FREETYPE_CONFIG"; then
21771 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
21772 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
21774 { echo "$as_me:$LINENO: result: no" >&5
21775 echo "${ECHO_T}no" >&6; }
21780 OLDCPPFLAGS="${CPPFLAGS}"
21782 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
21783 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
21784 else if test -d /usr/include/freetype2; then
21785 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
21786 else if test -d /usr/local/include/freetype2; then
21787 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
21792 if test "x${FREETYPE_CONFIG}" '=' "x";then
21793 # if we didn't find the freetype-config program, we won't
21794 # know where the libs are expected to be. So just blindly
21795 # try to link against them.
21796 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
21797 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
21798 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21801 ac_check_lib_save_LIBS=$LIBS
21802 LIBS="-lfreetype $LIBS"
21803 cat >conftest.$ac_ext <<_ACEOF
21806 cat confdefs.h >>conftest.$ac_ext
21807 cat >>conftest.$ac_ext <<_ACEOF
21808 /* end confdefs.h. */
21810 /* Override any GCC internal prototype to avoid an error.
21811 Use char because int might match the return type of a GCC
21812 builtin and then its argument prototype would still apply. */
21816 char FT_Init_FreeType ();
21820 return FT_Init_FreeType ();
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_link") 2>conftest.er1
21834 grep -v '^ *+' conftest.er1 >conftest.err
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } &&
21839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21840 { (case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_try") 2>&5
21847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848 (exit $ac_status); }; } &&
21849 { ac_try='test -s conftest$ac_exeext'
21850 { (case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_try") 2>&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; }; then
21859 ac_cv_lib_freetype_FT_Init_FreeType=yes
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_cv_lib_freetype_FT_Init_FreeType=no
21867 rm -f core conftest.err conftest.$ac_objext \
21868 conftest$ac_exeext conftest.$ac_ext
21869 LIBS=$ac_check_lib_save_LIBS
21871 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
21872 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
21873 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
21874 HAVE_LIB_FREETYPE=1
21880 for ac_header in ft2build.h
21882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21884 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21889 ac_res=`eval echo '${'$as_ac_Header'}'`
21890 { echo "$as_me:$LINENO: result: $ac_res" >&5
21891 echo "${ECHO_T}$ac_res" >&6; }
21893 # Is the header compilable?
21894 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21902 $ac_includes_default
21903 #include <$ac_header>
21905 rm -f conftest.$ac_objext
21906 if { (ac_try="$ac_compile"
21907 case "(($ac_try" in
21908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909 *) ac_try_echo=$ac_try;;
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912 (eval "$ac_compile") 2>conftest.er1
21914 grep -v '^ *+' conftest.er1 >conftest.err
21916 cat conftest.err >&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21920 { (case "(($ac_try" in
21921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922 *) ac_try_echo=$ac_try;;
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925 (eval "$ac_try") 2>&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; } &&
21929 { ac_try='test -s conftest.$ac_objext'
21930 { (case "(($ac_try" in
21931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21932 *) ac_try_echo=$ac_try;;
21934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21935 (eval "$ac_try") 2>&5
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); }; }; then
21939 ac_header_compiler=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_header_compiler=no
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21949 echo "${ECHO_T}$ac_header_compiler" >&6; }
21951 # Is the header present?
21952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21954 cat >conftest.$ac_ext <<_ACEOF
21957 cat confdefs.h >>conftest.$ac_ext
21958 cat >>conftest.$ac_ext <<_ACEOF
21959 /* end confdefs.h. */
21960 #include <$ac_header>
21962 if { (ac_try="$ac_cpp conftest.$ac_ext"
21963 case "(($ac_try" in
21964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21965 *) ac_try_echo=$ac_try;;
21967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21970 grep -v '^ *+' conftest.er1 >conftest.err
21972 cat conftest.err >&5
21973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974 (exit $ac_status); } >/dev/null; then
21975 if test -s conftest.err; then
21976 ac_cpp_err=$ac_c_preproc_warn_flag
21977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21984 if test -z "$ac_cpp_err"; then
21985 ac_header_preproc=yes
21987 echo "$as_me: failed program was:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_header_preproc=no
21993 rm -f conftest.err conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21995 echo "${ECHO_T}$ac_header_preproc" >&6; }
21997 # So? What about this header?
21998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22001 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22003 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22004 ac_header_preproc=yes
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22008 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22010 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22012 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22014 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22018 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 eval "$as_ac_Header=\$ac_header_preproc"
22029 ac_res=`eval echo '${'$as_ac_Header'}'`
22030 { echo "$as_me:$LINENO: result: $ac_res" >&5
22031 echo "${ECHO_T}$ac_res" >&6; }
22034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22035 cat >>confdefs.h <<_ACEOF
22036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22043 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
22045 for ac_header in freetype/freetype.h
22047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 ac_res=`eval echo '${'$as_ac_Header'}'`
22055 { echo "$as_me:$LINENO: result: $ac_res" >&5
22056 echo "${ECHO_T}$ac_res" >&6; }
22058 # Is the header compilable?
22059 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22068 #include <$ac_header>
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
22084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22085 { (case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_try") 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; } &&
22094 { ac_try='test -s conftest.$ac_objext'
22095 { (case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_try") 2>&5
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_header_compiler=yes
22106 echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_header_compiler=no
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22114 echo "${ECHO_T}$ac_header_compiler" >&6; }
22116 # Is the header present?
22117 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22119 cat >conftest.$ac_ext <<_ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 #include <$ac_header>
22127 if { (ac_try="$ac_cpp conftest.$ac_ext"
22128 case "(($ac_try" in
22129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } >/dev/null; then
22140 if test -s conftest.err; then
22141 ac_cpp_err=$ac_c_preproc_warn_flag
22142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22149 if test -z "$ac_cpp_err"; then
22150 ac_header_preproc=yes
22152 echo "$as_me: failed program was:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ac_header_preproc=no
22158 rm -f conftest.err conftest.$ac_ext
22159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22160 echo "${ECHO_T}$ac_header_preproc" >&6; }
22162 # So? What about this header?
22163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22169 ac_header_preproc=yes
22172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22190 echo $ECHO_N "(cached) $ECHO_C" >&6
22192 eval "$as_ac_Header=\$ac_header_preproc"
22194 ac_res=`eval echo '${'$as_ac_Header'}'`
22195 { echo "$as_me:$LINENO: result: $ac_res" >&5
22196 echo "${ECHO_T}$ac_res" >&6; }
22199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22200 cat >>confdefs.h <<_ACEOF
22201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22203 HAVE_FREETYPE_FREETYPE_H=1
22210 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
22211 "x${FREETYPE_CONFIG}" '!=' "x";then
22212 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
22215 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
22220 if test "x${HAVE_FREETYPE}" = "x1"; then
22221 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
22222 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
22224 LIBS="$LIBS -lfreetype"
22227 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
22228 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
22231 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
22232 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
22234 cat > conftest.c << EOF
22235 $HAVE_FT2BUILD_H_DEFINE
22237 #ifdef HAVE_FT2BUILD_H
22238 #include <ft2build.h>
22239 #include FT_FREETYPE_H
22240 #include FT_GLYPH_H
22241 #include FT_SIZES_H
22242 #include FT_SFNT_NAMES_H
22243 #include FT_TRUETYPE_IDS_H
22244 #include FT_OUTLINE_H
22246 #include <freetype/freetype.h>
22247 #include <freetype/ftglyph.h>
22248 #include <freetype/ftsizes.h>
22249 #include <freetype/ftsnames.h>
22250 #include <freetype/ttnameid.h>
22251 #include <freetype/ftoutln.h>
22256 FT_Library ftlibrary;
22268 FT_Init_FreeType(&ftlibrary);
22269 FT_New_Face(ftlibrary, "filename", 0, &face);
22270 i = face->num_glyphs - 1;
22271 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
22272 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
22273 FT_Get_Postscript_Name(face);
22274 FT_Get_Char_Index(face, 33);
22275 FT_Get_First_Char(face, &i);
22276 FT_Get_Next_Char(face, 33, &i);
22277 if(FT_HAS_GLYPH_NAMES(face)) {
22278 FT_Get_Glyph_Name(face, 33, name, 127);
22280 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
22281 FT_Get_Glyph(face->glyph, &glyph);
22282 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
22283 FT_Done_Glyph(glyph);
22284 FT_Done_Face(face);
22285 FT_Done_FreeType(ftlibrary);
22290 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
22291 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22292 { echo "$as_me:$LINENO: result: yes" >&5
22293 echo "${ECHO_T}yes" >&6; }
22294 cat >>confdefs.h <<_ACEOF
22295 #define HAVE_FREETYPE 1
22298 cat >>confdefs.h <<_ACEOF
22299 #define HAVE_FREETYPE_FREETYPE_H 1
22302 cat >>confdefs.h <<_ACEOF
22303 #define USE_FREETYPE 1
22307 echo "configure: failed program was:" >&5
22310 { echo "$as_me:$LINENO: result: no" >&5
22311 echo "${ECHO_T}no" >&6; }
22316 # if the above didn't work out, reset all changes to the compiler variables.
22317 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
22318 CPPFLAGS=$OLDCPPFLAGS
22323 #RFX_CHECK_FONTCONFIG
22325 # ------------------------------------------------------------------
22329 if test "x${DISABLE_LAME}" = "xtrue"; then
22330 echo "*" Disabling lame support...
22332 # old lame code at lib/lame
22333 if test -f lib/lame/Makefile.in; then
22334 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
22335 lame_makefile="lib/lame/Makefile"
22336 CPPFLAGS="$CPPFLAGS -Ilame"
22337 cat >>confdefs.h <<_ACEOF
22338 #define HAVE_LAME 1
22342 if test -d /usr/include/lame; then
22343 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
22345 if test -d /usr/local/include/lame; then
22346 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
22350 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
22351 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
22352 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22355 ac_check_lib_save_LIBS=$LIBS
22356 LIBS="-lmp3lame $LIBS"
22357 cat >conftest.$ac_ext <<_ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h. */
22364 /* Override any GCC internal prototype to avoid an error.
22365 Use char because int might match the return type of a GCC
22366 builtin and then its argument prototype would still apply. */
22374 return lame_init ();
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_link") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } &&
22393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22394 { (case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_try") 2>&5
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; } &&
22403 { ac_try='test -s conftest$ac_exeext'
22404 { (case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_try") 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }; }; then
22413 ac_cv_lib_mp3lame_lame_init=yes
22415 echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_lib_mp3lame_lame_init=no
22421 rm -f core conftest.err conftest.$ac_objext \
22422 conftest$ac_exeext conftest.$ac_ext
22423 LIBS=$ac_check_lib_save_LIBS
22425 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
22426 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
22427 if test $ac_cv_lib_mp3lame_lame_init = yes; then
22428 cat >>confdefs.h <<_ACEOF
22429 #define HAVE_LIBMP3LAME 1
22432 LIBS="-lmp3lame $LIBS"
22439 for ac_header in lame.h
22441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 ac_res=`eval echo '${'$as_ac_Header'}'`
22449 { echo "$as_me:$LINENO: result: $ac_res" >&5
22450 echo "${ECHO_T}$ac_res" >&6; }
22452 # Is the header compilable?
22453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22455 cat >conftest.$ac_ext <<_ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 $ac_includes_default
22462 #include <$ac_header>
22464 rm -f conftest.$ac_objext
22465 if { (ac_try="$ac_compile"
22466 case "(($ac_try" in
22467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468 *) ac_try_echo=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_compile") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1 >conftest.err
22475 cat conftest.err >&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } &&
22478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22479 { (case "(($ac_try" in
22480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22481 *) ac_try_echo=$ac_try;;
22483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22484 (eval "$ac_try") 2>&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); }; } &&
22488 { ac_try='test -s conftest.$ac_objext'
22489 { (case "(($ac_try" in
22490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491 *) ac_try_echo=$ac_try;;
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494 (eval "$ac_try") 2>&5
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; }; then
22498 ac_header_compiler=yes
22500 echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22503 ac_header_compiler=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22508 echo "${ECHO_T}$ac_header_compiler" >&6; }
22510 # Is the header present?
22511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 #include <$ac_header>
22521 if { (ac_try="$ac_cpp conftest.$ac_ext"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22529 grep -v '^ *+' conftest.er1 >conftest.err
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } >/dev/null; then
22534 if test -s conftest.err; then
22535 ac_cpp_err=$ac_c_preproc_warn_flag
22536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22543 if test -z "$ac_cpp_err"; then
22544 ac_header_preproc=yes
22546 echo "$as_me: failed program was:" >&5
22547 sed 's/^/| /' conftest.$ac_ext >&5
22549 ac_header_preproc=no
22552 rm -f conftest.err conftest.$ac_ext
22553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22554 echo "${ECHO_T}$ac_header_preproc" >&6; }
22556 # So? What about this header?
22557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22563 ac_header_preproc=yes
22566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22586 eval "$as_ac_Header=\$ac_header_preproc"
22588 ac_res=`eval echo '${'$as_ac_Header'}'`
22589 { echo "$as_me:$LINENO: result: $ac_res" >&5
22590 echo "${ECHO_T}$ac_res" >&6; }
22593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22594 cat >>confdefs.h <<_ACEOF
22595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22602 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_LAME 1
22612 # ------------------------------------------------------------------
22616 for ac_prog in avifile-config
22618 # Extract the first word of "$ac_prog", so it can be a program name with args.
22619 set dummy $ac_prog; ac_word=$2
22620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22622 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22625 if test -n "$AVIFILE_CONFIG"; then
22626 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
22628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629 for as_dir in $PATH
22632 test -z "$as_dir" && as_dir=.
22633 for ac_exec_ext in '' $ac_executable_extensions; do
22634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22635 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
22636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22645 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
22646 if test -n "$AVIFILE_CONFIG"; then
22647 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
22648 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
22650 { echo "$as_me:$LINENO: result: no" >&5
22651 echo "${ECHO_T}no" >&6; }
22655 test -n "$AVIFILE_CONFIG" && break
22659 if test "x$AVIFILE_CONFIG" '!=' "x";then
22660 OLDCPPFLAGS="$CPPFLAGS"
22661 # temporarily add avifile paths to CPPFLAGS...
22662 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
22665 for ac_header in avifile/version.h version.h
22667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22672 echo $ECHO_N "(cached) $ECHO_C" >&6
22674 ac_res=`eval echo '${'$as_ac_Header'}'`
22675 { echo "$as_me:$LINENO: result: $ac_res" >&5
22676 echo "${ECHO_T}$ac_res" >&6; }
22678 # Is the header compilable?
22679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22681 cat >conftest.$ac_ext <<_ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h. */
22687 $ac_includes_default
22688 #include <$ac_header>
22690 rm -f conftest.$ac_objext
22691 if { (ac_try="$ac_compile"
22692 case "(($ac_try" in
22693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694 *) ac_try_echo=$ac_try;;
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697 (eval "$ac_compile") 2>conftest.er1
22699 grep -v '^ *+' conftest.er1 >conftest.err
22701 cat conftest.err >&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
22704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22705 { (case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_try") 2>&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; } &&
22714 { ac_try='test -s conftest.$ac_objext'
22715 { (case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_try") 2>&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_header_compiler=yes
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22729 ac_header_compiler=no
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22734 echo "${ECHO_T}$ac_header_compiler" >&6; }
22736 # Is the header present?
22737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22739 cat >conftest.$ac_ext <<_ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h. */
22745 #include <$ac_header>
22747 if { (ac_try="$ac_cpp conftest.$ac_ext"
22748 case "(($ac_try" in
22749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22750 *) ac_try_echo=$ac_try;;
22752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22755 grep -v '^ *+' conftest.er1 >conftest.err
22757 cat conftest.err >&5
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); } >/dev/null; then
22760 if test -s conftest.err; then
22761 ac_cpp_err=$ac_c_preproc_warn_flag
22762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22769 if test -z "$ac_cpp_err"; then
22770 ac_header_preproc=yes
22772 echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ac_header_preproc=no
22778 rm -f conftest.err conftest.$ac_ext
22779 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22780 echo "${ECHO_T}$ac_header_preproc" >&6; }
22782 # So? What about this header?
22783 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22785 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22786 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22788 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22789 ac_header_preproc=yes
22792 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22793 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22794 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22795 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22796 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22797 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22798 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22799 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22801 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22802 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22803 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 eval "$as_ac_Header=\$ac_header_preproc"
22814 ac_res=`eval echo '${'$as_ac_Header'}'`
22815 { echo "$as_me:$LINENO: result: $ac_res" >&5
22816 echo "${ECHO_T}$ac_res" >&6; }
22819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22820 cat >>confdefs.h <<_ACEOF
22821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22829 CPPFLAGS="$OLDCPPFLAGS"
22832 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
22833 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
22835 if test "x${ac_cv_header_version_h}" '=' "xyes";then
22836 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
22838 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
22839 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
22842 cat > conftest.cpp << EOF
22844 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
22845 // so we have to introduce them this way
22846 $HAVE_VERSION_H_DEFINE
22847 $HAVE_AVIFILE_VERSION_H_DEFINE
22849 #ifdef HAVE_VERSION_H
22850 #include <version.h>
22852 #ifdef HAVE_AVIFILE_VERSION_H
22853 #include <avifile/version.h>
22856 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
22857 #include <avifile.h>
22858 #include <aviplay.h>
22859 #include <avm_fourcc.h>
22860 #include <avm_creators.h>
22861 #include <StreamInfo.h>
22864 #include <avifile.h>
22865 #include <aviplay.h>
22866 #include <aviutil.h>
22867 #define Width width
22868 #define Height height
22875 IAviReadFile* player;
22876 IAviReadStream* astream;
22877 IAviReadStream* vstream;
22878 player = CreateIAviReadFile(0);
22879 astream = player->GetStream(0, AviStream::Audio);
22880 vstream = player->GetStream(0, AviStream::Video);
22881 vstream -> StartStreaming();
22882 astream -> StartStreaming();
22884 MainAVIHeader head;
22885 player->GetFileHeader(&head);
22886 head.dwMicroSecPerFrame;
22887 head.dwTotalFrames;
22891 head.dwMicroSecPerFrame;
22892 astream->GetEndPos(),
22893 astream->GetEndTime());
22894 player->StreamCount();
22896 StreamInfo*audioinfo;
22897 StreamInfo*videoinfo;
22898 audioinfo = astream->GetStreamInfo();
22899 videoinfo = vstream->GetStreamInfo();
22900 videoinfo->GetVideoWidth();
22901 videoinfo->GetVideoHeight();
22902 audioinfo->GetAudioSamplesPerSec();
22903 videoinfo->GetFps();
22905 CImage*img = vstream->GetFrame();
22912 astream->GetAudioFormatInfo(&wave,0);
22914 astream->ReadFrames(0,0,0,a,b);
22916 int main (int argc, char*argv)
22922 if test "x$AVIFILE_CONFIG" '!=' "x";then
22923 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
22924 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
22925 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
22926 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
22927 { echo "$as_me:$LINENO: result: yes" >&5
22928 echo "${ECHO_T}yes" >&6; }
22931 cat >>confdefs.h <<_ACEOF
22932 #define AVIFILE true
22936 echo "configure: failed program was:" >&5
22937 cat conftest.cpp >&5
22938 { echo "$as_me:$LINENO: result: no" >&5
22939 echo "${ECHO_T}no" >&6; }
22942 { echo "$as_me:$LINENO: result: no" >&5
22943 echo "${ECHO_T}no" >&6; }
22947 if test "x${AVIFILE}" = "xtrue"; then
22948 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
22949 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
22950 cat >>confdefs.h <<_ACEOF
22951 #define HAVE_AVIFILE 1
22956 if test "x${WIN32}" != "x"; then
22957 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
22958 #if test "x${AVIFIL32}" != "x"; then
22959 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22961 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
22967 # ------------------------------------------------------------------
22969 if test "x${UNCOMPRESS}" = "xgzip"; then
22970 cat >>confdefs.h <<_ACEOF
22977 # ------------------------------------------------------------------
22980 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
22981 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
22983 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
22986 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
22987 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
22989 # iterate through version 2.2 to 2.4
22992 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
22994 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
22995 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
22997 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
22998 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
23000 PYTHON_LIB="-framework Python"
23001 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
23002 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
23004 PYTHON_LIB2="$PYTHON_LIB"
23006 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
23008 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
23009 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
23010 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
23012 -a -f "/sw/include/python2.$v/Python.h" \
23013 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
23015 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
23016 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
23021 if test "x$PY_VERSION" "!=" "x"; then
23022 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
23023 echo "${ECHO_T}$PY_VERSION" >&6; }
23024 export PYTHON_INCLUDES PYTHON_LIB
23027 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
23028 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
23030 cat > conftest.c << EOF
23031 #include <Python.h>
23032 #include <Imaging.h>
23037 ret = Py_Main(0, 0);
23038 int x; // check also for gcc 2.95.x incompatibilities
23042 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
23043 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23044 { echo "$as_me:$LINENO: result: yes" >&5
23045 echo "${ECHO_T}yes" >&6; }
23048 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
23049 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23050 { echo "$as_me:$LINENO: result: yes" >&5
23051 echo "${ECHO_T}yes" >&6; }
23052 PYTHON_LIB="${PYTHON_LIB2}"
23055 echo "configure: failed program was:" >&5
23057 { echo "$as_me:$LINENO: result: no" >&5
23058 echo "${ECHO_T}no" >&6; }
23063 { echo "$as_me:$LINENO: result: nope" >&5
23064 echo "${ECHO_T}nope" >&6; }
23068 if test "x$PYTHON_OK" '!=' "xyes";then
23069 echo all install uninstall clean: > lib/python/Makefile
23070 # fail silently- the most users won't have any need for the
23071 # python interface anyway
23073 pythonrfxswf="lib/python/Makefile"
23076 # ------------------------------------------------------------------
23078 { echo "$as_me:$LINENO: checking for missing libraries" >&5
23079 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
23081 if test "x$ZLIBMISSING" = "xtrue";then
23082 MISSINGLIBS="${MISSINGLIBS} zlib"
23083 DISABLEPNG2SWF=true
23086 if test "x$JPEGLIBMISSING" = "xtrue";then
23087 MISSINGLIBS="${MISSINGLIBS} jpeglib"
23088 DISABLEPDF2SWF=true
23089 DISABLEJPEG2SWF=true
23092 if test "x$T1LIBMISSING" = "xtrue";then
23093 MISSINGLIBS="${MISSINGLIBS} t1lib"
23095 if test "x$UNGIFMISSING" = "xtrue";then
23096 DISABLEGIF2SWF=true
23097 MISSINGLIBS="${MISSINGLIBS} ungif"
23101 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
23102 DISABLEPDF2SWF=true;
23103 DISABLEJPEG2SWF=true;
23104 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
23107 if test "x$HAVE_FREETYPE" '!=' "x1"; then
23108 DISABLEPDF2SWF=true;
23109 MISSINGLIBS="${MISSINGLIBS} freetype"
23112 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
23113 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
23115 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
23116 DISABLEGIF2SWF=true
23117 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
23120 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
23121 DISABLEPNG2SWF=true;
23122 MISSINGLIBS="${MISSINGLIBS} zlib.h"
23125 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
23126 MISSINGLIBS="${MISSINGLIBS} avifile"
23130 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
23131 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
23133 # ------------------------------------------------------------------
23135 if test "x${MISSINGLIBS}" '!=' "x"; then
23136 echo "***************************************************"
23137 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
23140 avi2swf="avi2swf/Makefile"
23141 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
23142 echo "* Disabling avi2swf tool..."
23143 echo all install uninstall clean: > avi2swf/Makefile
23147 pdf2swf_makefile="lib/pdf/Makefile"
23148 PDF2SWF='pdf2swf$(E)'
23149 LIBPDF='libpdf$(A)'
23151 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
23152 echo "* Disabling pdf2swf tool..."
23153 rm -f lib/pdf/Makefile
23154 echo all install uninstall clean: > lib/pdf/Makefile
23155 pdf2swf_makefile=""
23162 if test "x${ZLIBMISSING}" = "xtrue"; then
23164 echo "* Warning! Without zlib, you will not be able to read"
23165 echo "* or write compressed Flash MX files!"
23168 JPEG2SWF='jpeg2swf$(E)'
23169 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
23170 echo "* Disabling jpeg2swf tool..."
23176 GIF2SWF='gif2swf$(E)'
23177 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
23178 echo "* Disabling gif2swf tool..."
23184 PNG2SWF='png2swf$(E)'
23185 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
23186 echo "* Disabling png2swf tool..."
23192 if test "x${MISSINGLIBS}" '!=' "x"; then
23193 if test "x${PARTIAL}" '=' "x"; then
23194 echo "* (never mind)"
23196 echo "***************************************************"
23199 # ------------------------------------------------------------------
23201 if test -f "release.in"; then release_in="./release"; fi
23202 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
23204 ac_config_files="$ac_config_files ${FILES}"
23206 cat >confcache <<\_ACEOF
23207 # This file is a shell script that caches the results of configure
23208 # tests run on this system so they can be shared between configure
23209 # scripts and configure runs, see configure's option --config-cache.
23210 # It is not useful on other systems. If it contains results you don't
23211 # want to keep, you may remove or edit it.
23213 # config.status only pays attention to the cache file if you give it
23214 # the --recheck option to rerun configure.
23216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23218 # following values.
23222 # The following way of writing the cache mishandles newlines in values,
23223 # but we know of no workaround that is simple, portable, and efficient.
23224 # So, we kill variables containing newlines.
23225 # Ultrix sh set writes to stderr and can't be redirected directly,
23226 # and sets the high bit in the cache file unless we assign to the vars.
23228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23229 eval ac_val=\$$ac_var
23233 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23234 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23237 _ | IFS | as_nl) ;; #(
23238 *) $as_unset $ac_var ;;
23244 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23245 *${as_nl}ac_space=\ *)
23246 # `set' does not quote correctly, so add quotes (double-quote
23247 # substitution turns \\\\ into \\, and sed turns \\ into \).
23250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23253 # `set' quotes correctly as required by POSIX, so do not add quotes.
23254 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23263 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23265 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23267 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23268 if test -w "$cache_file"; then
23269 test "x$cache_file" != "x/dev/null" &&
23270 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23271 echo "$as_me: updating cache $cache_file" >&6;}
23272 cat confcache >$cache_file
23274 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23275 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23281 # Let make expand exec_prefix.
23282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23284 DEFS=-DHAVE_CONFIG_H
23288 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23289 # 1. Remove the extension, and $U if already installed.
23290 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23291 ac_i=`echo "$ac_i" | sed "$ac_script"`
23292 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23293 # will be set to the directory where LIBOBJS objects are built.
23294 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23295 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23297 LIBOBJS=$ac_libobjs
23299 LTLIBOBJS=$ac_ltlibobjs
23303 : ${CONFIG_STATUS=./config.status}
23304 ac_clean_files_save=$ac_clean_files
23305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23306 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23307 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23308 cat >$CONFIG_STATUS <<_ACEOF
23310 # Generated by $as_me.
23311 # Run this file to recreate the current configuration.
23312 # Compiler output produced by configure, useful for debugging
23313 # configure, is in config.log if it exists.
23316 ac_cs_recheck=false
23318 SHELL=\${CONFIG_SHELL-$SHELL}
23321 cat >>$CONFIG_STATUS <<\_ACEOF
23322 ## --------------------- ##
23323 ## M4sh Initialization. ##
23324 ## --------------------- ##
23326 # Be Bourne compatible
23327 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23330 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23331 # is contrary to our usage. Disable this feature.
23332 alias -g '${1+"$@"}'='"$@"'
23333 setopt NO_GLOB_SUBST
23335 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23337 BIN_SH=xpg4; export BIN_SH # for Tru64
23338 DUALCASE=1; export DUALCASE # for MKS sh
23342 # Avoid depending upon Character Ranges.
23343 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23344 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23345 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23346 as_cr_digits='0123456789'
23347 as_cr_alnum=$as_cr_Letters$as_cr_digits
23349 # The user is always right.
23350 if test "${PATH_SEPARATOR+set}" != set; then
23351 echo "#! /bin/sh" >conf$$.sh
23352 echo "exit 0" >>conf$$.sh
23354 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23362 # Support unset when possible.
23363 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23371 # We need space, tab and new line, in precisely that order. Quoting is
23372 # there to prevent editors from complaining about space-tab.
23373 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23374 # splitting by setting IFS to empty value.)
23379 # Find who we are. Look in the path if we contain no directory separator.
23381 *[\\/]* ) as_myself=$0 ;;
23382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23383 for as_dir in $PATH
23386 test -z "$as_dir" && as_dir=.
23387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23393 # We did not find ourselves, most probably we were run as `sh COMMAND'
23394 # in which case we are not to be found in the path.
23395 if test "x$as_myself" = x; then
23398 if test ! -f "$as_myself"; then
23399 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23400 { (exit 1); exit 1; }
23403 # Work around bugs in pre-3.0 UWIN ksh.
23404 for as_var in ENV MAIL MAILPATH
23405 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23413 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23414 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23415 LC_TELEPHONE LC_TIME
23417 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23418 eval $as_var=C; export $as_var
23420 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23424 # Required to use basename.
23425 if expr a : '\(a\)' >/dev/null 2>&1 &&
23426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23433 as_basename=basename
23439 # Name of the executable.
23440 as_me=`$as_basename -- "$0" ||
23441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23442 X"$0" : 'X\(//\)$' \| \
23443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23445 sed '/^.*\/\([^/][^/]*\)\/*$/{
23464 as_lineno_1=$LINENO
23465 as_lineno_2=$LINENO
23466 test "x$as_lineno_1" != "x$as_lineno_2" &&
23467 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23469 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23470 # uniformly replaced by the line number. The first 'sed' inserts a
23471 # line-number line after each line using $LINENO; the second 'sed'
23472 # does the real work. The second script uses 'N' to pair each
23473 # line-number line with the line containing $LINENO, and appends
23474 # trailing '-' during substitution so that $LINENO is not a special
23475 # case at line end.
23476 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23477 # scripts with optimization help from Paolo Bonzini. Blame Lee
23478 # E. McMahon (1931-1989) for sed's syntax. :-)
23490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23493 ' >$as_me.lineno &&
23494 chmod +x "$as_me.lineno" ||
23495 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23496 { (exit 1); exit 1; }; }
23498 # Don't try to exec as it changes $[0], causing all sort of problems
23499 # (the dirname of $[0] is not the place where we might find the
23500 # original and so on. Autoconf is especially sensitive to this).
23501 . "./$as_me.lineno"
23502 # Exit status is that of the last command.
23507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23513 ECHO_C= ECHO_N= ECHO_T=
23514 case `echo -n x` in
23516 case `echo 'x\c'` in
23517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23524 if expr a : '\(a\)' >/dev/null 2>&1 &&
23525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23531 rm -f conf$$ conf$$.exe conf$$.file
23532 if test -d conf$$.dir; then
23533 rm -f conf$$.dir/conf$$.file
23539 if ln -s conf$$.file conf$$ 2>/dev/null; then
23541 # ... but there are two gotchas:
23542 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23543 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23544 # In both cases, we have to default to `cp -p'.
23545 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23547 elif ln conf$$.file conf$$ 2>/dev/null; then
23552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23553 rmdir conf$$.dir 2>/dev/null
23555 if mkdir -p . 2>/dev/null; then
23558 test -d ./-p && rmdir ./-p
23562 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23563 # systems may use methods other than mode bits to determine executability.
23564 cat >conf$$.file <<_ASEOF
23568 chmod +x conf$$.file
23569 if test -x conf$$.file >/dev/null 2>&1; then
23570 as_executable_p="test -x"
23576 # Sed expression to map a string onto a valid CPP name.
23577 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23579 # Sed expression to map a string onto a valid variable name.
23580 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23585 # Save the log message, to keep $[0] and so on meaningful, and to
23586 # report actual input values of CONFIG_FILES etc. instead of their
23587 # values after options handling.
23589 This file was extended by $as_me, which was
23590 generated by GNU Autoconf 2.60. Invocation command line was
23592 CONFIG_FILES = $CONFIG_FILES
23593 CONFIG_HEADERS = $CONFIG_HEADERS
23594 CONFIG_LINKS = $CONFIG_LINKS
23595 CONFIG_COMMANDS = $CONFIG_COMMANDS
23598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23603 cat >>$CONFIG_STATUS <<_ACEOF
23604 # Files that config.status was made for.
23605 config_files="$ac_config_files"
23606 config_headers="$ac_config_headers"
23610 cat >>$CONFIG_STATUS <<\_ACEOF
23612 \`$as_me' instantiates files from templates according to the
23613 current configuration.
23615 Usage: $0 [OPTIONS] [FILE]...
23617 -h, --help print this help, then exit
23618 -V, --version print version number, then exit
23619 -q, --quiet do not print progress messages
23620 -d, --debug don't remove temporary files
23621 --recheck update $as_me by reconfiguring in the same conditions
23622 --file=FILE[:TEMPLATE]
23623 instantiate the configuration file FILE
23624 --header=FILE[:TEMPLATE]
23625 instantiate the configuration header FILE
23627 Configuration files:
23630 Configuration headers:
23633 Report bugs to <bug-autoconf@gnu.org>."
23636 cat >>$CONFIG_STATUS <<_ACEOF
23639 configured by $0, generated by GNU Autoconf 2.60,
23640 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23642 Copyright (C) 2006 Free Software Foundation, Inc.
23643 This config.status script is free software; the Free Software Foundation
23644 gives unlimited permission to copy, distribute and modify it."
23651 cat >>$CONFIG_STATUS <<\_ACEOF
23652 # If no file are specified by the user, then we need to provide default
23653 # value. By we need to know if files were specified by the user.
23659 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23660 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23671 # Handling of the options.
23672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23674 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23675 echo "$ac_cs_version"; exit ;;
23676 --debug | --debu | --deb | --de | --d | -d )
23678 --file | --fil | --fi | --f )
23680 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23681 ac_need_defaults=false;;
23682 --header | --heade | --head | --hea )
23684 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23685 ac_need_defaults=false;;
23687 # Conflict between --help and --header
23688 { echo "$as_me: error: ambiguous option: $1
23689 Try \`$0 --help' for more information." >&2
23690 { (exit 1); exit 1; }; };;
23691 --help | --hel | -h )
23692 echo "$ac_cs_usage"; exit ;;
23693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23697 # This is an error.
23698 -*) { echo "$as_me: error: unrecognized option: $1
23699 Try \`$0 --help' for more information." >&2
23700 { (exit 1); exit 1; }; } ;;
23702 *) ac_config_targets="$ac_config_targets $1"
23703 ac_need_defaults=false ;;
23709 ac_configure_extra_args=
23711 if $ac_cs_silent; then
23713 ac_configure_extra_args="$ac_configure_extra_args --silent"
23717 cat >>$CONFIG_STATUS <<_ACEOF
23718 if \$ac_cs_recheck; then
23719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23720 CONFIG_SHELL=$SHELL
23721 export CONFIG_SHELL
23722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23726 cat >>$CONFIG_STATUS <<\_ACEOF
23730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23731 ## Running $as_me. ##
23737 cat >>$CONFIG_STATUS <<_ACEOF
23740 cat >>$CONFIG_STATUS <<\_ACEOF
23742 # Handling of arguments.
23743 for ac_config_target in $ac_config_targets
23745 case $ac_config_target in
23746 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23747 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
23749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23750 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23751 { (exit 1); exit 1; }; };;
23756 # If the user did not use the arguments to specify the items to instantiate,
23757 # then the envvar interface is used. Set only those that are not.
23758 # We use the long form for the default assignment because of an extremely
23759 # bizarre bug on SunOS 4.1.3.
23760 if $ac_need_defaults; then
23761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23765 # Have a temporary directory for convenience. Make it in the build tree
23766 # simply because there is no reason against having it here, and in addition,
23767 # creating and moving files from /tmp can sometimes cause problems.
23768 # Hook for its removal unless debugging.
23769 # Note that there is a small window in which the directory will not be cleaned:
23770 # after its creation but before its name has been assigned to `$tmp'.
23774 trap 'exit_status=$?
23775 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23777 trap '{ (exit 1); exit 1; }' 1 2 13 15
23779 # Create a (secure) tmp directory for tmp files.
23782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23783 test -n "$tmp" && test -d "$tmp"
23786 tmp=./conf$$-$RANDOM
23787 (umask 077 && mkdir "$tmp")
23790 echo "$me: cannot create a temporary directory in ." >&2
23791 { (exit 1); exit 1; }
23795 # Set up the sed scripts for CONFIG_FILES section.
23798 # No need to generate the scripts if there are no CONFIG_FILES.
23799 # This happens for instance when ./config.status config.h
23800 if test -n "$CONFIG_FILES"; then
23807 for ac_last_try in false false false false false :; do
23808 cat >conf$$subs.sed <<_ACEOF
23809 SHELL!$SHELL$ac_delim
23810 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23811 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23812 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23813 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23814 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23815 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23816 exec_prefix!$exec_prefix$ac_delim
23817 prefix!$prefix$ac_delim
23818 program_transform_name!$program_transform_name$ac_delim
23819 bindir!$bindir$ac_delim
23820 sbindir!$sbindir$ac_delim
23821 libexecdir!$libexecdir$ac_delim
23822 datarootdir!$datarootdir$ac_delim
23823 datadir!$datadir$ac_delim
23824 sysconfdir!$sysconfdir$ac_delim
23825 sharedstatedir!$sharedstatedir$ac_delim
23826 localstatedir!$localstatedir$ac_delim
23827 includedir!$includedir$ac_delim
23828 oldincludedir!$oldincludedir$ac_delim
23829 docdir!$docdir$ac_delim
23830 infodir!$infodir$ac_delim
23831 htmldir!$htmldir$ac_delim
23832 dvidir!$dvidir$ac_delim
23833 pdfdir!$pdfdir$ac_delim
23834 psdir!$psdir$ac_delim
23835 libdir!$libdir$ac_delim
23836 localedir!$localedir$ac_delim
23837 mandir!$mandir$ac_delim
23838 DEFS!$DEFS$ac_delim
23839 ECHO_C!$ECHO_C$ac_delim
23840 ECHO_N!$ECHO_N$ac_delim
23841 ECHO_T!$ECHO_T$ac_delim
23842 LIBS!$LIBS$ac_delim
23843 build_alias!$build_alias$ac_delim
23844 host_alias!$host_alias$ac_delim
23845 target_alias!$target_alias$ac_delim
23846 build!$build$ac_delim
23847 build_cpu!$build_cpu$ac_delim
23848 build_vendor!$build_vendor$ac_delim
23849 build_os!$build_os$ac_delim
23850 host!$host$ac_delim
23851 host_cpu!$host_cpu$ac_delim
23852 host_vendor!$host_vendor$ac_delim
23853 host_os!$host_os$ac_delim
23854 SHARED!$SHARED$ac_delim
23856 CFLAGS!$CFLAGS$ac_delim
23857 LDFLAGS!$LDFLAGS$ac_delim
23858 CPPFLAGS!$CPPFLAGS$ac_delim
23859 ac_ct_CC!$ac_ct_CC$ac_delim
23860 EXEEXT!$EXEEXT$ac_delim
23861 OBJEXT!$OBJEXT$ac_delim
23863 CXXFLAGS!$CXXFLAGS$ac_delim
23864 ac_ct_CXX!$ac_ct_CXX$ac_delim
23866 RANLIB!$RANLIB$ac_delim
23867 SET_MAKE!$SET_MAKE$ac_delim
23868 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23869 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23870 INSTALL_DATA!$INSTALL_DATA$ac_delim
23871 LN_S!$LN_S$ac_delim
23872 GREP!$GREP$ac_delim
23873 EGREP!$EGREP$ac_delim
23874 ECHO!$ECHO$ac_delim
23876 STRIP!$STRIP$ac_delim
23877 CXXCPP!$CXXCPP$ac_delim
23879 FFLAGS!$FFLAGS$ac_delim
23880 ac_ct_F77!$ac_ct_F77$ac_delim
23881 LIBTOOL!$LIBTOOL$ac_delim
23882 UNCOMPRESS!$UNCOMPRESS$ac_delim
23883 AREXT!$AREXT$ac_delim
23884 SLEXT!$SLEXT$ac_delim
23885 CXXLIBS!$CXXLIBS$ac_delim
23886 target!$target$ac_delim
23887 target_cpu!$target_cpu$ac_delim
23888 target_vendor!$target_vendor$ac_delim
23889 target_os!$target_os$ac_delim
23890 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
23891 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
23892 PACKAGE!$PACKAGE$ac_delim
23893 VERSION!$VERSION$ac_delim
23894 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
23895 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
23896 lame_objects!$lame_objects$ac_delim
23897 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
23898 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
23899 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
23900 USE_GZIP!$USE_GZIP$ac_delim
23901 PYTHON_LIB!$PYTHON_LIB$ac_delim
23902 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
23903 PDF2SWF!$PDF2SWF$ac_delim
23904 LIBPDF!$LIBPDF$ac_delim
23905 JPEG2SWF!$JPEG2SWF$ac_delim
23908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23910 elif $ac_last_try; then
23911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23912 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23913 { (exit 1); exit 1; }; }
23915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23919 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23920 if test -n "$ac_eof"; then
23921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23922 ac_eof=`expr $ac_eof + 1`
23925 cat >>$CONFIG_STATUS <<_ACEOF
23926 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23927 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23930 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23931 s/^/s,@/; s/!/@,|#_!!_#|/
23934 s/'"$ac_delim"'$/,g/; t
23936 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23937 ' >>$CONFIG_STATUS <conf$$subs.sed
23938 rm -f conf$$subs.sed
23939 cat >>$CONFIG_STATUS <<_ACEOF
23945 for ac_last_try in false false false false false :; do
23946 cat >conf$$subs.sed <<_ACEOF
23947 GIF2SWF!$GIF2SWF$ac_delim
23948 PNG2SWF!$PNG2SWF$ac_delim
23949 LIBOBJS!$LIBOBJS$ac_delim
23950 LTLIBOBJS!$LTLIBOBJS$ac_delim
23953 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
23955 elif $ac_last_try; then
23956 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23957 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23958 { (exit 1); exit 1; }; }
23960 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23964 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23965 if test -n "$ac_eof"; then
23966 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23967 ac_eof=`expr $ac_eof + 1`
23970 cat >>$CONFIG_STATUS <<_ACEOF
23971 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23972 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23975 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23976 s/^/s,@/; s/!/@,|#_!!_#|/
23979 s/'"$ac_delim"'$/,g/; t
23981 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23982 ' >>$CONFIG_STATUS <conf$$subs.sed
23983 rm -f conf$$subs.sed
23984 cat >>$CONFIG_STATUS <<_ACEOF
23991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23993 # trailing colons and then remove the whole line if VPATH becomes empty
23994 # (actually we leave an empty line to preserve line numbers).
23995 if test "x$srcdir" = x.; then
23996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23997 s/:*\$(srcdir):*/:/
23998 s/:*\${srcdir}:*/:/
24000 s/^\([^=]*=[ ]*\):*/\1/
24006 cat >>$CONFIG_STATUS <<\_ACEOF
24007 fi # test -n "$CONFIG_FILES"
24010 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24013 :[FHLC]) ac_mode=$ac_tag; continue;;
24015 case $ac_mode$ac_tag in
24017 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24018 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24019 { (exit 1); exit 1; }; };;
24020 :[FH]-) ac_tag=-:-;;
24021 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24038 -) ac_f="$tmp/stdin";;
24039 *) # Look for the file first in the build tree, then in the source tree
24040 # (if the path is not absolute). The absolute path cannot be DOS-style,
24041 # because $ac_f cannot contain `:'.
24045 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24047 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24048 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24049 { (exit 1); exit 1; }; };;
24051 ac_file_inputs="$ac_file_inputs $ac_f"
24054 # Let's still pretend it is `configure' which instantiates (i.e., don't
24055 # use $as_me), people would be surprised to read:
24056 # /* config.h. Generated by config.status. */
24057 configure_input="Generated from "`IFS=:
24058 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24059 if test x"$ac_file" != x-; then
24060 configure_input="$ac_file. $configure_input"
24061 { echo "$as_me:$LINENO: creating $ac_file" >&5
24062 echo "$as_me: creating $ac_file" >&6;}
24066 *:-:* | *:-) cat >"$tmp/stdin";;
24071 ac_dir=`$as_dirname -- "$ac_file" ||
24072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24073 X"$ac_file" : 'X\(//\)[^/]' \| \
24074 X"$ac_file" : 'X\(//\)$' \| \
24075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24081 /^X\(\/\/\)[^/].*/{
24096 -*) as_dir=./$as_dir;;
24098 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24102 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24103 *) as_qdir=$as_dir;;
24105 as_dirs="'$as_qdir' $as_dirs"
24106 as_dir=`$as_dirname -- "$as_dir" ||
24107 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24108 X"$as_dir" : 'X\(//\)[^/]' \| \
24109 X"$as_dir" : 'X\(//\)$' \| \
24110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24116 /^X\(\/\/\)[^/].*/{
24129 test -d "$as_dir" && break
24131 test -z "$as_dirs" || eval "mkdir $as_dirs"
24132 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24133 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24134 { (exit 1); exit 1; }; }; }
24138 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24140 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24141 # A ".." for each directory in $ac_dir_suffix.
24142 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24143 case $ac_top_builddir_sub in
24144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24148 ac_abs_top_builddir=$ac_pwd
24149 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24150 # for backward compatibility:
24151 ac_top_builddir=$ac_top_build_prefix
24154 .) # We are building in place.
24156 ac_top_srcdir=$ac_top_builddir_sub
24157 ac_abs_top_srcdir=$ac_pwd ;;
24158 [\\/]* | ?:[\\/]* ) # Absolute name.
24159 ac_srcdir=$srcdir$ac_dir_suffix;
24160 ac_top_srcdir=$srcdir
24161 ac_abs_top_srcdir=$srcdir ;;
24162 *) # Relative name.
24163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24164 ac_top_srcdir=$ac_top_build_prefix$srcdir
24165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24167 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24182 cat >>$CONFIG_STATUS <<\_ACEOF
24183 # If the template does not know about datarootdir, expand it.
24184 # FIXME: This hack should be removed a few years after 2.60.
24185 ac_datarootdir_hack=; ac_datarootdir_seen=
24187 case `sed -n '/datarootdir/ {
24196 ' $ac_file_inputs` in
24197 *datarootdir*) ac_datarootdir_seen=yes;;
24198 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24199 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24200 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24202 cat >>$CONFIG_STATUS <<_ACEOF
24203 ac_datarootdir_hack='
24204 s&@datadir@&$datadir&g
24205 s&@docdir@&$docdir&g
24206 s&@infodir@&$infodir&g
24207 s&@localedir@&$localedir&g
24208 s&@mandir@&$mandir&g
24209 s&\\\${datarootdir}&$datarootdir&g' ;;
24213 # Neutralize VPATH when `$srcdir' = `.'.
24214 # Shell code in configure.ac might set extrasub.
24215 # FIXME: do we really want to maintain this feature?
24216 cat >>$CONFIG_STATUS <<_ACEOF
24220 cat >>$CONFIG_STATUS <<\_ACEOF
24222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24223 s&@configure_input@&$configure_input&;t t
24224 s&@top_builddir@&$ac_top_builddir_sub&;t t
24225 s&@srcdir@&$ac_srcdir&;t t
24226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24227 s&@top_srcdir@&$ac_top_srcdir&;t t
24228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24229 s&@builddir@&$ac_builddir&;t t
24230 s&@abs_builddir@&$ac_abs_builddir&;t t
24231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24232 s&@INSTALL@&$ac_INSTALL&;t t
24233 $ac_datarootdir_hack
24234 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24236 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24237 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24238 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24239 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24240 which seems to be undefined. Please make sure it is defined." >&5
24241 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24242 which seems to be undefined. Please make sure it is defined." >&2;}
24246 -) cat "$tmp/out"; rm -f "$tmp/out";;
24247 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24256 # Transform confdefs.h into a sed script `conftest.defines', that
24257 # substitutes the proper values into config.h.in to produce config.h.
24258 rm -f conftest.defines conftest.tail
24259 # First, append a space to every undef/define line, to ease matching.
24260 echo 's/$/ /' >conftest.defines
24261 # Then, protect against being on the right side of a sed subst, or in
24262 # an unquoted here document, in config.status. If some macros were
24263 # called several times there might be several #defines for the same
24264 # symbol, which is useless. But do not sort them, since the last
24265 # AC_DEFINE must be honored.
24266 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24267 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24268 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24269 # PARAMS is the parameter list in the macro definition--in most cases, it's
24270 # just an empty string.
24271 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24272 ac_dB='\\)[ (].*,\\1define\\2'
24280 s/^[ ]*#[ ]*define[ ][ ]*//
24285 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24286 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24287 ' >>conftest.defines
24289 # Remove the space that was appended to ease matching.
24290 # Then replace #undef with comments. This is necessary, for
24291 # example, in the case of _POSIX_SOURCE, which is predefined and required
24292 # on some systems where configure will not decide to define it.
24293 # (The regexp can be short, since the line contains either #define or #undef.)
24295 s,^[ #]*u.*,/* & */,' >>conftest.defines
24297 # Break up conftest.defines:
24298 ac_max_sed_lines=50
24300 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24301 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24302 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24304 ac_in='$ac_file_inputs'
24305 ac_out='"$tmp/out1"'
24306 ac_nxt='"$tmp/out2"'
24310 # Write a here document:
24311 cat >>$CONFIG_STATUS <<_ACEOF
24312 # First, check the format of the line:
24313 cat >"\$tmp/defines.sed" <<\\CEOF
24314 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24315 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24319 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24321 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24322 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24323 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24324 grep . conftest.tail >/dev/null || break
24325 rm -f conftest.defines
24326 mv conftest.tail conftest.defines
24328 rm -f conftest.defines conftest.tail
24330 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24331 cat >>$CONFIG_STATUS <<\_ACEOF
24332 if test x"$ac_file" != x-; then
24333 echo "/* $configure_input */" >"$tmp/config.h"
24334 cat "$ac_result" >>"$tmp/config.h"
24335 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24336 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24337 echo "$as_me: $ac_file is unchanged" >&6;}
24340 mv "$tmp/config.h" $ac_file
24343 echo "/* $configure_input */"
24355 { (exit 0); exit 0; }
24357 chmod +x $CONFIG_STATUS
24358 ac_clean_files=$ac_clean_files_save
24361 # configure is writing to config.log, and then calls config.status.
24362 # config.status does its own redirection, appending to config.log.
24363 # Unfortunately, on DOS this fails, as config.log is still kept open
24364 # by configure, so config.status won't be able to write to it; its
24365 # output is simply discarded. So we exec the FD to /dev/null,
24366 # effectively closing config.log, so it can be properly (re)opened and
24367 # appended to by config.status. When coming back to configure, we
24368 # need to make the FD available again.
24369 if test "$no_create" != yes; then
24371 ac_config_status_args=
24372 test "$silent" = yes &&
24373 ac_config_status_args="$ac_config_status_args --quiet"
24375 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24377 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24378 # would make configure fail if this is the last instruction.
24379 $ac_cs_success || { (exit 1); exit 1; }
24385 # On development trees, create snapshots of config.status
24387 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
24388 if test "x${MINGW}" = "xyes"; then
24389 echo cp config.status config.status.win32
24390 cp config.status config.status.win32
24392 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
24393 echo cp config.status config.status.linux
24394 cp config.status config.status.linux
24396 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
24397 echo cp config.status config.status.debug
24398 cp config.status config.status.debug
24400 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
24401 echo cp config.status config.status.optimize
24402 cp config.status config.status.optimize