2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61 for yandex-fotki-sharing-plugin 0.1.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='yandex-fotki-sharing-plugin'
728 PACKAGE_TARNAME='yandex-fotki-sharing-plugin'
729 PACKAGE_VERSION='0.1'
730 PACKAGE_STRING='yandex-fotki-sharing-plugin 0.1'
733 # Factoring default headers for most tests.
734 ac_includes_default="\
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
746 # ifdef HAVE_STDLIB_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
778 program_transform_name
820 INSTALL_STRIP_PROGRAM
826 MAINTAINER_MODE_FALSE
890 ac_precious_vars='build_alias
916 # Initialize some variables set by options.
918 ac_init_version=false
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
928 program_transform_name=s,x,x,
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir='${exec_prefix}/bin'
943 sbindir='${exec_prefix}/sbin'
944 libexecdir='${exec_prefix}/libexec'
945 datarootdir='${prefix}/share'
946 datadir='${datarootdir}'
947 sysconfdir='${prefix}/etc'
948 sharedstatedir='${prefix}/com'
949 localstatedir='${prefix}/var'
950 includedir='${prefix}/include'
951 oldincludedir='/usr/include'
952 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953 infodir='${datarootdir}/info'
958 libdir='${exec_prefix}/lib'
959 localedir='${datarootdir}/locale'
960 mandir='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\$ac_option
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978 # Accept the important Cygnus configure options, so we can diagnose typos.
980 case $ac_dashdash$ac_option in
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
989 -build | --build | --buil | --bui | --bu)
990 ac_prev=build_alias ;;
991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992 build_alias=$ac_optarg ;;
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999 cache_file=$ac_optarg ;;
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
1004 -datadir | --datadir | --datadi | --datad)
1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007 datadir=$ac_optarg ;;
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1016 -disable-* | --disable-*)
1017 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018 # Reject names that are not valid shell variable names.
1019 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021 { (exit 1); exit 1; }; }
1022 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023 eval enable_$ac_feature=no ;;
1025 -docdir | --docdir | --docdi | --doc | --do)
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1035 -enable-* | --enable-*)
1036 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042 eval enable_$ac_feature=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1206 -site=* | --site=* | --sit=*)
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1233 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=\$ac_optarg ;;
1241 -without-* | --without-*)
1242 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 { echo "$as_me: error: invalid package name: $ac_package" >&2
1246 { (exit 1); exit 1; }; }
1247 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248 eval with_$ac_package=no ;;
1251 # Obsolete; use --with-x.
1254 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255 | --x-incl | --x-inc | --x-in | --x-i)
1256 ac_prev=x_includes ;;
1257 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259 x_includes=$ac_optarg ;;
1261 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263 ac_prev=x_libraries ;;
1264 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266 x_libraries=$ac_optarg ;;
1268 -*) { echo "$as_me: error: unrecognized option: $ac_option
1269 Try \`$0 --help' for more information." >&2
1270 { (exit 1); exit 1; }; }
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278 { (exit 1); exit 1; }; }
1279 eval $ac_envvar=\$ac_optarg
1280 export $ac_envvar ;;
1283 # FIXME: should be removed in autoconf 3.0.
1284 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1293 if test -n "$ac_prev"; then
1294 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295 { echo "$as_me: error: missing argument to $ac_option" >&2
1296 { (exit 1); exit 1; }; }
1299 # Be sure to have absolute directory names.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1307 [\\/$]* | ?:[\\/]* ) continue;;
1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311 { (exit 1); exit 1; }; }
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326 If a cross compiler is detected then cross compile mode will be used." >&2
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 { echo "$as_me: error: Working directory cannot be determined" >&2
1342 { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 { echo "$as_me: error: pwd does not report name of working directory" >&2
1345 { (exit 1); exit 1; }; }
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$0" ||
1353 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$0" : 'X\(//\)[^/]' \| \
1355 X"$0" : 'X\(//\)$' \| \
1356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385 { (exit 1); exit 1; }; }
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390 { (exit 1); exit 1; }; }
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures yandex-fotki-sharing-plugin 0.1 to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/yandex-fotki-sharing-plugin@:>@
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --program-prefix=PREFIX prepend PREFIX to installed program names
1475 --program-suffix=SUFFIX append SUFFIX to installed program names
1476 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of yandex-fotki-sharing-plugin 0.1:";;
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-maintainer-mode enable make rules and dependencies not useful
1494 (and sometimes confusing) to the casual installer
1495 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1496 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1497 --disable-dependency-tracking speeds up one-time build
1498 --enable-dependency-tracking do not reject slow dependency extractors
1499 --enable-fast-install@<:@=PKGS@:>@
1500 optimize for fast installation @<:@default=yes@:>@
1501 --disable-libtool-lock avoid locking (might break parallel builds)
1502 --enable-debug Turn on debug messages
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1508 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1510 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1523 CXXCPP C++ preprocessor
1524 F77 Fortran 77 compiler command
1525 FFLAGS Fortran 77 compiler flags
1526 PKG_CONFIG path to pkg-config utility
1528 C compiler flags for PACKAGE, overriding pkg-config
1530 linker flags for PACKAGE, overriding pkg-config
1532 C compiler flags for SHARING, overriding pkg-config
1534 linker flags for SHARING, overriding pkg-config
1535 XML_CFLAGS C compiler flags for XML, overriding pkg-config
1536 XML_LIBS linker flags for XML, overriding pkg-config
1537 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config
1538 CURL_LIBS linker flags for CURL, overriding pkg-config
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" || continue
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1570 .) # We are building in place.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1594 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1603 yandex-fotki-sharing-plugin configure 0.1
1604 generated by GNU Autoconf 2.61
1606 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1607 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1613 cat >config.log <<_ACEOF
1614 This file contains any messages produced by compilers while
1615 running configure, to aid debugging if configure makes a mistake.
1617 It was created by yandex-fotki-sharing-plugin $as_me 0.1, which was
1618 generated by GNU Autoconf 2.61. Invocation command line was
1626 @%:@@%:@ --------- @%:@@%:@
1627 @%:@@%:@ Platform. @%:@@%:@
1628 @%:@@%:@ --------- @%:@@%:@
1630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1639 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1642 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1643 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 echo "PATH: $as_dir"
1663 @%:@@%:@ ----------- @%:@@%:@
1664 @%:@@%:@ Core tests. @%:@@%:@
1665 @%:@@%:@ ----------- @%:@@%:@
1670 # Keep a trace of the command line.
1671 # Strip out --no-create and --no-recursion so they do not pile up.
1672 # Strip out --silent because we don't want to record it for future runs.
1673 # Also quote any args containing shell meta-characters.
1674 # Make two passes to allow for proper duplicate-argument suppression.
1678 ac_must_keep_next=false
1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686 | -silent | --silent | --silen | --sile | --sil)
1689 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695 if test $ac_must_keep_next = true; then
1696 ac_must_keep_next=false # Got value, back to normal.
1699 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702 | -with-* | --with-* | -without-* | --without-* | --x)
1703 case "$ac_configure_args0 " in
1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 -* ) ac_must_keep_next=true ;;
1710 ac_configure_args="$ac_configure_args '$ac_arg'"
1715 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718 # When interrupted or exit'd, cleanup temporary files, and complete
1719 # config.log. We remove comments because anyway the quotes in there
1720 # would cause problems or look ugly.
1721 # WARNING: Use '\'' to represent an apostrophe within the trap.
1722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1723 trap 'exit_status=$?
1724 # Save into config.log some information that might help in debugging.
1729 @%:@@%:@ ---------------- @%:@@%:@
1730 @%:@@%:@ Cache variables. @%:@@%:@
1731 @%:@@%:@ ---------------- @%:@@%:@
1734 # The following way of writing the cache mishandles newlines in values,
1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737 eval ac_val=\$$ac_var
1741 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1742 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1745 _ | IFS | as_nl) ;; #(
1746 *) $as_unset $ac_var ;;
1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
1754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 @%:@@%:@ ----------------- @%:@@%:@
1767 @%:@@%:@ Output variables. @%:@@%:@
1768 @%:@@%:@ ----------------- @%:@@%:@
1771 for ac_var in $ac_subst_vars
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 echo "$ac_var='\''$ac_val'\''"
1781 if test -n "$ac_subst_files"; then
1783 @%:@@%:@ ------------------- @%:@@%:@
1784 @%:@@%:@ File substitutions. @%:@@%:@
1785 @%:@@%:@ ------------------- @%:@@%:@
1788 for ac_var in $ac_subst_files
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 echo "$ac_var='\''$ac_val'\''"
1799 if test -s confdefs.h; then
1801 @%:@@%:@ ----------- @%:@@%:@
1802 @%:@@%:@ confdefs.h. @%:@@%:@
1803 @%:@@%:@ ----------- @%:@@%:@
1809 test "$ac_signal" != 0 &&
1810 echo "$as_me: caught signal $ac_signal"
1811 echo "$as_me: exit $exit_status"
1813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817 for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1825 # Predefined preprocessor variables.
1827 cat >>confdefs.h <<_ACEOF
1828 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1832 cat >>confdefs.h <<_ACEOF
1833 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 cat >>confdefs.h <<_ACEOF
1838 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 cat >>confdefs.h <<_ACEOF
1843 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1847 cat >>confdefs.h <<_ACEOF
1848 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer explicitly selected file to automatically selected ones.
1854 if test -n "$CONFIG_SITE"; then
1855 set x "$CONFIG_SITE"
1856 elif test "x$prefix" != xNONE; then
1857 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859 set x "$ac_default_prefix/share/config.site" \
1860 "$ac_default_prefix/etc/config.site"
1865 if test -r "$ac_site_file"; then
1866 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 echo "$as_me: loading cache $cache_file" >&6;}
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1885 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 echo "$as_me: creating cache $cache_file" >&6;}
1890 # Check that the precious variables saved in the cache have kept the same
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1900 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1904 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1911 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1912 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1913 echo "$as_me: former value: $ac_old_val" >&2;}
1914 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1915 echo "$as_me: current value: $ac_new_val" >&2;}
1916 ac_cache_corrupted=:
1919 # Pass precious variables to config.status.
1920 if test "$ac_new_set" = set; then
1922 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1923 *) ac_arg=$ac_var=$ac_new_val ;;
1925 case " $ac_configure_args " in
1926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1927 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1931 if $ac_cache_corrupted; then
1932 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1933 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1934 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1935 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1936 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 am__api_version="1.8"
1972 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1973 if test -f "$ac_dir/install-sh"; then
1975 ac_install_sh="$ac_aux_dir/install-sh -c"
1977 elif test -f "$ac_dir/install.sh"; then
1979 ac_install_sh="$ac_aux_dir/install.sh -c"
1981 elif test -f "$ac_dir/shtool"; then
1983 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 if test -z "$ac_aux_dir"; then
1988 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1989 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1990 { (exit 1); exit 1; }; }
1993 # These three variables are undocumented and unsupported,
1994 # and are intended to be withdrawn in a future Autoconf release.
1995 # They can cause serious problems if a builder's source tree is in a directory
1996 # whose full name contains unusual characters.
1997 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1998 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1999 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2002 # Find a good install program. We prefer a C program (faster),
2003 # so one script is as good as another. But avoid the broken or
2004 # incompatible versions:
2005 # SysV /etc/install, /usr/sbin/install
2006 # SunOS /usr/etc/install
2007 # IRIX /sbin/install
2009 # AmigaOS /C/install, which installs bootblocks on floppy discs
2010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2013 # OS/2's system install, which has a completely different semantic
2014 # ./install, which can be erroneously created by make from ./install.sh.
2015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2017 if test -z "$INSTALL"; then
2018 if test "${ac_cv_path_install+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 # Account for people who put trailing slashes in PATH elements.
2028 ./ | .// | /cC/* | \
2029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2030 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2033 # OSF1 and SCO ODT 3.0 have their own names for install.
2034 # Don't use installbsd from OSF since it installs stuff as root
2036 for ac_prog in ginstall scoinst install; do
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2039 if test $ac_prog = install &&
2040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2041 # AIX install. It has an incompatible calling convention.
2043 elif test $ac_prog = install &&
2044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2045 # program-specific install script used by HP pwplus--don't use.
2048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2061 if test "${ac_cv_path_install+set}" = set; then
2062 INSTALL=$ac_cv_path_install
2064 # As a last resort, use the slow shell script. Don't cache a
2065 # value for INSTALL within a source directory, because that will
2066 # break other packages using the cache if that directory is
2067 # removed, or if the value is a relative name.
2068 INSTALL=$ac_install_sh
2071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2072 echo "${ECHO_T}$INSTALL" >&6; }
2074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2075 # It thinks the first close brace ends the variable substitution.
2076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2082 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2083 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2086 echo timestamp > conftest.file
2087 # Do `set' in a subshell so we don't clobber the current shell's
2088 # arguments. Must try -L first in case configure is actually a
2089 # symlink; some systems play weird games with the mod time of symlinks
2090 # (eg FreeBSD returns the mod time of the symlink's containing
2093 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2094 if test "$*" = "X"; then
2096 set X `ls -t $srcdir/configure conftest.file`
2099 if test "$*" != "X $srcdir/configure conftest.file" \
2100 && test "$*" != "X conftest.file $srcdir/configure"; then
2102 # If neither matched, then we have a broken ls. This can happen
2103 # if, for instance, CONFIG_SHELL is bash and it inherits a
2104 # broken ls alias from the environment. This has actually
2105 # happened. Such a system could not be considered "sane".
2106 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2107 alias in your environment" >&5
2108 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2109 alias in your environment" >&2;}
2110 { (exit 1); exit 1; }; }
2113 test "$2" = conftest.file
2119 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2120 Check your system clock" >&5
2121 echo "$as_me: error: newly created file is older than distributed files!
2122 Check your system clock" >&2;}
2123 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: result: yes" >&5
2126 echo "${ECHO_T}yes" >&6; }
2127 test "$program_prefix" != NONE &&
2128 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2129 # Use a double $ so make ignores it.
2130 test "$program_suffix" != NONE &&
2131 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2132 # Double any \ or $. echo might interpret backslashes.
2133 # By default was `s,x,x', remove it if useless.
2134 cat <<\_ACEOF >conftest.sed
2135 s/[\\$]/&&/g;s/;s,x,x,$//
2137 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2140 # expand $ac_aux_dir to an absolute path
2141 am_aux_dir=`cd $ac_aux_dir && pwd`
2143 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2144 # Use eval to expand $SHELL
2145 if eval "$MISSING --run true"; then
2146 am_missing_run="$MISSING --run "
2149 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2150 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2153 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2154 # Keeping the `.' argument allows $(mkdir_p) to be used without
2155 # argument. Indeed, we sometimes output rules like
2156 # $(mkdir_p) $(somedir)
2157 # where $(somedir) is conditionally defined.
2158 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
2159 # expensive solution, as it forces Make to start a sub-shell.)
2160 mkdir_p='mkdir -p -- .'
2162 # On NextStep and OpenStep, the `mkdir' command does not
2163 # recognize any option. It will interpret all options as
2164 # directories to create, and then abort because `.' already
2166 for d in ./-p ./--version;
2168 test -d $d && rmdir $d
2170 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2171 if test -f "$ac_aux_dir/mkinstalldirs"; then
2172 mkdir_p='$(mkinstalldirs)'
2174 mkdir_p='$(install_sh) -d'
2178 for ac_prog in gawk mawk nawk awk
2180 # Extract the first word of "$ac_prog", so it can be a program name with args.
2181 set dummy $ac_prog; ac_word=$2
2182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2184 if test "${ac_cv_prog_AWK+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 if test -n "$AWK"; then
2188 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 ac_cv_prog_AWK="$ac_prog"
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 if test -n "$AWK"; then
2209 { echo "$as_me:$LINENO: result: $AWK" >&5
2210 echo "${ECHO_T}$AWK" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2217 test -n "$AWK" && break
2220 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2221 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2222 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2223 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 cat >conftest.make <<\_ACEOF
2229 @echo '@@@%%%=$(MAKE)=@@@%%%'
2231 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2232 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234 eval ac_cv_prog_make_${ac_make}_set=yes;;
2236 eval ac_cv_prog_make_${ac_make}_set=no;;
2240 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2241 { echo "$as_me:$LINENO: result: yes" >&5
2242 echo "${ECHO_T}yes" >&6; }
2245 { echo "$as_me:$LINENO: result: no" >&5
2246 echo "${ECHO_T}no" >&6; }
2247 SET_MAKE="MAKE=${MAKE-make}"
2250 rm -rf .tst 2>/dev/null
2251 mkdir .tst 2>/dev/null
2252 if test -d .tst; then
2257 rmdir .tst 2>/dev/null
2259 # test to see if srcdir already configured
2260 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2261 test -f $srcdir/config.status; then
2262 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2263 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2264 { (exit 1); exit 1; }; }
2267 # test whether we have cygpath
2268 if test -z "$CYGPATH_W"; then
2269 if (cygpath --version) >/dev/null 2>/dev/null; then
2270 CYGPATH_W='cygpath -w'
2277 # Define the identity of the package.
2278 PACKAGE='yandex-fotki-sharing-plugin'
2282 cat >>confdefs.h <<_ACEOF
2283 @%:@define PACKAGE "$PACKAGE"
2287 cat >>confdefs.h <<_ACEOF
2288 @%:@define VERSION "$VERSION"
2291 # Some tools Automake needs.
2293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2296 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2299 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2302 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2305 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2308 AMTAR=${AMTAR-"${am_missing_run}tar"}
2310 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2312 # Installed binaries are usually stripped using `strip' when the user
2313 # run `make install-strip'. However `strip' might not be the right
2314 # tool to use in cross-compilation environments, therefore Automake
2315 # will honor the `STRIP' environment variable to overrule this program.
2316 if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319 set dummy ${ac_tool_prefix}strip; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 STRIP=$ac_cv_prog_STRIP
2346 if test -n "$STRIP"; then
2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348 echo "${ECHO_T}$STRIP" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2356 if test -z "$ac_cv_prog_STRIP"; then
2358 # Extract the first word of "strip", so it can be a program name with args.
2359 set dummy strip; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386 if test -n "$ac_ct_STRIP"; then
2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2394 if test "x$ac_ct_STRIP" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2410 STRIP="$ac_cv_prog_STRIP"
2414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2416 # We need awk for the "check" target. The system "awk" is bad on
2422 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2423 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2424 # Check whether --enable-maintainer-mode was given.
2425 if test "${enable_maintainer_mode+set}" = set; then
2426 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2428 USE_MAINTAINER_MODE=no
2431 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2432 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2435 if test $USE_MAINTAINER_MODE = yes; then
2436 MAINTAINER_MODE_TRUE=
2437 MAINTAINER_MODE_FALSE='#'
2439 MAINTAINER_MODE_TRUE='#'
2440 MAINTAINER_MODE_FALSE=
2443 MAINT=$MAINTAINER_MODE_TRUE
2446 ac_config_headers="$ac_config_headers config.h"
2451 # Check whether --enable-shared was given.
2452 if test "${enable_shared+set}" = set; then
2453 enableval=$enable_shared; p=${PACKAGE-default}
2455 yes) enable_shared=yes ;;
2456 no) enable_shared=no ;;
2459 # Look at the argument we got. We use all the common list separators.
2460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2461 for pkg in $enableval; do
2463 if test "X$pkg" = "X$p"; then
2475 # Check whether --enable-static was given.
2476 if test "${enable_static+set}" = set; then
2477 enableval=$enable_static; p=${PACKAGE-default}
2479 yes) enable_static=yes ;;
2480 no) enable_static=no ;;
2483 # Look at the argument we got. We use all the common list separators.
2484 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2485 for pkg in $enableval; do
2487 if test "X$pkg" = "X$p"; then
2499 DEPDIR="${am__leading_dot}deps"
2501 ac_config_commands="$ac_config_commands depfiles"
2504 am_make=${MAKE-make}
2505 cat > confinc << 'END'
2510 # If we don't find an include directive, just comment out the code.
2511 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2516 # First try GNU make style include.
2517 echo "include confinc" > confmf
2518 # We grep out `Entering directory' and `Leaving directory'
2519 # messages which can occur if `w' ends up in MAKEFLAGS.
2520 # In particular we don't look at `^make:' because GNU make might
2521 # be invoked under some other name (usually "gmake"), in which
2522 # case it prints its new name instead of `make'.
2523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2528 # Now try BSD make style include.
2529 if test "$am__include" = "#"; then
2530 echo '.include "confinc"' > confmf
2531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2532 am__include=.include
2539 { echo "$as_me:$LINENO: result: $_am_result" >&5
2540 echo "${ECHO_T}$_am_result" >&6; }
2541 rm -f confinc confmf
2543 # Check whether --enable-dependency-tracking was given.
2544 if test "${enable_dependency_tracking+set}" = set; then
2545 enableval=$enable_dependency_tracking;
2548 if test "x$enable_dependency_tracking" != xno; then
2549 am_depcomp="$ac_aux_dir/depcomp"
2554 if test "x$enable_dependency_tracking" != xno; then
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 if test -n "$CC"; then
2599 { echo "$as_me:$LINENO: result: $CC" >&5
2600 echo "${ECHO_T}$CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2608 if test -z "$ac_cv_prog_CC"; then
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611 set dummy gcc; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_ac_ct_CC="gcc"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638 if test -n "$ac_ct_CC"; then
2639 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640 echo "${ECHO_T}$ac_ct_CC" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2646 if test "x$ac_ct_CC" = x; then
2649 case $cross_compiling:$ac_tool_warned in
2651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&5
2654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655 whose name does not start with the host triplet. If you think this
2656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657 ac_tool_warned=yes ;;
2665 if test -z "$CC"; then
2666 if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}cc; ac_word=$2
2669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}cc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 if test -n "$CC"; then
2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697 echo "${ECHO_T}$CC" >&6; }
2699 { echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6; }
2706 if test -z "$CC"; then
2707 # Extract the first word of "cc", so it can be a program name with args.
2708 set dummy cc; ac_word=$2
2709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726 ac_prog_rejected=yes
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test $ac_prog_rejected = yes; then
2738 # We found a bogon in the path, so make sure we never use it.
2739 set dummy $ac_cv_prog_CC
2741 if test $@%:@ != 0; then
2742 # We chose a different compiler from the bogus one.
2743 # However, it has the same basename, so the bogon will be chosen
2744 # first if we set CC to just the basename; use the full file name.
2746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2762 if test -z "$CC"; then
2763 if test -n "$ac_tool_prefix"; then
2764 for ac_prog in cl.exe
2766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$CC"; then
2774 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 if test -n "$CC"; then
2795 { echo "$as_me:$LINENO: result: $CC" >&5
2796 echo "${ECHO_T}$CC" >&6; }
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2803 test -n "$CC" && break
2806 if test -z "$CC"; then
2808 for ac_prog in cl.exe
2810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2811 set dummy $ac_prog; ac_word=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$ac_ct_CC"; then
2818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_ac_ct_CC="$ac_prog"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838 if test -n "$ac_ct_CC"; then
2839 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840 echo "${ECHO_T}$ac_ct_CC" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2847 test -n "$ac_ct_CC" && break
2850 if test "x$ac_ct_CC" = x; then
2853 case $cross_compiling:$ac_tool_warned in
2855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856 whose name does not start with the host triplet. If you think this
2857 configuration is useful to you, please write to autoconf@gnu.org." >&5
2858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859 whose name does not start with the host triplet. If you think this
2860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861 ac_tool_warned=yes ;;
2870 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2871 See \`config.log' for more details." >&5
2872 echo "$as_me: error: no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details." >&2;}
2874 { (exit 1); exit 1; }; }
2876 # Provide some information about the compiler.
2877 echo "$as_me:$LINENO: checking for C compiler version" >&5
2878 ac_compiler=`set X $ac_compile; echo $2`
2879 { (ac_try="$ac_compiler --version >&5"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_compiler --version >&5") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }
2889 { (ac_try="$ac_compiler -v >&5"
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_compiler -v >&5") 2>&5
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }
2899 { (ac_try="$ac_compiler -V >&5"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compiler -V >&5") 2>&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908 (exit $ac_status); }
2910 cat >conftest.$ac_ext <<_ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2925 ac_clean_files_save=$ac_clean_files
2926 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927 # Try to create an executable without -o first, disregard a.out.
2928 # It will help us diagnose broken compilers, and finding out an intuition
2930 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934 # List of possible output files, starting from the most likely.
2935 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936 # only as a last resort. b.out is created by i960 compilers.
2937 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2939 # The IRIX 6 linker writes into existing files which may not be
2940 # executable, retaining their permissions. Remove them first so a
2941 # subsequent execution test works.
2943 for ac_file in $ac_files
2946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2952 if { (ac_try="$ac_link_default"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_link_default") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; then
2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2965 # so that the user can short-circuit this test for compilers unknown to
2967 for ac_file in $ac_files ''
2969 test -f "$ac_file" || continue
2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2974 # We found the default executable, but exeext='' is most
2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982 # We set ac_cv_exeext here because the later test for it is not
2983 # safe: cross compilers may not add the suffix if given an `-o'
2984 # argument, so we may need to know it at that point already.
2985 # Even if this section looks crufty: it has the advantage of
2992 test "$ac_cv_exeext" = no && ac_cv_exeext=
2998 { echo "$as_me:$LINENO: result: $ac_file" >&5
2999 echo "${ECHO_T}$ac_file" >&6; }
3000 if test -z "$ac_file"; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3004 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005 See \`config.log' for more details." >&5
3006 echo "$as_me: error: C compiler cannot create executables
3007 See \`config.log' for more details." >&2;}
3008 { (exit 77); exit 77; }; }
3011 ac_exeext=$ac_cv_exeext
3013 # Check that the compiler produces executables we can run. If not, either
3014 # the compiler is broken, or we cross compile.
3015 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018 # If not cross compiling, check that we can run a simple program.
3019 if test "$cross_compiling" != yes; then
3020 if { ac_try='./$ac_file'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3032 if test "$cross_compiling" = maybe; then
3035 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036 If you meant to cross compile, use \`--host'.
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: cannot run C compiled programs.
3039 If you meant to cross compile, use \`--host'.
3040 See \`config.log' for more details." >&2;}
3041 { (exit 1); exit 1; }; }
3045 { echo "$as_me:$LINENO: result: yes" >&5
3046 echo "${ECHO_T}yes" >&6; }
3048 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049 ac_clean_files=$ac_clean_files_save
3050 # Check that the compiler produces executables we can run. If not, either
3051 # the compiler is broken, or we cross compile.
3052 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055 echo "${ECHO_T}$cross_compiling" >&6; }
3057 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059 if { (ac_try="$ac_link"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_link") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; then
3069 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3070 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3071 # work properly (i.e., refer to `conftest.exe'), while it won't with
3073 for ac_file in conftest.exe conftest conftest.*; do
3074 test -f "$ac_file" || continue
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." >&5
3085 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086 See \`config.log' for more details." >&2;}
3087 { (exit 1); exit 1; }; }
3090 rm -f conftest$ac_cv_exeext
3091 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3094 rm -f conftest.$ac_ext
3095 EXEEXT=$ac_cv_exeext
3097 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099 if test "${ac_cv_objext+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.o conftest.obj
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>&5
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; then
3128 for ac_file in conftest.o conftest.obj conftest.*; do
3129 test -f "$ac_file" || continue;
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143 See \`config.log' for more details." >&2;}
3144 { (exit 1); exit 1; }; }
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150 echo "${ECHO_T}$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3153 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3176 rm -f conftest.$ac_objext
3177 if { (ac_try="$ac_compile"
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_compile") 2>conftest.er1
3185 grep -v '^ *+' conftest.er1 >conftest.err
3187 cat conftest.err >&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); } && {
3190 test -z "$ac_c_werror_flag" ||
3191 test ! -s conftest.err
3192 } && test -s conftest.$ac_objext; then
3195 echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207 GCC=`test $ac_compiler_gnu = yes && echo yes`
3208 ac_test_CFLAGS=${CFLAGS+set}
3209 ac_save_CFLAGS=$CFLAGS
3210 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_g+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 ac_save_c_werror_flag=$ac_c_werror_flag
3216 ac_c_werror_flag=yes
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_c_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318 (eval "$ac_compile") 2>conftest.er1
3320 grep -v '^ *+' conftest.er1 >conftest.err
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } && {
3325 test -z "$ac_c_werror_flag" ||
3326 test ! -s conftest.err
3327 } && test -s conftest.$ac_objext; then
3330 echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348 CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350 if test "$GCC" = yes; then
3356 if test "$GCC" = yes; then
3362 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 ac_cv_prog_cc_c89=no
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3377 #include <sys/types.h>
3378 #include <sys/stat.h>
3379 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380 struct buf { int x; };
3381 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3393 s = g (p, va_arg (v,int));
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not '\xHH' hex character constants.
3400 These don't provoke an error unfortunately, instead are silently treated
3401 as 'x'. The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403 array size at least. It's necessary to write '\x00'==0 to get something
3404 that's true only with -std. */
3405 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3410 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429 CC="$ac_save_CC $ac_arg"
3430 rm -f conftest.$ac_objext
3431 if { (ac_try="$ac_compile"
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>conftest.er1
3439 grep -v '^ *+' conftest.er1 >conftest.err
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); } && {
3444 test -z "$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 } && test -s conftest.$ac_objext; then
3447 ac_cv_prog_cc_c89=$ac_arg
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3455 rm -f core conftest.err conftest.$ac_objext
3456 test "x$ac_cv_prog_cc_c89" != "xno" && break
3458 rm -f conftest.$ac_ext
3463 case "x$ac_cv_prog_cc_c89" in
3465 { echo "$as_me:$LINENO: result: none needed" >&5
3466 echo "${ECHO_T}none needed" >&6; } ;;
3468 { echo "$as_me:$LINENO: result: unsupported" >&5
3469 echo "${ECHO_T}unsupported" >&6; } ;;
3471 CC="$CC $ac_cv_prog_cc_c89"
3472 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478 ac_cpp='$CPP $CPPFLAGS'
3479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3483 depcc="$CC" am_compiler_list=
3485 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3486 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3487 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3491 # We make a subdir and do the tests there. Otherwise we can end up
3492 # making bogus files that we don't know about and never remove. For
3493 # instance it was reported that on HP-UX the gcc test will end up
3494 # making a dummy file named `D' -- because `-MD' means `put the output
3497 # Copy depcomp to subdir because otherwise we won't find it if we're
3498 # using a relative directory.
3499 cp "$am_depcomp" conftest.dir
3501 # We will build objects and dependencies in a subdirectory because
3502 # it helps to detect inapplicable dependency modes. For instance
3503 # both Tru64's cc and ICC support -MD to output dependencies as a
3504 # side effect of compilation, but ICC will put the dependencies in
3505 # the current directory while Tru64 will put them in the object
3509 am_cv_CC_dependencies_compiler_type=none
3510 if test "$am_compiler_list" = ""; then
3511 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3513 for depmode in $am_compiler_list; do
3514 # Setup a source with many dependencies, because some compilers
3515 # like to wrap large dependency lists on column 80 (with \), and
3516 # we should not choose a depcomp mode which is confused by this.
3518 # We need to recreate these files for each test, as the compiler may
3519 # overwrite some of them when testing with obscure command lines.
3520 # This happens at least with the AIX C compiler.
3522 for i in 1 2 3 4 5 6; do
3523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3524 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3525 # Solaris 8's {/usr,}/bin/sh.
3526 touch sub/conftst$i.h
3528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3532 # after this tag, mechanisms are not by side-effect, so they'll
3533 # only be used when explicitly requested
3534 if test "x$enable_dependency_tracking" = xyes; then
3542 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3543 # mode. It turns out that the SunPro C++ compiler does not properly
3544 # handle `-M -o', and we need to detect this.
3545 if depmode=$depmode \
3546 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3547 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3548 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3549 >/dev/null 2>conftest.err &&
3550 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3551 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3552 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3553 # icc doesn't choke on unknown options, it will just issue warnings
3554 # or remarks (even with -Werror). So we grep stderr for any message
3555 # that says an option was ignored or not supported.
3556 # When given -MP, icc 7.0 and 7.1 complain thusly:
3557 # icc: Command line warning: ignoring option '-M'; no argument required
3558 # The diagnosis changed in icc 8.0:
3559 # icc: Command line remark: option '-MP' not supported
3560 if (grep 'ignoring option' conftest.err ||
3561 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3562 am_cv_CC_dependencies_compiler_type=$depmode
3571 am_cv_CC_dependencies_compiler_type=none
3575 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3576 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3577 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582 test "x$enable_dependency_tracking" != xno \
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585 am__fastdepCC_FALSE='#'
3587 am__fastdepCC_TRUE='#'
3588 am__fastdepCC_FALSE=
3593 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3594 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3595 if test "${ac_cv_search_strerror+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 ac_func_search_save_LIBS=$LIBS
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3606 /* Override any GCC internal prototype to avoid an error.
3607 Use char because int might match the return type of a GCC
3608 builtin and then its argument prototype would still apply. */
3621 for ac_lib in '' cposix; do
3622 if test -z "$ac_lib"; then
3623 ac_res="none required"
3626 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (ac_try="$ac_link"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_link") 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } && {
3642 test -z "$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 } && test -s conftest$ac_exeext &&
3645 $as_test_x conftest$ac_exeext; then
3646 ac_cv_search_strerror=$ac_res
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3656 if test "${ac_cv_search_strerror+set}" = set; then
3660 if test "${ac_cv_search_strerror+set}" = set; then
3663 ac_cv_search_strerror=no
3666 LIBS=$ac_func_search_save_LIBS
3668 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3669 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3670 ac_res=$ac_cv_search_strerror
3671 if test "$ac_res" != no; then
3672 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3677 ac_cpp='$CXXCPP $CPPFLAGS'
3678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3681 if test -z "$CXX"; then
3682 if test -n "$CCC"; then
3685 if test -n "$ac_tool_prefix"; then
3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_prog_CXX+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if test -n "$CXX"; then
3696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 if test -n "$CXX"; then
3717 { echo "$as_me:$LINENO: result: $CXX" >&5
3718 echo "${ECHO_T}$CXX" >&6; }
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3725 test -n "$CXX" && break
3728 if test -z "$CXX"; then
3730 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3732 # Extract the first word of "$ac_prog", so it can be a program name with args.
3733 set dummy $ac_prog; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test -n "$ac_ct_CXX"; then
3740 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_ac_ct_CXX="$ac_prog"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3760 if test -n "$ac_ct_CXX"; then
3761 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3762 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3764 { echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6; }
3769 test -n "$ac_ct_CXX" && break
3772 if test "x$ac_ct_CXX" = x; then
3775 case $cross_compiling:$ac_tool_warned in
3777 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3778 whose name does not start with the host triplet. If you think this
3779 configuration is useful to you, please write to autoconf@gnu.org." >&5
3780 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3781 whose name does not start with the host triplet. If you think this
3782 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3783 ac_tool_warned=yes ;;
3791 # Provide some information about the compiler.
3792 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3793 ac_compiler=`set X $ac_compile; echo $2`
3794 { (ac_try="$ac_compiler --version >&5"
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800 (eval "$ac_compiler --version >&5") 2>&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); }
3804 { (ac_try="$ac_compiler -v >&5"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compiler -v >&5") 2>&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }
3814 { (ac_try="$ac_compiler -V >&5"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compiler -V >&5") 2>&5
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3827 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_cxx_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3877 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3879 GXX=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CXXFLAGS=${CXXFLAGS+set}
3881 ac_save_CXXFLAGS=$CXXFLAGS
3882 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3883 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cxx_g+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3888 ac_cxx_werror_flag=yes
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_cxx_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3923 ac_cv_prog_cxx_g=yes
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_cxx_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_cxx_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest.$ac_objext; then
4000 ac_cv_prog_cxx_g=yes
4002 echo "$as_me: failed program was:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4017 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4019 if test "$ac_test_CXXFLAGS" = set; then
4020 CXXFLAGS=$ac_save_CXXFLAGS
4021 elif test $ac_cv_prog_cxx_g = yes; then
4022 if test "$GXX" = yes; then
4028 if test "$GXX" = yes; then
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 depcc="$CXX" am_compiler_list=
4042 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4043 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4044 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4066 am_cv_CXX_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4070 for depmode in $am_compiler_list; do
4071 # Setup a source with many dependencies, because some compilers
4072 # like to wrap large dependency lists on column 80 (with \), and
4073 # we should not choose a depcomp mode which is confused by this.
4075 # We need to recreate these files for each test, as the compiler may
4076 # overwrite some of them when testing with obscure command lines.
4077 # This happens at least with the AIX C compiler.
4079 for i in 1 2 3 4 5 6; do
4080 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4081 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4082 # Solaris 8's {/usr,}/bin/sh.
4083 touch sub/conftst$i.h
4085 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4089 # after this tag, mechanisms are not by side-effect, so they'll
4090 # only be used when explicitly requested
4091 if test "x$enable_dependency_tracking" = xyes; then
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this.
4102 if depmode=$depmode \
4103 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4104 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4105 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4106 >/dev/null 2>conftest.err &&
4107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4108 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4110 # icc doesn't choke on unknown options, it will just issue warnings
4111 # or remarks (even with -Werror). So we grep stderr for any message
4112 # that says an option was ignored or not supported.
4113 # When given -MP, icc 7.0 and 7.1 complain thusly:
4114 # icc: Command line warning: ignoring option '-M'; no argument required
4115 # The diagnosis changed in icc 8.0:
4116 # icc: Command line remark: option '-MP' not supported
4117 if (grep 'ignoring option' conftest.err ||
4118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4119 am_cv_CXX_dependencies_compiler_type=$depmode
4128 am_cv_CXX_dependencies_compiler_type=none
4132 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4133 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4134 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4139 test "x$enable_dependency_tracking" != xno \
4140 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4141 am__fastdepCXX_TRUE=
4142 am__fastdepCXX_FALSE='#'
4144 am__fastdepCXX_TRUE='#'
4145 am__fastdepCXX_FALSE=
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4155 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4156 # On Suns, sometimes $CPP names a directory.
4157 if test -n "$CPP" && test -d "$CPP"; then
4160 if test -z "$CPP"; then
4161 if test "${ac_cv_prog_CPP+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 # Double quotes because CPP needs to be expanded
4165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4168 for ac_c_preproc_warn_flag in '' yes
4170 # Use a header file that comes with gcc, so configuring glibc
4171 # with a fresh cross-compiler works.
4172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4173 # <limits.h> exists even on freestanding compilers.
4174 # On the NeXT, cc -E runs the code through the compiler's parser,
4175 # not just through cpp. "Syntax error" is here to catch this case.
4176 cat >conftest.$ac_ext <<_ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 @%:@ include <limits.h>
4185 @%:@ include <assert.h>
4189 if { (ac_try="$ac_cpp conftest.$ac_ext"
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4197 grep -v '^ *+' conftest.er1 >conftest.err
4199 cat conftest.err >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); } >/dev/null && {
4202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203 test ! -s conftest.err
4207 echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4210 # Broken: fails on valid input.
4214 rm -f conftest.err conftest.$ac_ext
4216 # OK, works on sane cases. Now check whether nonexistent headers
4217 # can be detected and how.
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 @%:@include <ac_nonexistent.h>
4226 if { (ac_try="$ac_cpp conftest.$ac_ext"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } >/dev/null && {
4239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4240 test ! -s conftest.err
4242 # Broken: success on invalid input.
4245 echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4248 # Passes both tests.
4253 rm -f conftest.err conftest.$ac_ext
4256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4257 rm -f conftest.err conftest.$ac_ext
4258 if $ac_preproc_ok; then
4270 { echo "$as_me:$LINENO: result: $CPP" >&5
4271 echo "${ECHO_T}$CPP" >&6; }
4273 for ac_c_preproc_warn_flag in '' yes
4275 # Use a header file that comes with gcc, so configuring glibc
4276 # with a fresh cross-compiler works.
4277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4278 # <limits.h> exists even on freestanding compilers.
4279 # On the NeXT, cc -E runs the code through the compiler's parser,
4280 # not just through cpp. "Syntax error" is here to catch this case.
4281 cat >conftest.$ac_ext <<_ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h. */
4288 @%:@ include <limits.h>
4290 @%:@ include <assert.h>
4294 if { (ac_try="$ac_cpp conftest.$ac_ext"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } >/dev/null && {
4307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 # Broken: fails on valid input.
4319 rm -f conftest.err conftest.$ac_ext
4321 # OK, works on sane cases. Now check whether nonexistent headers
4322 # can be detected and how.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4329 @%:@include <ac_nonexistent.h>
4331 if { (ac_try="$ac_cpp conftest.$ac_ext"
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4339 grep -v '^ *+' conftest.er1 >conftest.err
4341 cat conftest.err >&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); } >/dev/null && {
4344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4345 test ! -s conftest.err
4347 # Broken: success on invalid input.
4350 echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 # Passes both tests.
4358 rm -f conftest.err conftest.$ac_ext
4361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4362 rm -f conftest.err conftest.$ac_ext
4363 if $ac_preproc_ok; then
4366 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4367 See \`config.log' for more details." >&5
4368 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4369 See \`config.log' for more details." >&2;}
4370 { (exit 1); exit 1; }; }
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$CC"; then
4393 ac_cv_prog_CC="$CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 if test -n "$CC"; then
4414 { echo "$as_me:$LINENO: result: $CC" >&5
4415 echo "${ECHO_T}$CC" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4423 if test -z "$ac_cv_prog_CC"; then
4425 # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$ac_ct_CC"; then
4433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_ac_ct_CC="gcc"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4453 if test -n "$ac_ct_CC"; then
4454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4455 echo "${ECHO_T}$ac_ct_CC" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4461 if test "x$ac_ct_CC" = x; then
4464 case $cross_compiling:$ac_tool_warned in
4466 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4467 whose name does not start with the host triplet. If you think this
4468 configuration is useful to you, please write to autoconf@gnu.org." >&5
4469 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4470 whose name does not start with the host triplet. If you think this
4471 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4472 ac_tool_warned=yes ;;
4480 if test -z "$CC"; then
4481 if test -n "$ac_tool_prefix"; then
4482 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4483 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 if test -n "$CC"; then
4490 ac_cv_prog_CC="$CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_CC="${ac_tool_prefix}cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510 if test -n "$CC"; then
4511 { echo "$as_me:$LINENO: result: $CC" >&5
4512 echo "${ECHO_T}$CC" >&6; }
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4521 if test -z "$CC"; then
4522 # Extract the first word of "cc", so it can be a program name with args.
4523 set dummy cc; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_prog_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$CC"; then
4530 ac_cv_prog_CC="$CC" # Let the user override the test.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4541 ac_prog_rejected=yes
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552 if test $ac_prog_rejected = yes; then
4553 # We found a bogon in the path, so make sure we never use it.
4554 set dummy $ac_cv_prog_CC
4556 if test $@%:@ != 0; then
4557 # We chose a different compiler from the bogus one.
4558 # However, it has the same basename, so the bogon will be chosen
4559 # first if we set CC to just the basename; use the full file name.
4561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4567 if test -n "$CC"; then
4568 { echo "$as_me:$LINENO: result: $CC" >&5
4569 echo "${ECHO_T}$CC" >&6; }
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4577 if test -z "$CC"; then
4578 if test -n "$ac_tool_prefix"; then
4579 for ac_prog in cl.exe
4581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585 if test "${ac_cv_prog_CC+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$CC"; then
4589 ac_cv_prog_CC="$CC" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 if test -n "$CC"; then
4610 { echo "$as_me:$LINENO: result: $CC" >&5
4611 echo "${ECHO_T}$CC" >&6; }
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4618 test -n "$CC" && break
4621 if test -z "$CC"; then
4623 for ac_prog in cl.exe
4625 # Extract the first word of "$ac_prog", so it can be a program name with args.
4626 set dummy $ac_prog; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 if test -n "$ac_ct_CC"; then
4633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642 ac_cv_prog_ac_ct_CC="$ac_prog"
4643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4653 if test -n "$ac_ct_CC"; then
4654 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4655 echo "${ECHO_T}$ac_ct_CC" >&6; }
4657 { echo "$as_me:$LINENO: result: no" >&5
4658 echo "${ECHO_T}no" >&6; }
4662 test -n "$ac_ct_CC" && break
4665 if test "x$ac_ct_CC" = x; then
4668 case $cross_compiling:$ac_tool_warned in
4670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4671 whose name does not start with the host triplet. If you think this
4672 configuration is useful to you, please write to autoconf@gnu.org." >&5
4673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4674 whose name does not start with the host triplet. If you think this
4675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4676 ac_tool_warned=yes ;;
4685 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." >&2;}
4689 { (exit 1); exit 1; }; }
4691 # Provide some information about the compiler.
4692 echo "$as_me:$LINENO: checking for C compiler version" >&5
4693 ac_compiler=`set X $ac_compile; echo $2`
4694 { (ac_try="$ac_compiler --version >&5"
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compiler --version >&5") 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704 { (ac_try="$ac_compiler -v >&5"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_compiler -v >&5") 2>&5
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }
4714 { (ac_try="$ac_compiler -V >&5"
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_compiler -V >&5") 2>&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); }
4725 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4726 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4727 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4748 rm -f conftest.$ac_objext
4749 if { (ac_try="$ac_compile"
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755 (eval "$ac_compile") 2>conftest.er1
4757 grep -v '^ *+' conftest.er1 >conftest.err
4759 cat conftest.err >&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); } && {
4762 test -z "$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4764 } && test -s conftest.$ac_objext; then
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4777 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4779 GCC=`test $ac_compiler_gnu = yes && echo yes`
4780 ac_test_CFLAGS=${CFLAGS+set}
4781 ac_save_CFLAGS=$CFLAGS
4782 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4783 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_cc_g+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 ac_save_c_werror_flag=$ac_c_werror_flag
4788 ac_c_werror_flag=yes
4791 cat >conftest.$ac_ext <<_ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4806 rm -f conftest.$ac_objext
4807 if { (ac_try="$ac_compile"
4809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810 *) ac_try_echo=$ac_try;;
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813 (eval "$ac_compile") 2>conftest.er1
4815 grep -v '^ *+' conftest.er1 >conftest.err
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && {
4820 test -z "$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 } && test -s conftest.$ac_objext; then
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4829 cat >conftest.$ac_ext <<_ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4844 rm -f conftest.$ac_objext
4845 if { (ac_try="$ac_compile"
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_compile") 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } && {
4858 test -z "$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4860 } && test -s conftest.$ac_objext; then
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 ac_c_werror_flag=$ac_save_c_werror_flag
4868 cat >conftest.$ac_ext <<_ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4883 rm -f conftest.$ac_objext
4884 if { (ac_try="$ac_compile"
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890 (eval "$ac_compile") 2>conftest.er1
4892 grep -v '^ *+' conftest.er1 >conftest.err
4894 cat conftest.err >&5
4895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896 (exit $ac_status); } && {
4897 test -z "$ac_c_werror_flag" ||
4898 test ! -s conftest.err
4899 } && test -s conftest.$ac_objext; then
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4915 ac_c_werror_flag=$ac_save_c_werror_flag
4917 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4918 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4919 if test "$ac_test_CFLAGS" = set; then
4920 CFLAGS=$ac_save_CFLAGS
4921 elif test $ac_cv_prog_cc_g = yes; then
4922 if test "$GCC" = yes; then
4928 if test "$GCC" = yes; then
4934 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4935 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4936 if test "${ac_cv_prog_cc_c89+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 ac_cv_prog_cc_c89=no
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4949 #include <sys/types.h>
4950 #include <sys/stat.h>
4951 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4952 struct buf { int x; };
4953 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4954 static char *e (p, i)
4960 static char *f (char * (*g) (char **, int), char **p, ...)
4965 s = g (p, va_arg (v,int));
4970 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4971 function prototypes and stuff, but not '\xHH' hex character constants.
4972 These don't provoke an error unfortunately, instead are silently treated
4973 as 'x'. The following induces an error, until -std is added to get
4974 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4975 array size at least. It's necessary to write '\x00'==0 to get something
4976 that's true only with -std. */
4977 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4979 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4980 inside strings and character constants. */
4982 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4984 int test (int i, double x);
4985 struct s1 {int (*f) (int a);};
4986 struct s2 {int (*f) (double a);};
4987 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4993 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4998 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4999 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5001 CC="$ac_save_CC $ac_arg"
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } && {
5016 test -z "$ac_c_werror_flag" ||
5017 test ! -s conftest.err
5018 } && test -s conftest.$ac_objext; then
5019 ac_cv_prog_cc_c89=$ac_arg
5021 echo "$as_me: failed program was:" >&5
5022 sed 's/^/| /' conftest.$ac_ext >&5
5027 rm -f core conftest.err conftest.$ac_objext
5028 test "x$ac_cv_prog_cc_c89" != "xno" && break
5030 rm -f conftest.$ac_ext
5035 case "x$ac_cv_prog_cc_c89" in
5037 { echo "$as_me:$LINENO: result: none needed" >&5
5038 echo "${ECHO_T}none needed" >&6; } ;;
5040 { echo "$as_me:$LINENO: result: unsupported" >&5
5041 echo "${ECHO_T}unsupported" >&6; } ;;
5043 CC="$CC $ac_cv_prog_cc_c89"
5044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5045 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5050 ac_cpp='$CPP $CPPFLAGS'
5051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 depcc="$CC" am_compiler_list=
5057 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5058 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5059 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5060 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5063 # We make a subdir and do the tests there. Otherwise we can end up
5064 # making bogus files that we don't know about and never remove. For
5065 # instance it was reported that on HP-UX the gcc test will end up
5066 # making a dummy file named `D' -- because `-MD' means `put the output
5069 # Copy depcomp to subdir because otherwise we won't find it if we're
5070 # using a relative directory.
5071 cp "$am_depcomp" conftest.dir
5073 # We will build objects and dependencies in a subdirectory because
5074 # it helps to detect inapplicable dependency modes. For instance
5075 # both Tru64's cc and ICC support -MD to output dependencies as a
5076 # side effect of compilation, but ICC will put the dependencies in
5077 # the current directory while Tru64 will put them in the object
5081 am_cv_CC_dependencies_compiler_type=none
5082 if test "$am_compiler_list" = ""; then
5083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5085 for depmode in $am_compiler_list; do
5086 # Setup a source with many dependencies, because some compilers
5087 # like to wrap large dependency lists on column 80 (with \), and
5088 # we should not choose a depcomp mode which is confused by this.
5090 # We need to recreate these files for each test, as the compiler may
5091 # overwrite some of them when testing with obscure command lines.
5092 # This happens at least with the AIX C compiler.
5094 for i in 1 2 3 4 5 6; do
5095 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5096 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5097 # Solaris 8's {/usr,}/bin/sh.
5098 touch sub/conftst$i.h
5100 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5104 # after this tag, mechanisms are not by side-effect, so they'll
5105 # only be used when explicitly requested
5106 if test "x$enable_dependency_tracking" = xyes; then
5114 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5115 # mode. It turns out that the SunPro C++ compiler does not properly
5116 # handle `-M -o', and we need to detect this.
5117 if depmode=$depmode \
5118 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5119 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5120 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5121 >/dev/null 2>conftest.err &&
5122 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5123 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5124 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5125 # icc doesn't choke on unknown options, it will just issue warnings
5126 # or remarks (even with -Werror). So we grep stderr for any message
5127 # that says an option was ignored or not supported.
5128 # When given -MP, icc 7.0 and 7.1 complain thusly:
5129 # icc: Command line warning: ignoring option '-M'; no argument required
5130 # The diagnosis changed in icc 8.0:
5131 # icc: Command line remark: option '-MP' not supported
5132 if (grep 'ignoring option' conftest.err ||
5133 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5134 am_cv_CC_dependencies_compiler_type=$depmode
5143 am_cv_CC_dependencies_compiler_type=none
5147 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5148 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5149 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5154 test "x$enable_dependency_tracking" != xno \
5155 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5157 am__fastdepCC_FALSE='#'
5159 am__fastdepCC_TRUE='#'
5160 am__fastdepCC_FALSE=
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_CC+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$CC"; then
5178 ac_cv_prog_CC="$CC" # Let the user override the test.
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 if test -n "$CC"; then
5199 { echo "$as_me:$LINENO: result: $CC" >&5
5200 echo "${ECHO_T}$CC" >&6; }
5202 { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5208 if test -z "$ac_cv_prog_CC"; then
5210 # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 if test -n "$ac_ct_CC"; then
5218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ac_ct_CC="gcc"
5228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5240 echo "${ECHO_T}$ac_ct_CC" >&6; }
5242 { echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6; }
5246 if test "x$ac_ct_CC" = x; then
5249 case $cross_compiling:$ac_tool_warned in
5251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5252 whose name does not start with the host triplet. If you think this
5253 configuration is useful to you, please write to autoconf@gnu.org." >&5
5254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5255 whose name does not start with the host triplet. If you think this
5256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5257 ac_tool_warned=yes ;;
5265 if test -z "$CC"; then
5266 if test -n "$ac_tool_prefix"; then
5267 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}cc; ac_word=$2
5269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5271 if test "${ac_cv_prog_CC+set}" = set; then
5272 echo $ECHO_N "(cached) $ECHO_C" >&6
5274 if test -n "$CC"; then
5275 ac_cv_prog_CC="$CC" # Let the user override the test.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_CC="${ac_tool_prefix}cc"
5285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 if test -n "$CC"; then
5296 { echo "$as_me:$LINENO: result: $CC" >&5
5297 echo "${ECHO_T}$CC" >&6; }
5299 { echo "$as_me:$LINENO: result: no" >&5
5300 echo "${ECHO_T}no" >&6; }
5306 if test -z "$CC"; then
5307 # Extract the first word of "cc", so it can be a program name with args.
5308 set dummy cc; ac_word=$2
5309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5311 if test "${ac_cv_prog_CC+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 if test -n "$CC"; then
5315 ac_cv_prog_CC="$CC" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5326 ac_prog_rejected=yes
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 if test $ac_prog_rejected = yes; then
5338 # We found a bogon in the path, so make sure we never use it.
5339 set dummy $ac_cv_prog_CC
5341 if test $@%:@ != 0; then
5342 # We chose a different compiler from the bogus one.
5343 # However, it has the same basename, so the bogon will be chosen
5344 # first if we set CC to just the basename; use the full file name.
5346 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5352 if test -n "$CC"; then
5353 { echo "$as_me:$LINENO: result: $CC" >&5
5354 echo "${ECHO_T}$CC" >&6; }
5356 { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5362 if test -z "$CC"; then
5363 if test -n "$ac_tool_prefix"; then
5364 for ac_prog in cl.exe
5366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5370 if test "${ac_cv_prog_CC+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 if test -n "$CC"; then
5374 ac_cv_prog_CC="$CC" # Let the user override the test.
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 if test -n "$CC"; then
5395 { echo "$as_me:$LINENO: result: $CC" >&5
5396 echo "${ECHO_T}$CC" >&6; }
5398 { echo "$as_me:$LINENO: result: no" >&5
5399 echo "${ECHO_T}no" >&6; }
5403 test -n "$CC" && break
5406 if test -z "$CC"; then
5408 for ac_prog in cl.exe
5410 # Extract the first word of "$ac_prog", so it can be a program name with args.
5411 set dummy $ac_prog; ac_word=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 if test -n "$ac_ct_CC"; then
5418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5427 ac_cv_prog_ac_ct_CC="$ac_prog"
5428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5438 if test -n "$ac_ct_CC"; then
5439 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5440 echo "${ECHO_T}$ac_ct_CC" >&6; }
5442 { echo "$as_me:$LINENO: result: no" >&5
5443 echo "${ECHO_T}no" >&6; }
5447 test -n "$ac_ct_CC" && break
5450 if test "x$ac_ct_CC" = x; then
5453 case $cross_compiling:$ac_tool_warned in
5455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5456 whose name does not start with the host triplet. If you think this
5457 configuration is useful to you, please write to autoconf@gnu.org." >&5
5458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5459 whose name does not start with the host triplet. If you think this
5460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5461 ac_tool_warned=yes ;;
5470 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5471 See \`config.log' for more details." >&5
5472 echo "$as_me: error: no acceptable C compiler found in \$PATH
5473 See \`config.log' for more details." >&2;}
5474 { (exit 1); exit 1; }; }
5476 # Provide some information about the compiler.
5477 echo "$as_me:$LINENO: checking for C compiler version" >&5
5478 ac_compiler=`set X $ac_compile; echo $2`
5479 { (ac_try="$ac_compiler --version >&5"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler --version >&5") 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5489 { (ac_try="$ac_compiler -v >&5"
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compiler -v >&5") 2>&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); }
5499 { (ac_try="$ac_compiler -V >&5"
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compiler -V >&5") 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); }
5510 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5511 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5512 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 cat >conftest.$ac_ext <<_ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5562 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5563 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5564 GCC=`test $ac_compiler_gnu = yes && echo yes`
5565 ac_test_CFLAGS=${CFLAGS+set}
5566 ac_save_CFLAGS=$CFLAGS
5567 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5568 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5569 if test "${ac_cv_prog_cc_g+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_save_c_werror_flag=$ac_c_werror_flag
5573 ac_c_werror_flag=yes
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_compile") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest.$ac_objext; then
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633 *) ac_try_echo=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1 >conftest.err
5640 cat conftest.err >&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.$ac_objext; then
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 ac_c_werror_flag=$ac_save_c_werror_flag
5653 cat >conftest.$ac_ext <<_ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5668 rm -f conftest.$ac_objext
5669 if { (ac_try="$ac_compile"
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_compile") 2>conftest.er1
5677 grep -v '^ *+' conftest.er1 >conftest.err
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } && {
5682 test -z "$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5684 } && test -s conftest.$ac_objext; then
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 ac_c_werror_flag=$ac_save_c_werror_flag
5702 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5703 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5704 if test "$ac_test_CFLAGS" = set; then
5705 CFLAGS=$ac_save_CFLAGS
5706 elif test $ac_cv_prog_cc_g = yes; then
5707 if test "$GCC" = yes; then
5713 if test "$GCC" = yes; then
5719 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5720 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5721 if test "${ac_cv_prog_cc_c89+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 ac_cv_prog_cc_c89=no
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5734 #include <sys/types.h>
5735 #include <sys/stat.h>
5736 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5737 struct buf { int x; };
5738 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5739 static char *e (p, i)
5745 static char *f (char * (*g) (char **, int), char **p, ...)
5750 s = g (p, va_arg (v,int));
5755 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5756 function prototypes and stuff, but not '\xHH' hex character constants.
5757 These don't provoke an error unfortunately, instead are silently treated
5758 as 'x'. The following induces an error, until -std is added to get
5759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5760 array size at least. It's necessary to write '\x00'==0 to get something
5761 that's true only with -std. */
5762 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5764 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5765 inside strings and character constants. */
5767 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5769 int test (int i, double x);
5770 struct s1 {int (*f) (int a);};
5771 struct s2 {int (*f) (double a);};
5772 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5778 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5783 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5786 CC="$ac_save_CC $ac_arg"
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791 *) ac_try_echo=$ac_try;;
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794 (eval "$ac_compile") 2>conftest.er1
5796 grep -v '^ *+' conftest.er1 >conftest.err
5798 cat conftest.err >&5
5799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800 (exit $ac_status); } && {
5801 test -z "$ac_c_werror_flag" ||
5802 test ! -s conftest.err
5803 } && test -s conftest.$ac_objext; then
5804 ac_cv_prog_cc_c89=$ac_arg
5806 echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f core conftest.err conftest.$ac_objext
5813 test "x$ac_cv_prog_cc_c89" != "xno" && break
5815 rm -f conftest.$ac_ext
5820 case "x$ac_cv_prog_cc_c89" in
5822 { echo "$as_me:$LINENO: result: none needed" >&5
5823 echo "${ECHO_T}none needed" >&6; } ;;
5825 { echo "$as_me:$LINENO: result: unsupported" >&5
5826 echo "${ECHO_T}unsupported" >&6; } ;;
5828 CC="$CC $ac_cv_prog_cc_c89"
5829 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5830 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 depcc="$CC" am_compiler_list=
5842 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5844 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5848 # We make a subdir and do the tests there. Otherwise we can end up
5849 # making bogus files that we don't know about and never remove. For
5850 # instance it was reported that on HP-UX the gcc test will end up
5851 # making a dummy file named `D' -- because `-MD' means `put the output
5854 # Copy depcomp to subdir because otherwise we won't find it if we're
5855 # using a relative directory.
5856 cp "$am_depcomp" conftest.dir
5858 # We will build objects and dependencies in a subdirectory because
5859 # it helps to detect inapplicable dependency modes. For instance
5860 # both Tru64's cc and ICC support -MD to output dependencies as a
5861 # side effect of compilation, but ICC will put the dependencies in
5862 # the current directory while Tru64 will put them in the object
5866 am_cv_CC_dependencies_compiler_type=none
5867 if test "$am_compiler_list" = ""; then
5868 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5870 for depmode in $am_compiler_list; do
5871 # Setup a source with many dependencies, because some compilers
5872 # like to wrap large dependency lists on column 80 (with \), and
5873 # we should not choose a depcomp mode which is confused by this.
5875 # We need to recreate these files for each test, as the compiler may
5876 # overwrite some of them when testing with obscure command lines.
5877 # This happens at least with the AIX C compiler.
5879 for i in 1 2 3 4 5 6; do
5880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5882 # Solaris 8's {/usr,}/bin/sh.
5883 touch sub/conftst$i.h
5885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5889 # after this tag, mechanisms are not by side-effect, so they'll
5890 # only be used when explicitly requested
5891 if test "x$enable_dependency_tracking" = xyes; then
5899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5900 # mode. It turns out that the SunPro C++ compiler does not properly
5901 # handle `-M -o', and we need to detect this.
5902 if depmode=$depmode \
5903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5906 >/dev/null 2>conftest.err &&
5907 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5909 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5910 # icc doesn't choke on unknown options, it will just issue warnings
5911 # or remarks (even with -Werror). So we grep stderr for any message
5912 # that says an option was ignored or not supported.
5913 # When given -MP, icc 7.0 and 7.1 complain thusly:
5914 # icc: Command line warning: ignoring option '-M'; no argument required
5915 # The diagnosis changed in icc 8.0:
5916 # icc: Command line remark: option '-MP' not supported
5917 if (grep 'ignoring option' conftest.err ||
5918 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5919 am_cv_CC_dependencies_compiler_type=$depmode
5928 am_cv_CC_dependencies_compiler_type=none
5932 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5933 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5934 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5939 test "x$enable_dependency_tracking" != xno \
5940 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5942 am__fastdepCC_FALSE='#'
5944 am__fastdepCC_TRUE='#'
5945 am__fastdepCC_FALSE=
5950 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5953 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5954 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5955 if test "${ac_cv_path_GREP+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 # Extract the first word of "grep ggrep" to use in msg output
5959 if test -z "$GREP"; then
5960 set dummy grep ggrep; ac_prog_name=$2
5961 if test "${ac_cv_path_GREP+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 ac_path_GREP_found=false
5965 # Loop through the user's path and test for each of PROGNAME-LIST
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5970 test -z "$as_dir" && as_dir=.
5971 for ac_prog in grep ggrep; do
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5974 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5975 # Check for GNU ac_path_GREP and select it if it is found.
5976 # Check for GNU $ac_path_GREP
5977 case `"$ac_path_GREP" --version 2>&1` in
5979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5982 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5985 cat "conftest.in" "conftest.in" >"conftest.tmp"
5986 mv "conftest.tmp" "conftest.in"
5987 cp "conftest.in" "conftest.nl"
5988 echo 'GREP' >> "conftest.nl"
5989 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5991 ac_count=`expr $ac_count + 1`
5992 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5993 # Best one so far, save it but keep looking for a better one
5994 ac_cv_path_GREP="$ac_path_GREP"
5995 ac_path_GREP_max=$ac_count
5997 # 10*(2^10) chars as input seems more than enough
5998 test $ac_count -gt 10 && break
6000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6004 $ac_path_GREP_found && break 3
6014 GREP="$ac_cv_path_GREP"
6015 if test -z "$GREP"; then
6016 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6017 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6018 { (exit 1); exit 1; }; }
6022 ac_cv_path_GREP=$GREP
6027 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6028 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6029 GREP="$ac_cv_path_GREP"
6032 { echo "$as_me:$LINENO: checking for egrep" >&5
6033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6034 if test "${ac_cv_path_EGREP+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6038 then ac_cv_path_EGREP="$GREP -E"
6040 # Extract the first word of "egrep" to use in msg output
6041 if test -z "$EGREP"; then
6042 set dummy egrep; ac_prog_name=$2
6043 if test "${ac_cv_path_EGREP+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 ac_path_EGREP_found=false
6047 # Loop through the user's path and test for each of PROGNAME-LIST
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6052 test -z "$as_dir" && as_dir=.
6053 for ac_prog in egrep; do
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6056 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6057 # Check for GNU ac_path_EGREP and select it if it is found.
6058 # Check for GNU $ac_path_EGREP
6059 case `"$ac_path_EGREP" --version 2>&1` in
6061 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6064 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6067 cat "conftest.in" "conftest.in" >"conftest.tmp"
6068 mv "conftest.tmp" "conftest.in"
6069 cp "conftest.in" "conftest.nl"
6070 echo 'EGREP' >> "conftest.nl"
6071 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6073 ac_count=`expr $ac_count + 1`
6074 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6075 # Best one so far, save it but keep looking for a better one
6076 ac_cv_path_EGREP="$ac_path_EGREP"
6077 ac_path_EGREP_max=$ac_count
6079 # 10*(2^10) chars as input seems more than enough
6080 test $ac_count -gt 10 && break
6082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 $ac_path_EGREP_found && break 3
6096 EGREP="$ac_cv_path_EGREP"
6097 if test -z "$EGREP"; then
6098 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6099 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6100 { (exit 1); exit 1; }; }
6104 ac_cv_path_EGREP=$EGREP
6110 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6111 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6112 EGREP="$ac_cv_path_EGREP"
6115 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6116 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6117 if test "${ac_cv_header_stdc+set}" = set; then
6118 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6146 (eval "$ac_compile") 2>conftest.er1
6148 grep -v '^ *+' conftest.er1 >conftest.err
6150 cat conftest.err >&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); } && {
6153 test -z "$ac_c_werror_flag" ||
6154 test ! -s conftest.err
6155 } && test -s conftest.$ac_objext; then
6156 ac_cv_header_stdc=yes
6158 echo "$as_me: failed program was:" >&5
6159 sed 's/^/| /' conftest.$ac_ext >&5
6161 ac_cv_header_stdc=no
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 if test $ac_cv_header_stdc = yes; then
6167 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6178 $EGREP "memchr" >/dev/null 2>&1; then
6181 ac_cv_header_stdc=no
6187 if test $ac_cv_header_stdc = yes; then
6188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199 $EGREP "free" >/dev/null 2>&1; then
6202 ac_cv_header_stdc=no
6208 if test $ac_cv_header_stdc = yes; then
6209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6210 if test "$cross_compiling" = yes; then
6213 cat >conftest.$ac_ext <<_ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
6218 /* end confdefs.h. */
6221 #if ((' ' & 0x0FF) == 0x020)
6222 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6223 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6225 # define ISLOWER(c) \
6226 (('a' <= (c) && (c) <= 'i') \
6227 || ('j' <= (c) && (c) <= 'r') \
6228 || ('s' <= (c) && (c) <= 'z'))
6229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6232 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6237 for (i = 0; i < 256; i++)
6238 if (XOR (islower (i), ISLOWER (i))
6239 || toupper (i) != TOUPPER (i))
6244 rm -f conftest$ac_exeext
6245 if { (ac_try="$ac_link"
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_link") 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; }; then
6266 echo "$as_me: program exited with status $ac_status" >&5
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6271 ac_cv_header_stdc=no
6273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6279 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6280 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6281 if test $ac_cv_header_stdc = yes; then
6283 cat >>confdefs.h <<\_ACEOF
6284 @%:@define STDC_HEADERS 1
6289 # Find a good install program. We prefer a C program (faster),
6290 # so one script is as good as another. But avoid the broken or
6291 # incompatible versions:
6292 # SysV /etc/install, /usr/sbin/install
6293 # SunOS /usr/etc/install
6294 # IRIX /sbin/install
6296 # AmigaOS /C/install, which installs bootblocks on floppy discs
6297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6300 # OS/2's system install, which has a completely different semantic
6301 # ./install, which can be erroneously created by make from ./install.sh.
6302 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6303 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6304 if test -z "$INSTALL"; then
6305 if test "${ac_cv_path_install+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 test -z "$as_dir" && as_dir=.
6313 # Account for people who put trailing slashes in PATH elements.
6315 ./ | .// | /cC/* | \
6316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6317 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6320 # OSF1 and SCO ODT 3.0 have their own names for install.
6321 # Don't use installbsd from OSF since it installs stuff as root
6323 for ac_prog in ginstall scoinst install; do
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6326 if test $ac_prog = install &&
6327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6328 # AIX install. It has an incompatible calling convention.
6330 elif test $ac_prog = install &&
6331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6332 # program-specific install script used by HP pwplus--don't use.
6335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6348 if test "${ac_cv_path_install+set}" = set; then
6349 INSTALL=$ac_cv_path_install
6351 # As a last resort, use the slow shell script. Don't cache a
6352 # value for INSTALL within a source directory, because that will
6353 # break other packages using the cache if that directory is
6354 # removed, or if the value is a relative name.
6355 INSTALL=$ac_install_sh
6358 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6359 echo "${ECHO_T}$INSTALL" >&6; }
6361 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6362 # It thinks the first close brace ends the variable substitution.
6363 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6365 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6367 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6369 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6370 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6372 if test "$LN_S" = "ln -s"; then
6373 { echo "$as_me:$LINENO: result: yes" >&5
6374 echo "${ECHO_T}yes" >&6; }
6376 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6377 echo "${ECHO_T}no, using $LN_S" >&6; }
6380 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6381 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6382 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6383 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.make <<\_ACEOF
6389 @echo '@@@%%%=$(MAKE)=@@@%%%'
6391 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6392 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6394 eval ac_cv_prog_make_${ac_make}_set=yes;;
6396 eval ac_cv_prog_make_${ac_make}_set=no;;
6400 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6401 { echo "$as_me:$LINENO: result: yes" >&5
6402 echo "${ECHO_T}yes" >&6; }
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 SET_MAKE="MAKE=${MAKE-make}"
6410 # Check whether --enable-fast-install was given.
6411 if test "${enable_fast_install+set}" = set; then
6412 enableval=$enable_fast_install; p=${PACKAGE-default}
6414 yes) enable_fast_install=yes ;;
6415 no) enable_fast_install=no ;;
6417 enable_fast_install=no
6418 # Look at the argument we got. We use all the common list separators.
6419 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6420 for pkg in $enableval; do
6422 if test "X$pkg" = "X$p"; then
6423 enable_fast_install=yes
6430 enable_fast_install=yes
6434 # Make sure we can run config.sub.
6435 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6436 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6437 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6438 { (exit 1); exit 1; }; }
6440 { echo "$as_me:$LINENO: checking build system type" >&5
6441 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
6442 if test "${ac_cv_build+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 ac_build_alias=$build_alias
6446 test "x$ac_build_alias" = x &&
6447 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6448 test "x$ac_build_alias" = x &&
6449 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6450 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6451 { (exit 1); exit 1; }; }
6452 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6453 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6455 { (exit 1); exit 1; }; }
6458 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6459 echo "${ECHO_T}$ac_cv_build" >&6; }
6460 case $ac_cv_build in
6462 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6463 echo "$as_me: error: invalid value of canonical build" >&2;}
6464 { (exit 1); exit 1; }; };;
6467 ac_save_IFS=$IFS; IFS='-'
6473 # Remember, the first character of IFS is used to create $*,
6474 # except with old shells:
6477 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6480 { echo "$as_me:$LINENO: checking host system type" >&5
6481 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
6482 if test "${ac_cv_host+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test "x$host_alias" = x; then
6486 ac_cv_host=$ac_cv_build
6488 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6489 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6490 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6491 { (exit 1); exit 1; }; }
6495 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6496 echo "${ECHO_T}$ac_cv_host" >&6; }
6499 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6500 echo "$as_me: error: invalid value of canonical host" >&2;}
6501 { (exit 1); exit 1; }; };;
6504 ac_save_IFS=$IFS; IFS='-'
6510 # Remember, the first character of IFS is used to create $*,
6511 # except with old shells:
6514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6517 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6518 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6519 if test "${lt_cv_path_SED+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 # Loop through the user's path and test for sed and gsed.
6523 # Then use that list of sed's as ones to test for truncation.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for lt_ac_prog in sed gsed; do
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6532 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6541 # along with /bin/sed that truncates output.
6542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6543 test ! -f $lt_ac_sed && continue
6544 cat /dev/null > conftest.in
6546 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6547 # Check for GNU sed and select it if it is found.
6548 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6549 lt_cv_path_SED=$lt_ac_sed
6553 cat conftest.in conftest.in >conftest.tmp
6554 mv conftest.tmp conftest.in
6555 cp conftest.in conftest.nl
6557 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6558 cmp -s conftest.out conftest.nl || break
6559 # 10000 chars as input seems more than enough
6560 test $lt_ac_count -gt 10 && break
6561 lt_ac_count=`expr $lt_ac_count + 1`
6562 if test $lt_ac_count -gt $lt_ac_max; then
6563 lt_ac_max=$lt_ac_count
6564 lt_cv_path_SED=$lt_ac_sed
6573 { echo "$as_me:$LINENO: result: $SED" >&5
6574 echo "${ECHO_T}$SED" >&6; }
6577 # Check whether --with-gnu-ld was given.
6578 if test "${with_gnu_ld+set}" = set; then
6579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6585 if test "$GCC" = yes; then
6586 # Check if gcc -print-prog-name=ld gives a path.
6587 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6588 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6591 # gcc leaves a trailing carriage return which upsets mingw
6592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6597 # Accept absolute paths.
6599 re_direlt='/[^/][^/]*/\.\./'
6600 # Canonicalize the pathname of ld
6601 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6603 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6605 test -z "$LD" && LD="$ac_prog"
6608 # If it fails, then pretend we aren't using GCC.
6612 # If it is relative, then search for the first ld in PATH.
6616 elif test "$with_gnu_ld" = yes; then
6617 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6618 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6620 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6621 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6623 if test "${lt_cv_path_LD+set}" = set; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6626 if test -z "$LD"; then
6627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628 for ac_dir in $PATH; do
6630 test -z "$ac_dir" && ac_dir=.
6631 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6632 lt_cv_path_LD="$ac_dir/$ac_prog"
6633 # Check to see if the program is GNU ld. I'd rather use --version,
6634 # but apparently some variants of GNU ld only accept -v.
6635 # Break only if it was the GNU/non-GNU ld that we prefer.
6636 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6637 *GNU* | *'with BFD'*)
6638 test "$with_gnu_ld" != no && break
6641 test "$with_gnu_ld" != yes && break
6648 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6653 if test -n "$LD"; then
6654 { echo "$as_me:$LINENO: result: $LD" >&5
6655 echo "${ECHO_T}$LD" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6660 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6661 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6662 { (exit 1); exit 1; }; }
6663 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6664 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6665 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6669 case `$LD -v 2>&1 </dev/null` in
6670 *GNU* | *'with BFD'*)
6671 lt_cv_prog_gnu_ld=yes
6674 lt_cv_prog_gnu_ld=no
6678 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6679 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6680 with_gnu_ld=$lt_cv_prog_gnu_ld
6683 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6684 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6685 if test "${lt_cv_ld_reload_flag+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6688 lt_cv_ld_reload_flag='-r'
6690 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6691 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6692 reload_flag=$lt_cv_ld_reload_flag
6693 case $reload_flag in
6695 *) reload_flag=" $reload_flag" ;;
6697 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6700 if test "$GCC" = yes; then
6701 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6703 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6708 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6709 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6710 if test "${lt_cv_path_NM+set}" = set; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 if test -n "$NM"; then
6714 # Let the user override the test.
6717 lt_nm_to_check="${ac_tool_prefix}nm"
6718 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6719 lt_nm_to_check="$lt_nm_to_check nm"
6721 for lt_tmp_nm in $lt_nm_to_check; do
6722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6723 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6725 test -z "$ac_dir" && ac_dir=.
6726 tmp_nm="$ac_dir/$lt_tmp_nm"
6727 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6728 # Check to see if the nm accepts a BSD-compat flag.
6729 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6730 # nm: unknown option "B" ignored
6731 # Tru64's nm complains that /dev/null is an invalid object file
6732 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6733 */dev/null* | *'Invalid file or object type'*)
6734 lt_cv_path_NM="$tmp_nm -B"
6738 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6740 lt_cv_path_NM="$tmp_nm -p"
6744 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6745 continue # so that we can try to find one that supports BSD flags
6754 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6757 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6758 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6761 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6762 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6763 if test "${lt_cv_deplibs_check_method+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 lt_cv_file_magic_cmd='$MAGIC_CMD'
6767 lt_cv_file_magic_test_file=
6768 lt_cv_deplibs_check_method='unknown'
6769 # Need to set the preceding variable on all platforms that support
6770 # interlibrary dependencies.
6771 # 'none' -- dependencies not supported.
6772 # `unknown' -- same as none, but documents that we really don't know.
6773 # 'pass_all' -- all dependencies passed with no checks.
6774 # 'test_compile' -- check by making test program.
6775 # 'file_magic [[regex]]' -- check by looking for files in library path
6776 # which responds to the $file_magic_cmd with a given extended regex.
6777 # If you have `file' or equivalent on your system and you're not sure
6778 # whether `pass_all' will *always* work, you probably want this one.
6782 lt_cv_deplibs_check_method=pass_all
6786 lt_cv_deplibs_check_method=pass_all
6790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6791 lt_cv_file_magic_cmd='/usr/bin/file -L'
6792 lt_cv_file_magic_test_file=/shlib/libc.so
6796 # func_win32_libid is a shell function defined in ltmain.sh
6797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6798 lt_cv_file_magic_cmd='func_win32_libid'
6802 # Base MSYS/MinGW do not provide the 'file' command needed by
6803 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6804 # unless we find 'file', for example because we are cross-compiling.
6805 if ( file / ) >/dev/null 2>&1; then
6806 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6807 lt_cv_file_magic_cmd='func_win32_libid'
6809 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6810 lt_cv_file_magic_cmd='$OBJDUMP -f'
6814 darwin* | rhapsody*)
6815 lt_cv_deplibs_check_method=pass_all
6818 freebsd* | dragonfly*)
6819 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6822 # Not sure whether the presence of OpenBSD here was a mistake.
6823 # Let's accept both of them until this is cleared up.
6824 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6825 lt_cv_file_magic_cmd=/usr/bin/file
6826 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6830 lt_cv_deplibs_check_method=pass_all
6835 lt_cv_deplibs_check_method=pass_all
6838 hpux10.20* | hpux11*)
6839 lt_cv_file_magic_cmd=/usr/bin/file
6842 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6843 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6846 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]'
6847 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6850 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6851 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6857 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6861 irix5* | irix6* | nonstopux*)
6863 *-32|*"-32 ") libmagic=32-bit;;
6864 *-n32|*"-n32 ") libmagic=N32;;
6865 *-64|*"-64 ") libmagic=64-bit;;
6866 *) libmagic=never-match;;
6868 lt_cv_deplibs_check_method=pass_all
6871 # This must be Linux ELF.
6872 linux* | k*bsd*-gnu)
6873 lt_cv_deplibs_check_method=pass_all
6877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6880 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6886 lt_cv_file_magic_cmd=/usr/bin/file
6887 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6891 lt_cv_deplibs_check_method=unknown
6895 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6902 osf3* | osf4* | osf5*)
6903 lt_cv_deplibs_check_method=pass_all
6907 lt_cv_deplibs_check_method=pass_all
6911 lt_cv_deplibs_check_method=pass_all
6915 case $host_vendor in
6917 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]'
6918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6921 lt_cv_deplibs_check_method=pass_all
6924 lt_cv_file_magic_cmd='/bin/file'
6925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6928 lt_cv_file_magic_cmd='/bin/file'
6929 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6930 lt_cv_file_magic_test_file=/lib/libc.so
6933 lt_cv_deplibs_check_method=pass_all
6936 lt_cv_deplibs_check_method=pass_all
6941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6942 lt_cv_deplibs_check_method=pass_all
6947 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6948 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6949 file_magic_cmd=$lt_cv_file_magic_cmd
6950 deplibs_check_method=$lt_cv_deplibs_check_method
6951 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6956 # If no C compiler was specified, use CC.
6959 # If no C compiler flags were specified, use CFLAGS.
6960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6962 # Allow CC to be a program name with arguments.
6965 # Check whether --enable-libtool-lock was given.
6966 if test "${enable_libtool_lock+set}" = set; then
6967 enableval=$enable_libtool_lock;
6970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6972 # Some flags need to be propagated to the compiler or linker for good
6976 # Find out which ABI we are using.
6977 echo 'int i;' > conftest.$ac_ext
6978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979 (eval $ac_compile) 2>&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; then
6983 case `/usr/bin/file conftest.$ac_objext` in
6995 # Find out which ABI we are using.
6996 echo '#line __oline__ "configure"' > conftest.$ac_ext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; then
7002 if test "$lt_cv_prog_gnu_ld" = yes; then
7003 case `/usr/bin/file conftest.$ac_objext` in
7005 LD="${LD-ld} -melf32bsmip"
7008 LD="${LD-ld} -melf32bmipn32"
7011 LD="${LD-ld} -melf64bmip"
7015 case `/usr/bin/file conftest.$ac_objext` in
7031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7032 s390*-*linux*|sparc*-*linux*)
7033 # Find out which ABI we are using.
7034 echo 'int i;' > conftest.$ac_ext
7035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>&5
7038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039 (exit $ac_status); }; then
7040 case `/usr/bin/file conftest.o` in
7043 x86_64-*kfreebsd*-gnu)
7044 LD="${LD-ld} -m elf_i386_fbsd"
7047 LD="${LD-ld} -m elf_i386"
7049 ppc64-*linux*|powerpc64-*linux*)
7050 LD="${LD-ld} -m elf32ppclinux"
7053 LD="${LD-ld} -m elf_s390"
7056 LD="${LD-ld} -m elf32_sparc"
7062 x86_64-*kfreebsd*-gnu)
7063 LD="${LD-ld} -m elf_x86_64_fbsd"
7066 LD="${LD-ld} -m elf_x86_64"
7068 ppc*-*linux*|powerpc*-*linux*)
7069 LD="${LD-ld} -m elf64ppc"
7072 LD="${LD-ld} -m elf64_s390"
7075 LD="${LD-ld} -m elf64_sparc"
7085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7086 SAVE_CFLAGS="$CFLAGS"
7087 CFLAGS="$CFLAGS -belf"
7088 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7089 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7090 if test "${lt_cv_cc_needs_belf+set}" = set; then
7091 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (ac_try="$ac_link"
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_link") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest$ac_exeext &&
7131 $as_test_x conftest$ac_exeext; then
7132 lt_cv_cc_needs_belf=yes
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 lt_cv_cc_needs_belf=no
7140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7141 conftest$ac_exeext conftest.$ac_ext
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7150 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7151 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7152 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7153 CFLAGS="$SAVE_CFLAGS"
7157 # Find out which ABI we are using.
7158 echo 'int i;' > conftest.$ac_ext
7159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7160 (eval $ac_compile) 2>&5
7162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163 (exit $ac_status); }; then
7164 case `/usr/bin/file conftest.o` in
7166 case $lt_cv_prog_gnu_ld in
7167 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7169 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7183 need_locks="$enable_libtool_lock"
7186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7197 inttypes.h stdint.h unistd.h
7199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 $ac_includes_default
7213 @%:@include <$ac_header>
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 eval "$as_ac_Header=yes"
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 eval "$as_ac_Header=no"
7240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 ac_res=`eval echo '${'$as_ac_Header'}'`
7243 { echo "$as_me:$LINENO: result: $ac_res" >&5
7244 echo "${ECHO_T}$ac_res" >&6; }
7245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7246 cat >>confdefs.h <<_ACEOF
7247 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7256 for ac_header in dlfcn.h
7258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 ac_res=`eval echo '${'$as_ac_Header'}'`
7266 { echo "$as_me:$LINENO: result: $ac_res" >&5
7267 echo "${ECHO_T}$ac_res" >&6; }
7269 # Is the header compilable?
7270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7272 cat >conftest.$ac_ext <<_ACEOF
7275 cat confdefs.h >>conftest.$ac_ext
7276 cat >>conftest.$ac_ext <<_ACEOF
7277 /* end confdefs.h. */
7278 $ac_includes_default
7279 @%:@include <$ac_header>
7281 rm -f conftest.$ac_objext
7282 if { (ac_try="$ac_compile"
7284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7285 *) ac_try_echo=$ac_try;;
7287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7288 (eval "$ac_compile") 2>conftest.er1
7290 grep -v '^ *+' conftest.er1 >conftest.err
7292 cat conftest.err >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); } && {
7295 test -z "$ac_c_werror_flag" ||
7296 test ! -s conftest.err
7297 } && test -s conftest.$ac_objext; then
7298 ac_header_compiler=yes
7300 echo "$as_me: failed program was:" >&5
7301 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_header_compiler=no
7306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7308 echo "${ECHO_T}$ac_header_compiler" >&6; }
7310 # Is the header present?
7311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 @%:@include <$ac_header>
7321 if { (ac_try="$ac_cpp conftest.$ac_ext"
7323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } >/dev/null && {
7334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7337 ac_header_preproc=yes
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_header_preproc=no
7345 rm -f conftest.err conftest.$ac_ext
7346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7347 echo "${ECHO_T}$ac_header_preproc" >&6; }
7349 # So? What about this header?
7350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7352 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7356 ac_header_preproc=yes
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7362 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7363 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7365 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7366 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7369 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 eval "$as_ac_Header=\$ac_header_preproc"
7381 ac_res=`eval echo '${'$as_ac_Header'}'`
7382 { echo "$as_me:$LINENO: result: $ac_res" >&5
7383 echo "${ECHO_T}$ac_res" >&6; }
7386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7387 cat >>confdefs.h <<_ACEOF
7388 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7397 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7398 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7399 (test "X$CXX" != "Xg++"))) ; then
7401 ac_cpp='$CXXCPP $CPPFLAGS'
7402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7406 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7407 if test -z "$CXXCPP"; then
7408 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 # Double quotes because CXXCPP needs to be expanded
7412 for CXXCPP in "$CXX -E" "/lib/cpp"
7415 for ac_cxx_preproc_warn_flag in '' yes
7417 # Use a header file that comes with gcc, so configuring glibc
7418 # with a fresh cross-compiler works.
7419 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7420 # <limits.h> exists even on freestanding compilers.
7421 # On the NeXT, cc -E runs the code through the compiler's parser,
7422 # not just through cpp. "Syntax error" is here to catch this case.
7423 cat >conftest.$ac_ext <<_ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7430 @%:@ include <limits.h>
7432 @%:@ include <assert.h>
7436 if { (ac_try="$ac_cpp conftest.$ac_ext"
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } >/dev/null && {
7449 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7450 test ! -s conftest.err
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 # Broken: fails on valid input.
7461 rm -f conftest.err conftest.$ac_ext
7463 # OK, works on sane cases. Now check whether nonexistent headers
7464 # can be detected and how.
7465 cat >conftest.$ac_ext <<_ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h. */
7471 @%:@include <ac_nonexistent.h>
7473 if { (ac_try="$ac_cpp conftest.$ac_ext"
7475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7476 *) ac_try_echo=$ac_try;;
7478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7481 grep -v '^ *+' conftest.er1 >conftest.err
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } >/dev/null && {
7486 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7487 test ! -s conftest.err
7489 # Broken: success on invalid input.
7492 echo "$as_me: failed program was:" >&5
7493 sed 's/^/| /' conftest.$ac_ext >&5
7495 # Passes both tests.
7500 rm -f conftest.err conftest.$ac_ext
7503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7504 rm -f conftest.err conftest.$ac_ext
7505 if $ac_preproc_ok; then
7510 ac_cv_prog_CXXCPP=$CXXCPP
7513 CXXCPP=$ac_cv_prog_CXXCPP
7515 ac_cv_prog_CXXCPP=$CXXCPP
7517 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7518 echo "${ECHO_T}$CXXCPP" >&6; }
7520 for ac_cxx_preproc_warn_flag in '' yes
7522 # Use a header file that comes with gcc, so configuring glibc
7523 # with a fresh cross-compiler works.
7524 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7525 # <limits.h> exists even on freestanding compilers.
7526 # On the NeXT, cc -E runs the code through the compiler's parser,
7527 # not just through cpp. "Syntax error" is here to catch this case.
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7535 @%:@ include <limits.h>
7537 @%:@ include <assert.h>
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7549 grep -v '^ *+' conftest.er1 >conftest.err
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } >/dev/null && {
7554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7555 test ! -s conftest.err
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562 # Broken: fails on valid input.
7566 rm -f conftest.err conftest.$ac_ext
7568 # OK, works on sane cases. Now check whether nonexistent headers
7569 # can be detected and how.
7570 cat >conftest.$ac_ext <<_ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 @%:@include <ac_nonexistent.h>
7578 if { (ac_try="$ac_cpp conftest.$ac_ext"
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7586 grep -v '^ *+' conftest.er1 >conftest.err
7588 cat conftest.err >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); } >/dev/null && {
7591 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7592 test ! -s conftest.err
7594 # Broken: success on invalid input.
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7600 # Passes both tests.
7605 rm -f conftest.err conftest.$ac_ext
7608 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7609 rm -f conftest.err conftest.$ac_ext
7610 if $ac_preproc_ok; then
7613 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }
7621 ac_cpp='$CXXCPP $CPPFLAGS'
7622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7633 if test -n "$ac_tool_prefix"; then
7634 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7636 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7637 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7640 if test "${ac_cv_prog_F77+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7643 if test -n "$F77"; then
7644 ac_cv_prog_F77="$F77" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7664 if test -n "$F77"; then
7665 { echo "$as_me:$LINENO: result: $F77" >&5
7666 echo "${ECHO_T}$F77" >&6; }
7668 { echo "$as_me:$LINENO: result: no" >&5
7669 echo "${ECHO_T}no" >&6; }
7673 test -n "$F77" && break
7676 if test -z "$F77"; then
7678 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7684 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 if test -n "$ac_ct_F77"; then
7688 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7697 ac_cv_prog_ac_ct_F77="$ac_prog"
7698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7708 if test -n "$ac_ct_F77"; then
7709 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7710 echo "${ECHO_T}$ac_ct_F77" >&6; }
7712 { echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6; }
7717 test -n "$ac_ct_F77" && break
7720 if test "x$ac_ct_F77" = x; then
7723 case $cross_compiling:$ac_tool_warned in
7725 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7726 whose name does not start with the host triplet. If you think this
7727 configuration is useful to you, please write to autoconf@gnu.org." >&5
7728 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7729 whose name does not start with the host triplet. If you think this
7730 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7731 ac_tool_warned=yes ;;
7738 # Provide some information about the compiler.
7739 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7740 ac_compiler=`set X $ac_compile; echo $2`
7741 { (ac_try="$ac_compiler --version >&5"
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7747 (eval "$ac_compiler --version >&5") 2>&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }
7751 { (ac_try="$ac_compiler -v >&5"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7757 (eval "$ac_compiler -v >&5") 2>&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }
7761 { (ac_try="$ac_compiler -V >&5"
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_compiler -V >&5") 2>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); }
7773 # If we don't use `.F' as extension, the preprocessor is not run on the
7774 # input file. (Note that this only needs to work for GNU compilers.)
7777 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7778 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7779 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 cat >conftest.$ac_ext <<_ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_f77_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7819 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7820 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7822 ac_test_FFLAGS=${FFLAGS+set}
7823 ac_save_FFLAGS=$FFLAGS
7825 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7826 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7827 if test "${ac_cv_prog_f77_g+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 cat >conftest.$ac_ext <<_ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7845 grep -v '^ *+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_f77_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_cv_prog_f77_g=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7865 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7866 if test "$ac_test_FFLAGS" = set; then
7867 FFLAGS=$ac_save_FFLAGS
7868 elif test $ac_cv_prog_f77_g = yes; then
7869 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7875 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7882 G77=`test $ac_compiler_gnu = yes && echo yes`
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7891 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7892 # find the maximum length of command line arguments
7893 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7894 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7895 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 # On DJGPP, this test can blow up pretty badly due to problems in libc
7904 # (any single argument exceeding 2000 bytes causes a buffer overrun
7905 # during glob expansion). Even if it were fixed, the result of this
7906 # check would be larger than it should be.
7907 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7911 # Under GNU Hurd, this test is not required because there is
7912 # no limit to the length of command line arguments.
7913 # Libtool will interpret -1 as no limit whatsoever
7914 lt_cv_sys_max_cmd_len=-1;
7918 # On Win9x/ME, this test blows up -- it succeeds, but takes
7919 # about 5 minutes as the teststring grows exponentially.
7920 # Worse, since 9x/ME are not pre-emptively multitasking,
7921 # you end up with a "frozen" computer, even though with patience
7922 # the test eventually succeeds (with a max line length of 256k).
7923 # Instead, let's just punt: use the minimum linelength reported by
7924 # all of the supported platforms: 8192 (on NT/2K/XP).
7925 lt_cv_sys_max_cmd_len=8192;
7929 # On AmigaOS with pdksh, this test takes hours, literally.
7930 # So we just punt and use a minimum line length of 8192.
7931 lt_cv_sys_max_cmd_len=8192;
7934 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7935 # This has been around since 386BSD, at least. Likely further.
7936 if test -x /sbin/sysctl; then
7937 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7938 elif test -x /usr/sbin/sysctl; then
7939 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7941 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7943 # And add a safety zone
7944 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7949 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7950 lt_cv_sys_max_cmd_len=196608
7954 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7955 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7956 # nice to cause kernel panics so lets avoid the loop below.
7957 # First set a reasonable default.
7958 lt_cv_sys_max_cmd_len=16384
7960 if test -x /sbin/sysconfig; then
7961 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7962 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7967 lt_cv_sys_max_cmd_len=102400
7969 sysv5* | sco5v6* | sysv4.2uw2*)
7970 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7971 if test -n "$kargmax"; then
7972 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7974 lt_cv_sys_max_cmd_len=32768
7978 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7979 if test -n "$lt_cv_sys_max_cmd_len"; then
7980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7983 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7984 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7985 = "XX$teststring") >/dev/null 2>&1 &&
7986 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7987 lt_cv_sys_max_cmd_len=$new_result &&
7988 test $i != 17 # 1/2 MB should be enough
7991 teststring=$teststring$teststring
7994 # Add a significant safety factor because C++ compilers can tack on massive
7995 # amounts of additional arguments before passing them to the linker.
7996 # It appears as though 1/2 is a usable value.
7997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8004 if test -n $lt_cv_sys_max_cmd_len ; then
8005 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8006 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8008 { echo "$as_me:$LINENO: result: none" >&5
8009 echo "${ECHO_T}none" >&6; }
8016 # Check for command to grab the raw symbol name followed by C symbol from nm.
8017 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8018 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8019 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 # These are sane defaults that work on at least a few old systems.
8024 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8026 # Character class describing NM global symbol codes.
8027 symcode='[BCDEGRST]'
8029 # Regexp to match symbols that can be accessed directly from C.
8030 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8032 # Transform an extracted symbol line into a proper C declaration
8033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8035 # Transform an extracted symbol line into symbol name and symbol address
8036 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'"
8038 # Define system-specific variables.
8043 cygwin* | mingw* | pw32*)
8044 symcode='[ABCDGISTW]'
8046 hpux*) # Its linker distinguishes data from code symbols
8047 if test "$host_cpu" = ia64; then
8048 symcode='[ABCDEGRST]'
8050 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8051 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'"
8053 linux* | k*bsd*-gnu)
8054 if test "$host_cpu" = ia64; then
8055 symcode='[ABCDGIRSTW]'
8056 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8057 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'"
8061 symcode='[BCDEGRST]'
8064 symcode='[BCDEGQRST]'
8075 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8083 # Handle CRLF in mingw tool chain
8087 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8091 # If we're using GNU nm, then use its standard symbol codes.
8092 case `$NM -V 2>&1` in
8093 *GNU* | *'with BFD'*)
8094 symcode='[ABCDGIRSTW]' ;;
8097 # Try without a prefix undercore, then with it.
8098 for ac_symprfx in "" "_"; do
8100 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8101 symxfrm="\\1 $ac_symprfx\\2 \\2"
8103 # Write the raw and C identifiers.
8104 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8106 # Check to see that the pipe works correctly.
8110 cat > conftest.$ac_ext <<EOF
8115 void nm_test_func(){}
8119 int main(){nm_test_var='a';nm_test_func();return(0);}
8122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8123 (eval $ac_compile) 2>&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; then
8127 # Now try to grab the symbols.
8129 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8130 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); } && test -s "$nlist"; then
8134 # Try sorting and uniquifying the output.
8135 if sort "$nlist" | uniq > "$nlist"T; then
8136 mv -f "$nlist"T "$nlist"
8141 # Make sure that we snagged all the symbols we need.
8142 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8143 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8144 cat <<EOF > conftest.$ac_ext
8150 # Now generate the symbol file.
8151 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8153 cat <<EOF >> conftest.$ac_ext
8154 #if defined (__STDC__) && __STDC__
8155 # define lt_ptr_t void *
8157 # define lt_ptr_t char *
8161 /* The mapping between symbol names and symbols. */
8166 lt_preloaded_symbols[] =
8169 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8170 cat <<\EOF >> conftest.$ac_ext
8178 # Now try linking the two files.
8179 mv conftest.$ac_objext conftstm.$ac_objext
8180 lt_save_LIBS="$LIBS"
8181 lt_save_CFLAGS="$CFLAGS"
8182 LIBS="conftstm.$ac_objext"
8183 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8191 LIBS="$lt_save_LIBS"
8192 CFLAGS="$lt_save_CFLAGS"
8194 echo "cannot find nm_test_func in $nlist" >&5
8197 echo "cannot find nm_test_var in $nlist" >&5
8200 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8203 echo "$progname: failed program was:" >&5
8204 cat conftest.$ac_ext >&5
8206 rm -rf conftest* conftst*
8208 # Do not use the global_symbol_pipe unless it works.
8209 if test "$pipe_works" = yes; then
8212 lt_cv_sys_global_symbol_pipe=
8218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8219 lt_cv_sys_global_symbol_to_cdecl=
8221 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8222 { echo "$as_me:$LINENO: result: failed" >&5
8223 echo "${ECHO_T}failed" >&6; }
8225 { echo "$as_me:$LINENO: result: ok" >&5
8226 echo "${ECHO_T}ok" >&6; }
8229 { echo "$as_me:$LINENO: checking for objdir" >&5
8230 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8231 if test "${lt_cv_objdir+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 rm -f .libs 2>/dev/null
8235 mkdir .libs 2>/dev/null
8236 if test -d .libs; then
8239 # MS-DOS does not allow filenames that begin with a dot.
8242 rmdir .libs 2>/dev/null
8244 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8245 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8246 objdir=$lt_cv_objdir
8254 # AIX sometimes has problems with the GCC collect2 program. For some
8255 # reason, if we set the COLLECT_NAMES environment variable, the problems
8256 # vanish in a puff of smoke.
8257 if test "X${COLLECT_NAMES+set}" != Xset; then
8259 export COLLECT_NAMES
8264 # Sed substitution that helps us do robust quoting. It backslashifies
8265 # metacharacters that are still active within double-quoted strings.
8266 Xsed='sed -e 1s/^X//'
8267 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8269 # Same as above, but do not quote variable references.
8270 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8272 # Sed substitution to delay expansion of an escaped shell variable in a
8273 # double_quote_subst'ed string.
8274 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8276 # Sed substitution to avoid accidental globbing in evaled expressions
8277 no_glob_subst='s/\*/\\\*/g'
8283 default_ofile=libtool
8284 can_build_shared=yes
8286 # All known linkers require a `.a' archive for static linking (except MSVC,
8287 # which needs '.lib').
8289 ltmain="$ac_aux_dir/ltmain.sh"
8290 ofile="$default_ofile"
8291 with_gnu_ld="$lt_cv_prog_gnu_ld"
8293 if test -n "$ac_tool_prefix"; then
8294 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}ar; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_prog_AR+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 if test -n "$AR"; then
8302 ac_cv_prog_AR="$AR" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_AR="${ac_tool_prefix}ar"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 if test -n "$AR"; then
8323 { echo "$as_me:$LINENO: result: $AR" >&5
8324 echo "${ECHO_T}$AR" >&6; }
8326 { echo "$as_me:$LINENO: result: no" >&5
8327 echo "${ECHO_T}no" >&6; }
8332 if test -z "$ac_cv_prog_AR"; then
8334 # Extract the first word of "ar", so it can be a program name with args.
8335 set dummy ar; ac_word=$2
8336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8338 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 if test -n "$ac_ct_AR"; then
8342 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir=.
8349 for ac_exec_ext in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_prog_ac_ct_AR="ar"
8352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8362 if test -n "$ac_ct_AR"; then
8363 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8364 echo "${ECHO_T}$ac_ct_AR" >&6; }
8366 { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8370 if test "x$ac_ct_AR" = x; then
8373 case $cross_compiling:$ac_tool_warned in
8375 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8376 whose name does not start with the host triplet. If you think this
8377 configuration is useful to you, please write to autoconf@gnu.org." >&5
8378 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8379 whose name does not start with the host triplet. If you think this
8380 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8381 ac_tool_warned=yes ;;
8389 if test -n "$ac_tool_prefix"; then
8390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8394 if test "${ac_cv_prog_RANLIB+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 if test -n "$RANLIB"; then
8398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8417 RANLIB=$ac_cv_prog_RANLIB
8418 if test -n "$RANLIB"; then
8419 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8420 echo "${ECHO_T}$RANLIB" >&6; }
8422 { echo "$as_me:$LINENO: result: no" >&5
8423 echo "${ECHO_T}no" >&6; }
8428 if test -z "$ac_cv_prog_RANLIB"; then
8429 ac_ct_RANLIB=$RANLIB
8430 # Extract the first word of "ranlib", so it can be a program name with args.
8431 set dummy ranlib; ac_word=$2
8432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 if test -n "$ac_ct_RANLIB"; then
8438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447 ac_cv_prog_ac_ct_RANLIB="ranlib"
8448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8458 if test -n "$ac_ct_RANLIB"; then
8459 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8460 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8462 { echo "$as_me:$LINENO: result: no" >&5
8463 echo "${ECHO_T}no" >&6; }
8466 if test "x$ac_ct_RANLIB" = x; then
8469 case $cross_compiling:$ac_tool_warned in
8471 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8472 whose name does not start with the host triplet. If you think this
8473 configuration is useful to you, please write to autoconf@gnu.org." >&5
8474 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8475 whose name does not start with the host triplet. If you think this
8476 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8477 ac_tool_warned=yes ;;
8479 RANLIB=$ac_ct_RANLIB
8482 RANLIB="$ac_cv_prog_RANLIB"
8485 if test -n "$ac_tool_prefix"; then
8486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8487 set dummy ${ac_tool_prefix}strip; ac_word=$2
8488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8490 if test "${ac_cv_prog_STRIP+set}" = set; then
8491 echo $ECHO_N "(cached) $ECHO_C" >&6
8493 if test -n "$STRIP"; then
8494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 test -z "$as_dir" && as_dir=.
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 STRIP=$ac_cv_prog_STRIP
8514 if test -n "$STRIP"; then
8515 { echo "$as_me:$LINENO: result: $STRIP" >&5
8516 echo "${ECHO_T}$STRIP" >&6; }
8518 { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8524 if test -z "$ac_cv_prog_STRIP"; then
8526 # Extract the first word of "strip", so it can be a program name with args.
8527 set dummy strip; ac_word=$2
8528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8531 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 if test -n "$ac_ct_STRIP"; then
8534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_prog_ac_ct_STRIP="strip"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8554 if test -n "$ac_ct_STRIP"; then
8555 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8556 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8558 { echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6; }
8562 if test "x$ac_ct_STRIP" = x; then
8565 case $cross_compiling:$ac_tool_warned in
8567 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8568 whose name does not start with the host triplet. If you think this
8569 configuration is useful to you, please write to autoconf@gnu.org." >&5
8570 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8571 whose name does not start with the host triplet. If you think this
8572 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8573 ac_tool_warned=yes ;;
8578 STRIP="$ac_cv_prog_STRIP"
8583 old_CFLAGS="$CFLAGS"
8585 # Set sane defaults for various variables
8586 test -z "$AR" && AR=ar
8587 test -z "$AR_FLAGS" && AR_FLAGS=cru
8588 test -z "$AS" && AS=as
8589 test -z "$CC" && CC=cc
8590 test -z "$LTCC" && LTCC=$CC
8591 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8592 test -z "$DLLTOOL" && DLLTOOL=dlltool
8593 test -z "$LD" && LD=ld
8594 test -z "$LN_S" && LN_S="ln -s"
8595 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8596 test -z "$NM" && NM=nm
8597 test -z "$SED" && SED=sed
8598 test -z "$OBJDUMP" && OBJDUMP=objdump
8599 test -z "$RANLIB" && RANLIB=:
8600 test -z "$STRIP" && STRIP=:
8601 test -z "$ac_objext" && ac_objext=o
8603 # Determine commands to create old-style static archives.
8604 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8605 old_postinstall_cmds='chmod 644 $oldlib'
8606 old_postuninstall_cmds=
8608 if test -n "$RANLIB"; then
8611 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8614 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8617 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8620 for cc_temp in $compiler""; do
8622 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8623 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8628 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8631 # Only perform the check for file, if the check method requires it
8632 case $deplibs_check_method in
8634 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8635 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8636 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8637 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/${ac_tool_prefix}file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such. This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem. Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8689 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8691 { echo "$as_me:$LINENO: result: no" >&5
8692 echo "${ECHO_T}no" >&6; }
8695 if test -z "$lt_cv_path_MAGIC_CMD"; then
8696 if test -n "$ac_tool_prefix"; then
8697 { echo "$as_me:$LINENO: checking for file" >&5
8698 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8699 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8707 lt_save_MAGIC_CMD="$MAGIC_CMD"
8708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710 for ac_dir in $ac_dummy; do
8712 test -z "$ac_dir" && ac_dir=.
8713 if test -f $ac_dir/file; then
8714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8715 if test -n "$file_magic_test_file"; then
8716 case $deplibs_check_method in
8718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721 $EGREP "$file_magic_regex" > /dev/null; then
8726 *** Warning: the command libtool uses to detect shared libraries,
8727 *** $file_magic_cmd, produces output that libtool cannot recognize.
8728 *** The result is that libtool may fail to recognize shared libraries
8729 *** as such. This will affect the creation of libtool libraries that
8730 *** depend on shared libraries, but programs linked with such libtool
8731 *** libraries will work regardless of this problem. Nevertheless, you
8732 *** may want to report the problem to your system manager and/or to
8733 *** bug-libtool@gnu.org
8743 MAGIC_CMD="$lt_save_MAGIC_CMD"
8748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749 if test -n "$MAGIC_CMD"; then
8750 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8751 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8768 rhapsody* | darwin*)
8769 if test -n "$ac_tool_prefix"; then
8770 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8771 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8774 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 if test -n "$DSYMUTIL"; then
8778 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8798 if test -n "$DSYMUTIL"; then
8799 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
8800 echo "${ECHO_T}$DSYMUTIL" >&6; }
8802 { echo "$as_me:$LINENO: result: no" >&5
8803 echo "${ECHO_T}no" >&6; }
8808 if test -z "$ac_cv_prog_DSYMUTIL"; then
8809 ac_ct_DSYMUTIL=$DSYMUTIL
8810 # Extract the first word of "dsymutil", so it can be a program name with args.
8811 set dummy dsymutil; ac_word=$2
8812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8814 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8817 if test -n "$ac_ct_DSYMUTIL"; then
8818 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 test -z "$as_dir" && as_dir=.
8825 for ac_exec_ext in '' $ac_executable_extensions; do
8826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8827 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8838 if test -n "$ac_ct_DSYMUTIL"; then
8839 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8840 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
8842 { echo "$as_me:$LINENO: result: no" >&5
8843 echo "${ECHO_T}no" >&6; }
8846 if test "x$ac_ct_DSYMUTIL" = x; then
8849 case $cross_compiling:$ac_tool_warned in
8851 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8852 whose name does not start with the host triplet. If you think this
8853 configuration is useful to you, please write to autoconf@gnu.org." >&5
8854 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8855 whose name does not start with the host triplet. If you think this
8856 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8857 ac_tool_warned=yes ;;
8859 DSYMUTIL=$ac_ct_DSYMUTIL
8862 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8865 if test -n "$ac_tool_prefix"; then
8866 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8867 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8870 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 if test -n "$NMEDIT"; then
8874 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 NMEDIT=$ac_cv_prog_NMEDIT
8894 if test -n "$NMEDIT"; then
8895 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
8896 echo "${ECHO_T}$NMEDIT" >&6; }
8898 { echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6; }
8904 if test -z "$ac_cv_prog_NMEDIT"; then
8905 ac_ct_NMEDIT=$NMEDIT
8906 # Extract the first word of "nmedit", so it can be a program name with args.
8907 set dummy nmedit; ac_word=$2
8908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8910 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8911 echo $ECHO_N "(cached) $ECHO_C" >&6
8913 if test -n "$ac_ct_NMEDIT"; then
8914 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8934 if test -n "$ac_ct_NMEDIT"; then
8935 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8936 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
8938 { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8942 if test "x$ac_ct_NMEDIT" = x; then
8945 case $cross_compiling:$ac_tool_warned in
8947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8948 whose name does not start with the host triplet. If you think this
8949 configuration is useful to you, please write to autoconf@gnu.org." >&5
8950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8951 whose name does not start with the host triplet. If you think this
8952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8953 ac_tool_warned=yes ;;
8955 NMEDIT=$ac_ct_NMEDIT
8958 NMEDIT="$ac_cv_prog_NMEDIT"
8962 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8963 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8964 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 lt_cv_apple_cc_single_mod=no
8968 if test -z "${LT_MULTI_MODULE}"; then
8969 # By default we will add the -single_module flag. You can override
8970 # by either setting the environment variable LT_MULTI_MODULE
8971 # non-empty at configure time, or by adding -multi_module to the
8973 echo "int foo(void){return 1;}" > conftest.c
8974 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8975 -dynamiclib ${wl}-single_module conftest.c
8976 if test -f libconftest.dylib; then
8977 lt_cv_apple_cc_single_mod=yes
8978 rm -rf libconftest.dylib*
8983 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8984 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8985 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8986 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8987 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8990 lt_cv_ld_exported_symbols_list=no
8991 save_LDFLAGS=$LDFLAGS
8992 echo "_main" > conftest.sym
8993 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9009 rm -f conftest.$ac_objext conftest$ac_exeext
9010 if { (ac_try="$ac_link"
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1 >conftest.err
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext &&
9026 $as_test_x conftest$ac_exeext; then
9027 lt_cv_ld_exported_symbols_list=yes
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 lt_cv_ld_exported_symbols_list=no
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036 conftest$ac_exeext conftest.$ac_ext
9037 LDFLAGS="$save_LDFLAGS"
9040 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9041 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
9043 rhapsody* | darwin1.[0123])
9044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9048 # if running on 10.5 or later, the deployment target defaults
9049 # to the OS version, if on x86, and 10.4, the deployment
9050 # target defaults to 10.4. Don't you love it?
9051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9052 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9062 _lt_dar_single_mod='$single_module'
9064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9067 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
9069 if test "$DSYMUTIL" != ":"; then
9070 _lt_dsymutil="~$DSYMUTIL \$lib || :"
9081 # Check whether --enable-libtool-lock was given.
9082 if test "${enable_libtool_lock+set}" = set; then
9083 enableval=$enable_libtool_lock;
9086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9089 # Check whether --with-pic was given.
9090 if test "${with_pic+set}" = set; then
9091 withval=$with_pic; pic_mode="$withval"
9096 test -z "$pic_mode" && pic_mode=default
9098 # Use C for the default configuration in the libtool script
9102 ac_cpp='$CPP $CPPFLAGS'
9103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9108 # Source file extension for C test sources.
9111 # Object file extension for compiled C test sources.
9115 # Code to be used in simple compile tests
9116 lt_simple_compile_test_code="int some_variable = 0;"
9118 # Code to be used in simple link tests
9119 lt_simple_link_test_code='int main(){return(0);}'
9122 # If no C compiler was specified, use CC.
9125 # If no C compiler flags were specified, use CFLAGS.
9126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9128 # Allow CC to be a program name with arguments.
9132 # save warnings/boilerplate of simple test code
9133 ac_outfile=conftest.$ac_objext
9134 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9135 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9136 _lt_compiler_boilerplate=`cat conftest.err`
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9141 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9142 _lt_linker_boilerplate=`cat conftest.err`
9147 ## There is no encapsulation within the following macros, do not change
9148 ## the running order or otherwise move them around unless you know exactly
9149 ## what you are doing...
9151 lt_prog_compiler_no_builtin_flag=
9153 if test "$GCC" = yes; then
9154 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9157 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9158 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 lt_cv_prog_compiler_rtti_exceptions=no
9163 ac_outfile=conftest.$ac_objext
9164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165 lt_compiler_flag="-fno-rtti -fno-exceptions"
9166 # Insert the option either (1) after the last *FLAGS variable, or
9167 # (2) before a word containing "conftest.", or (3) at the end.
9168 # Note that $ac_compile itself does not contain backslashes and begins
9169 # with a dollar sign (not a hyphen), so the echo should work correctly.
9170 # The option is referenced via a variable to avoid confusing sed.
9171 lt_compile=`echo "$ac_compile" | $SED \
9172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174 -e 's:$: $lt_compiler_flag:'`
9175 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9176 (eval "$lt_compile" 2>conftest.err)
9178 cat conftest.err >&5
9179 echo "$as_me:__oline__: \$? = $ac_status" >&5
9180 if (exit $ac_status) && test -s "$ac_outfile"; then
9181 # The compiler can only warn and ignore the option if not recognized
9182 # So say no if there are warnings other than the usual output.
9183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9186 lt_cv_prog_compiler_rtti_exceptions=yes
9192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9193 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9195 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9196 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9203 lt_prog_compiler_wl=
9204 lt_prog_compiler_pic=
9205 lt_prog_compiler_static=
9207 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9208 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9210 if test "$GCC" = yes; then
9211 lt_prog_compiler_wl='-Wl,'
9212 lt_prog_compiler_static='-static'
9216 # All AIX code is PIC.
9217 if test "$host_cpu" = ia64; then
9218 # AIX 5 now supports IA64 processor
9219 lt_prog_compiler_static='-Bstatic'
9224 # FIXME: we need at least 68020 code to build shared libraries, but
9225 # adding the `-m68020' flag to GCC prevents building anything better,
9227 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9231 # PIC is the default for these OSes.
9234 mingw* | cygwin* | pw32* | os2*)
9235 # This hack is so that the source file can tell whether it is being
9236 # built for inclusion in a dll (and should export symbols for example).
9237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9238 # (--disable-auto-import) libraries
9239 lt_prog_compiler_pic='-DDLL_EXPORT'
9242 darwin* | rhapsody*)
9243 # PIC is the default on this platform
9244 # Common symbols not allowed in MH_DYLIB files
9245 lt_prog_compiler_pic='-fno-common'
9249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9250 # Instead, we relocate shared libraries at runtime.
9254 # Just because we use GCC doesn't mean we suddenly get shared libraries
9255 # on systems that don't support them.
9256 lt_prog_compiler_can_build_shared=no
9261 if test -d /usr/nec; then
9262 lt_prog_compiler_pic=-Kconform_pic
9267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9274 lt_prog_compiler_pic='-fPIC'
9280 lt_prog_compiler_pic='-fPIC'
9284 # PORTME Check for flag to pass linker flags through the system compiler.
9287 lt_prog_compiler_wl='-Wl,'
9288 if test "$host_cpu" = ia64; then
9289 # AIX 5 now supports IA64 processor
9290 lt_prog_compiler_static='-Bstatic'
9292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9296 # PIC is the default on this platform
9297 # Common symbols not allowed in MH_DYLIB files
9298 case $cc_basename in
9300 lt_prog_compiler_pic='-qnocommon'
9301 lt_prog_compiler_wl='-Wl,'
9306 mingw* | cygwin* | pw32* | os2*)
9307 # This hack is so that the source file can tell whether it is being
9308 # built for inclusion in a dll (and should export symbols for example).
9309 lt_prog_compiler_pic='-DDLL_EXPORT'
9312 hpux9* | hpux10* | hpux11*)
9313 lt_prog_compiler_wl='-Wl,'
9314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9321 lt_prog_compiler_pic='+Z'
9324 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9325 lt_prog_compiler_static='${wl}-a ${wl}archive'
9328 irix5* | irix6* | nonstopux*)
9329 lt_prog_compiler_wl='-Wl,'
9330 # PIC (with -KPIC) is the default.
9331 lt_prog_compiler_static='-non_shared'
9335 lt_prog_compiler_pic='-KPIC'
9336 lt_prog_compiler_static='-Bstatic'
9339 linux* | k*bsd*-gnu)
9340 case $cc_basename in
9342 lt_prog_compiler_wl='-Wl,'
9343 lt_prog_compiler_pic='-KPIC'
9344 lt_prog_compiler_static='-static'
9346 pgcc* | pgf77* | pgf90* | pgf95*)
9347 # Portland Group compilers (*not* the Pentium gcc compiler,
9348 # which looks to be a dead project)
9349 lt_prog_compiler_wl='-Wl,'
9350 lt_prog_compiler_pic='-fpic'
9351 lt_prog_compiler_static='-Bstatic'
9354 lt_prog_compiler_wl='-Wl,'
9355 # All Alpha code is PIC.
9356 lt_prog_compiler_static='-non_shared'
9359 case `$CC -V 2>&1 | sed 5q` in
9362 lt_prog_compiler_pic='-KPIC'
9363 lt_prog_compiler_static='-Bstatic'
9364 lt_prog_compiler_wl='-Wl,'
9367 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9370 lt_prog_compiler_wl=''
9377 osf3* | osf4* | osf5*)
9378 lt_prog_compiler_wl='-Wl,'
9379 # All OSF/1 code is PIC.
9380 lt_prog_compiler_static='-non_shared'
9384 lt_prog_compiler_static='-non_shared'
9388 lt_prog_compiler_pic='-KPIC'
9389 lt_prog_compiler_static='-Bstatic'
9390 case $cc_basename in
9392 lt_prog_compiler_wl='-Qoption ld ';;
9394 lt_prog_compiler_wl='-Wl,';;
9399 lt_prog_compiler_wl='-Qoption ld '
9400 lt_prog_compiler_pic='-PIC'
9401 lt_prog_compiler_static='-Bstatic'
9404 sysv4 | sysv4.2uw2* | sysv4.3*)
9405 lt_prog_compiler_wl='-Wl,'
9406 lt_prog_compiler_pic='-KPIC'
9407 lt_prog_compiler_static='-Bstatic'
9411 if test -d /usr/nec ;then
9412 lt_prog_compiler_pic='-Kconform_pic'
9413 lt_prog_compiler_static='-Bstatic'
9417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9418 lt_prog_compiler_wl='-Wl,'
9419 lt_prog_compiler_pic='-KPIC'
9420 lt_prog_compiler_static='-Bstatic'
9424 lt_prog_compiler_wl='-Wl,'
9425 lt_prog_compiler_can_build_shared=no
9429 lt_prog_compiler_pic='-pic'
9430 lt_prog_compiler_static='-Bstatic'
9434 lt_prog_compiler_can_build_shared=no
9439 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9440 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9443 # Check to make sure the PIC flag actually works.
9445 if test -n "$lt_prog_compiler_pic"; then
9447 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9448 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9449 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 lt_cv_prog_compiler_pic_works=no
9453 ac_outfile=conftest.$ac_objext
9454 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9455 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9456 # Insert the option either (1) after the last *FLAGS variable, or
9457 # (2) before a word containing "conftest.", or (3) at the end.
9458 # Note that $ac_compile itself does not contain backslashes and begins
9459 # with a dollar sign (not a hyphen), so the echo should work correctly.
9460 # The option is referenced via a variable to avoid confusing sed.
9461 lt_compile=`echo "$ac_compile" | $SED \
9462 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9463 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9464 -e 's:$: $lt_compiler_flag:'`
9465 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9466 (eval "$lt_compile" 2>conftest.err)
9468 cat conftest.err >&5
9469 echo "$as_me:__oline__: \$? = $ac_status" >&5
9470 if (exit $ac_status) && test -s "$ac_outfile"; then
9471 # The compiler can only warn and ignore the option if not recognized
9472 # So say no if there are warnings other than the usual output.
9473 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler_pic_works=yes
9482 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9483 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9485 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9486 case $lt_prog_compiler_pic in
9488 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9491 lt_prog_compiler_pic=
9492 lt_prog_compiler_can_build_shared=no
9497 # For platforms which do not support PIC, -DPIC is meaningless:
9499 lt_prog_compiler_pic=
9502 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9507 # Check to make sure the static flag actually works.
9509 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9510 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9511 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9512 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 lt_cv_prog_compiler_static_works=no
9516 save_LDFLAGS="$LDFLAGS"
9517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9520 # The linker can only warn and ignore the option if not recognized
9521 # So say no if there are warnings
9522 if test -s conftest.err; then
9523 # Append any errors to the config.log.
9524 cat conftest.err 1>&5
9525 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9527 if diff conftest.exp conftest.er2 >/dev/null; then
9528 lt_cv_prog_compiler_static_works=yes
9531 lt_cv_prog_compiler_static_works=yes
9535 LDFLAGS="$save_LDFLAGS"
9538 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9539 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9541 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9544 lt_prog_compiler_static=
9548 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9549 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 lt_cv_prog_compiler_c_o=no
9554 $rm -r conftest 2>/dev/null
9558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9560 lt_compiler_flag="-o out/conftest2.$ac_objext"
9561 # Insert the option either (1) after the last *FLAGS variable, or
9562 # (2) before a word containing "conftest.", or (3) at the end.
9563 # Note that $ac_compile itself does not contain backslashes and begins
9564 # with a dollar sign (not a hyphen), so the echo should work correctly.
9565 lt_compile=`echo "$ac_compile" | $SED \
9566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9568 -e 's:$: $lt_compiler_flag:'`
9569 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9570 (eval "$lt_compile" 2>out/conftest.err)
9572 cat out/conftest.err >&5
9573 echo "$as_me:__oline__: \$? = $ac_status" >&5
9574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9576 # The compiler can only warn and ignore the option if not recognized
9577 # So say no if there are warnings
9578 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9581 lt_cv_prog_compiler_c_o=yes
9586 # SGI C++ compiler will create directory out/ii_files/ for
9587 # template instantiation
9588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9589 $rm out/* && rmdir out
9595 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9599 hard_links="nottested"
9600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9601 # do not overwrite the value of need_locks provided by the user
9602 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9608 ln conftest.a conftest.b 2>&5 || hard_links=no
9609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9610 { echo "$as_me:$LINENO: result: $hard_links" >&5
9611 echo "${ECHO_T}$hard_links" >&6; }
9612 if test "$hard_links" = no; then
9613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9621 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9625 allow_undefined_flag=
9626 enable_shared_with_static_runtimes=no
9628 archive_expsym_cmds=
9629 old_archive_From_new_cmds=
9630 old_archive_from_expsyms_cmds=
9631 export_dynamic_flag_spec=
9632 whole_archive_flag_spec=
9633 thread_safe_flag_spec=
9634 hardcode_libdir_flag_spec=
9635 hardcode_libdir_flag_spec_ld=
9636 hardcode_libdir_separator=
9639 hardcode_shlibpath_var=unsupported
9640 link_all_deplibs=unknown
9641 hardcode_automatic=no
9644 always_export_symbols=no
9645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9646 # include_expsyms should be a list of space-separated symbols to be *always*
9647 # included in the symbol list
9649 # exclude_expsyms can be an extended regexp of symbols to exclude
9650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9652 # as well as any symbol that contains `d'.
9653 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9655 # platforms (ab)use it in PIC code, but their linkers get confused if
9656 # the symbol is explicitly referenced. Since portable code cannot
9657 # rely on this symbol name, it's probably fine to never include it in
9658 # preloaded symbol tables.
9659 # Exclude shared library initialization/finalization symbols.
9660 extract_expsyms_cmds=
9661 # Just being paranoid about ensuring that cc_basename is set.
9662 for cc_temp in $compiler""; do
9664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9673 cygwin* | mingw* | pw32*)
9674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9675 # When not using gcc, we currently assume that we are using
9676 # Microsoft Visual C++.
9677 if test "$GCC" != yes; then
9682 # we just hope/assume this is gcc and not c89 (= MSVC++)
9691 if test "$with_gnu_ld" = yes; then
9692 # If archive_cmds runs LD, not CC, wlarc should be empty
9695 # Set some defaults for GNU ld with shared library support. These
9696 # are reset later if shared libraries are not supported. Putting them
9697 # here allows them to be overridden if necessary.
9698 runpath_var=LD_RUN_PATH
9699 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9700 export_dynamic_flag_spec='${wl}--export-dynamic'
9701 # ancient GNU ld didn't support --whole-archive et. al.
9702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9705 whole_archive_flag_spec=
9707 supports_anon_versioning=no
9708 case `$LD -v 2>/dev/null` in
9709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9712 *\ 2.11.*) ;; # other 2.11 versions
9713 *) supports_anon_versioning=yes ;;
9716 # See if GNU ld supports shared libraries.
9719 # On AIX/PPC, the GNU linker is very broken
9720 if test "$host_cpu" != ia64; then
9724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9725 *** to be unable to reliably create shared libraries on AIX.
9726 *** Therefore, libtool is disabling shared libraries support. If you
9727 *** really care for shared libraries, you may want to modify your PATH
9728 *** so that a non-GNU linker is found, and then restart.
9735 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)'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_minus_L=yes
9739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9740 # that the semantics of dynamic libraries on AmigaOS, at least up
9741 # to version 4, is to share data among multiple programs linked
9742 # with the same dynamic library. Since this doesn't match the
9743 # behavior of shared libraries on other platforms, we can't use
9749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9750 allow_undefined_flag=unsupported
9751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9752 # support --undefined. This deserves some investigation. FIXME
9753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759 cygwin* | mingw* | pw32*)
9760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9761 # as there is no search path for DLLs.
9762 hardcode_libdir_flag_spec='-L$libdir'
9763 allow_undefined_flag=unsupported
9764 always_export_symbols=no
9765 enable_shared_with_static_runtimes=yes
9766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9770 # If the export-symbols file already is a .def file (1st line
9771 # is EXPORTS), use it as is; otherwise, prepend...
9772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9773 cp $export_symbols $output_objdir/$soname.def;
9775 echo EXPORTS > $output_objdir/$soname.def;
9776 cat $export_symbols >> $output_objdir/$soname.def;
9778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786 hardcode_shlibpath_var=no
9787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9788 export_dynamic_flag_spec='${wl}-E'
9789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9790 # Instead, shared libraries are loaded at an image base (0x10000000 by
9791 # default) and relocated if they conflict, which is a slow very memory
9792 # consuming and fragmenting process. To avoid this, we pick a random,
9793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9796 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'
9799 gnu* | linux* | k*bsd*-gnu)
9800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9802 case $cc_basename,$host_cpu in
9803 pgcc*) # Portland Group C compiler
9804 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'
9805 tmp_addflag=' $pic_flag'
9807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9808 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'
9809 tmp_addflag=' $pic_flag -Mnomain' ;;
9810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9811 tmp_addflag=' -i_dynamic' ;;
9812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9813 tmp_addflag=' -i_dynamic -nofor_main' ;;
9814 ifc* | ifort*) # Intel Fortran compiler
9815 tmp_addflag=' -nofor_main' ;;
9817 case `$CC -V 2>&1 | sed 5q` in
9818 *Sun\ C*) # Sun C 5.9
9819 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9820 tmp_sharedflag='-G' ;;
9821 *Sun\ F*) # Sun Fortran 8.3
9822 tmp_sharedflag='-G' ;;
9824 tmp_sharedflag='-shared' ;;
9826 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9828 if test $supports_anon_versioning = yes; then
9829 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9831 $echo "local: *; };" >> $output_objdir/$libname.ver~
9832 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9841 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9854 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9855 *** create shared libraries on Solaris systems. Therefore, libtool
9856 *** is disabling shared libraries support. We urge you to upgrade GNU
9857 *** binutils to release 2.9.1 or newer. Another option is to modify
9858 *** your PATH or compiler configuration so that the native linker is
9859 *** used, and then restart.
9862 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9870 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9871 case `$LD -v 2>&1` in
9872 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9876 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9877 *** reliably create shared libraries on SCO systems. Therefore, libtool
9878 *** is disabling shared libraries support. We urge you to upgrade GNU
9879 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9880 *** your PATH or compiler configuration so that the native linker is
9881 *** used, and then restart.
9886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9887 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9889 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9898 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9901 hardcode_shlibpath_var=no
9905 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9906 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9907 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9914 if test "$ld_shlibs" = no; then
9916 hardcode_libdir_flag_spec=
9917 export_dynamic_flag_spec=
9918 whole_archive_flag_spec=
9921 # PORTME fill in a description of your system's linker (not GNU ld)
9924 allow_undefined_flag=unsupported
9925 always_export_symbols=yes
9926 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'
9927 # Note: this linker hardcodes the directories in LIBPATH if there
9928 # are no directories specified by -L.
9929 hardcode_minus_L=yes
9930 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9931 # Neither direct hardcoding nor static linking is supported with a
9933 hardcode_direct=unsupported
9938 if test "$host_cpu" = ia64; then
9939 # On IA64, the linker does run time linking by default, so we don't
9940 # have to do anything special.
9941 aix_use_runtimelinking=no
9942 exp_sym_flag='-Bexport'
9945 # If we're using GNU nm, then we don't want the "-C" option.
9946 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9947 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9948 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'
9950 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'
9952 aix_use_runtimelinking=no
9954 # Test if we are trying to use run time linking or normal
9955 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9956 # need to do runtime linking.
9957 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9958 for ld_flag in $LDFLAGS; do
9959 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9960 aix_use_runtimelinking=yes
9967 exp_sym_flag='-bexport'
9968 no_entry_flag='-bnoentry'
9971 # When large executables or shared objects are built, AIX ld can
9972 # have problems creating the table of contents. If linking a library
9973 # or program results in "error TOC overflow" add -mminimal-toc to
9974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9979 hardcode_libdir_separator=':'
9980 link_all_deplibs=yes
9982 if test "$GCC" = yes; then
9983 case $host_os in aix4.[012]|aix4.[012].*)
9984 # We only want to do this on AIX 4.2 and lower, the check
9985 # below for broken collect2 doesn't work under 4.3+
9986 collect2name=`${CC} -print-prog-name=collect2`
9987 if test -f "$collect2name" && \
9988 strings "$collect2name" | grep resolve_lib_name >/dev/null
9990 # We have reworked collect2
9993 # We have old collect2
9994 hardcode_direct=unsupported
9995 # It fails to find uninstalled libraries when the uninstalled
9996 # path is not listed in the libpath. Setting hardcode_minus_L
9997 # to unsupported forces relinking
9998 hardcode_minus_L=yes
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_libdir_separator=
10004 shared_flag='-shared'
10005 if test "$aix_use_runtimelinking" = yes; then
10006 shared_flag="$shared_flag "'${wl}-G'
10010 if test "$host_cpu" = ia64; then
10011 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10012 # chokes on -Wl,-G. The following line is correct:
10015 if test "$aix_use_runtimelinking" = yes; then
10016 shared_flag='${wl}-G'
10018 shared_flag='${wl}-bM:SRE'
10023 # It seems that -bexpall does not export symbols beginning with
10024 # underscore (_), so it is better to generate a list of symbols to export.
10025 always_export_symbols=yes
10026 if test "$aix_use_runtimelinking" = yes; then
10027 # Warning - without using the other runtime loading flags (-brtl),
10028 # -berok will link without error, but may produce a broken library.
10029 allow_undefined_flag='-berok'
10030 # Determine the default libpath from the value encoded in an empty executable.
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } && {
10060 test -z "$ac_c_werror_flag" ||
10061 test ! -s conftest.err
10062 } && test -s conftest$ac_exeext &&
10063 $as_test_x conftest$ac_exeext; then
10065 lt_aix_libpath_sed='
10066 /Import File Strings/,/^$/ {
10072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10073 # Check for a 64-bit object if we didn't find anything.
10074 if test -z "$aix_libpath"; then
10075 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10085 conftest$ac_exeext conftest.$ac_ext
10086 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10088 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10089 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"
10091 if test "$host_cpu" = ia64; then
10092 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10093 allow_undefined_flag="-z nodefs"
10094 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"
10096 # Determine the default libpath from the value encoded in an empty executable.
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>conftest.er1
10121 grep -v '^ *+' conftest.er1 >conftest.err
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
10128 } && test -s conftest$ac_exeext &&
10129 $as_test_x conftest$ac_exeext; then
10131 lt_aix_libpath_sed='
10132 /Import File Strings/,/^$/ {
10138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10139 # Check for a 64-bit object if we didn't find anything.
10140 if test -z "$aix_libpath"; then
10141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10151 conftest$ac_exeext conftest.$ac_ext
10152 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10154 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10155 # Warning - without using the other run time loading flags,
10156 # -berok will link without error, but may produce a broken library.
10157 no_undefined_flag=' ${wl}-bernotok'
10158 allow_undefined_flag=' ${wl}-berok'
10159 # Exported symbols can be pulled into shared objects from archives
10160 whole_archive_flag_spec='$convenience'
10161 archive_cmds_need_lc=yes
10162 # This is similar to how AIX traditionally builds its shared libraries.
10163 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'
10169 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)'
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_minus_L=yes
10172 # see comment about different semantics on the GNU ld section
10177 export_dynamic_flag_spec=-rdynamic
10180 cygwin* | mingw* | pw32*)
10181 # When not using gcc, we currently assume that we are using
10182 # Microsoft Visual C++.
10183 # hardcode_libdir_flag_spec is actually meaningless, as there is
10184 # no search path for DLLs.
10185 hardcode_libdir_flag_spec=' '
10186 allow_undefined_flag=unsupported
10187 # Tell ltmain to make .lib files, not .a files.
10189 # Tell ltmain to make .dll files, not .so files.
10191 # FIXME: Setting linknames here is a bad hack.
10192 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10193 # The linker will automatically build a .lib file if we build a DLL.
10194 old_archive_From_new_cmds='true'
10195 # FIXME: Should let the user specify the lib program.
10196 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10197 fix_srcfile_path='`cygpath -w "$srcfile"`'
10198 enable_shared_with_static_runtimes=yes
10201 darwin* | rhapsody*)
10203 rhapsody* | darwin1.[012])
10204 allow_undefined_flag='${wl}-undefined ${wl}suppress'
10207 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10208 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10210 case ${MACOSX_DEPLOYMENT_TARGET} in
10212 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10215 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10221 archive_cmds_need_lc=no
10223 hardcode_automatic=yes
10224 hardcode_shlibpath_var=unsupported
10225 whole_archive_flag_spec=''
10226 link_all_deplibs=yes
10227 if test "$GCC" = yes ; then
10228 output_verbose_link_cmd='echo'
10229 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10230 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10231 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10232 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10234 case $cc_basename in
10236 output_verbose_link_cmd='echo'
10237 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10238 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10239 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10240 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10241 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}'
10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_shlibpath_var=no
10260 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10261 # support. Future versions do this automatically, but an explicit c++rt0.o
10262 # does not break anything, and helps significantly (at the cost of a little
10265 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10266 hardcode_libdir_flag_spec='-R$libdir'
10267 hardcode_direct=yes
10268 hardcode_shlibpath_var=no
10271 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10273 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10274 hardcode_direct=yes
10275 hardcode_minus_L=yes
10276 hardcode_shlibpath_var=no
10279 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10280 freebsd* | dragonfly*)
10281 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10282 hardcode_libdir_flag_spec='-R$libdir'
10283 hardcode_direct=yes
10284 hardcode_shlibpath_var=no
10288 if test "$GCC" = yes; then
10289 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'
10291 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'
10293 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10294 hardcode_libdir_separator=:
10295 hardcode_direct=yes
10297 # hardcode_minus_L: Not really in the search PATH,
10298 # but as the default location of the library.
10299 hardcode_minus_L=yes
10300 export_dynamic_flag_spec='${wl}-E'
10304 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10305 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10309 if test "$with_gnu_ld" = no; then
10310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10311 hardcode_libdir_separator=:
10313 hardcode_direct=yes
10314 export_dynamic_flag_spec='${wl}-E'
10316 # hardcode_minus_L: Not really in the search PATH,
10317 # but as the default location of the library.
10318 hardcode_minus_L=yes
10323 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10326 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10348 if test "$with_gnu_ld" = no; then
10349 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10350 hardcode_libdir_separator=:
10354 hardcode_libdir_flag_spec_ld='+b $libdir'
10356 hardcode_shlibpath_var=no
10359 hardcode_direct=yes
10360 export_dynamic_flag_spec='${wl}-E'
10362 # hardcode_minus_L: Not really in the search PATH,
10363 # but as the default location of the library.
10364 hardcode_minus_L=yes
10370 irix5* | irix6* | nonstopux*)
10371 if test "$GCC" = yes; then
10372 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'
10374 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'
10375 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10378 hardcode_libdir_separator=:
10379 link_all_deplibs=yes
10383 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10386 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10388 hardcode_libdir_flag_spec='-R$libdir'
10389 hardcode_direct=yes
10390 hardcode_shlibpath_var=no
10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10395 hardcode_direct=yes
10396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10397 hardcode_libdir_separator=:
10398 hardcode_shlibpath_var=no
10402 if test -f /usr/libexec/ld.so; then
10403 hardcode_direct=yes
10404 hardcode_shlibpath_var=no
10405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10408 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10409 export_dynamic_flag_spec='${wl}-E'
10412 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-R$libdir'
10417 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10428 hardcode_libdir_flag_spec='-L$libdir'
10429 hardcode_minus_L=yes
10430 allow_undefined_flag=unsupported
10431 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'
10432 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10436 if test "$GCC" = yes; then
10437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10438 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'
10440 allow_undefined_flag=' -expect_unresolved \*'
10441 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'
10443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10444 hardcode_libdir_separator=:
10447 osf4* | osf5*) # as osf3* with the addition of -msym flag
10448 if test "$GCC" = yes; then
10449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10450 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'
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10453 allow_undefined_flag=' -expect_unresolved \*'
10454 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'
10455 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10456 $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'
10458 # Both c and cxx compiler support -rpath directly
10459 hardcode_libdir_flag_spec='-rpath $libdir'
10461 hardcode_libdir_separator=:
10465 no_undefined_flag=' -z text'
10466 if test "$GCC" = yes; then
10468 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10470 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10475 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10477 hardcode_libdir_flag_spec='-R$libdir'
10478 hardcode_shlibpath_var=no
10480 solaris2.[0-5] | solaris2.[0-5].*) ;;
10482 # The compiler driver will combine and reorder linker options,
10483 # but understands `-z linker_flag'. GCC discards it without `$wl',
10484 # but is careful enough not to reorder.
10485 # Supported since Solaris 2.6 (maybe 2.5.1?)
10486 if test "$GCC" = yes; then
10487 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10493 link_all_deplibs=yes
10497 if test "x$host_vendor" = xsequent; then
10498 # Use $CC to link under sequent, because it throws in some extra .o
10499 # files that make .init and .fini sections work.
10500 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10504 hardcode_libdir_flag_spec='-L$libdir'
10505 hardcode_direct=yes
10506 hardcode_minus_L=yes
10507 hardcode_shlibpath_var=no
10511 case $host_vendor in
10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_direct=yes # is this really true???
10517 ## LD is ld it makes a PLAMLIB
10518 ## CC just makes a GrossModule.
10519 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10520 reload_cmds='$CC -r -o $output$reload_objs'
10524 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10525 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10528 runpath_var='LD_RUN_PATH'
10529 hardcode_shlibpath_var=no
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_shlibpath_var=no
10535 export_dynamic_flag_spec='-Bexport'
10539 if test -d /usr/nec; then
10540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541 hardcode_shlibpath_var=no
10542 runpath_var=LD_RUN_PATH
10543 hardcode_runpath_var=yes
10548 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10549 no_undefined_flag='${wl}-z,text'
10550 archive_cmds_need_lc=no
10551 hardcode_shlibpath_var=no
10552 runpath_var='LD_RUN_PATH'
10554 if test "$GCC" = yes; then
10555 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563 sysv5* | sco3.2v5* | sco5v6*)
10564 # Note: We can NOT use -z defs as we might desire, because we do not
10565 # link with -lc, and that would cause any symbols used from libc to
10566 # always be unresolved, which means just about no library would
10567 # ever link correctly. If we're not using GNU ld we use -z text
10568 # though, which does catch some bad symbols but isn't as heavy-handed
10570 no_undefined_flag='${wl}-z,text'
10571 allow_undefined_flag='${wl}-z,nodefs'
10572 archive_cmds_need_lc=no
10573 hardcode_shlibpath_var=no
10574 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10575 hardcode_libdir_separator=':'
10576 link_all_deplibs=yes
10577 export_dynamic_flag_spec='${wl}-Bexport'
10578 runpath_var='LD_RUN_PATH'
10580 if test "$GCC" = yes; then
10581 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10591 hardcode_libdir_flag_spec='-L$libdir'
10592 hardcode_shlibpath_var=no
10601 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10602 echo "${ECHO_T}$ld_shlibs" >&6; }
10603 test "$ld_shlibs" = no && can_build_shared=no
10606 # Do we need to explicitly link libc?
10608 case "x$archive_cmds_need_lc" in
10610 # Assume -lc should be added
10611 archive_cmds_need_lc=yes
10613 if test "$enable_shared" = yes && test "$GCC" = yes; then
10614 case $archive_cmds in
10616 # FIXME: we may have to deal with multi-command sequences.
10619 # Test whether the compiler implicitly links with -lc since on some
10620 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10621 # to ld, don't add -lc before -lgcc.
10622 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10623 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } 2>conftest.err; then
10634 libobjs=conftest.$ac_objext
10636 wl=$lt_prog_compiler_wl
10637 pic_flag=$lt_prog_compiler_pic
10643 lt_save_allow_undefined_flag=$allow_undefined_flag
10644 allow_undefined_flag=
10645 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10646 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }
10651 archive_cmds_need_lc=no
10653 archive_cmds_need_lc=yes
10655 allow_undefined_flag=$lt_save_allow_undefined_flag
10657 cat conftest.err 1>&5
10660 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10661 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10668 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10669 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10670 library_names_spec=
10671 libname_spec='lib$name'
10675 postuninstall_cmds=
10679 shlibpath_overrides_runpath=unknown
10681 dynamic_linker="$host_os ld.so"
10682 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10684 if test "$GCC" = yes; then
10686 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10687 *) lt_awk_arg="/^libraries:/" ;;
10689 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10690 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10691 # if the path contains ";" then we assume it to be the separator
10692 # otherwise default to the standard path separator (i.e. ":") - it is
10693 # assumed that no part of a normal pathname contains ";" but that should
10694 # okay in the real world where ";" in dirpaths is itself problematic.
10695 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10697 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10699 # Ok, now we have the path, separated by spaces, we can step through it
10700 # and add multilib dir if necessary.
10701 lt_tmp_lt_search_path_spec=
10702 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10703 for lt_sys_path in $lt_search_path_spec; do
10704 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10705 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10707 test -d "$lt_sys_path" && \
10708 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10711 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10712 BEGIN {RS=" "; FS="/|\n";} {
10715 for (lt_i = NF; lt_i > 0; lt_i--) {
10716 if ($lt_i != "" && $lt_i != ".") {
10717 if ($lt_i == "..") {
10720 if (lt_count == 0) {
10721 lt_foo="/" $lt_i lt_foo;
10728 if (lt_foo != "") { lt_freq[lt_foo]++; }
10729 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10731 sys_lib_search_path_spec=`echo $lt_search_path_spec`
10733 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10735 need_lib_prefix=unknown
10736 hardcode_into_libs=no
10738 # when you set need_version to no, make sure it does not cause -set_version
10739 # flags to be left without arguments
10740 need_version=unknown
10745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10746 shlibpath_var=LIBPATH
10748 # AIX 3 has no versioning support, so we append a major version to the name.
10749 soname_spec='${libname}${release}${shared_ext}$major'
10756 hardcode_into_libs=yes
10757 if test "$host_cpu" = ia64; then
10758 # AIX 5 supports IA64
10759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10760 shlibpath_var=LD_LIBRARY_PATH
10762 # With GCC up to 2.95.x, collect2 would create an import file
10763 # for dependence libraries. The import file would start with
10764 # the line `#! .'. This would cause the generated library to
10765 # depend on `.', always an invalid library. This was fixed in
10766 # development snapshots of GCC prior to 3.0.
10768 aix4 | aix4.[01] | aix4.[01].*)
10769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10771 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10774 can_build_shared=no
10778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10779 # soname into executable. Probably we can add versioning support to
10780 # collect2, so additional links can be useful in future.
10781 if test "$aix_use_runtimelinking" = yes; then
10782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10783 # instead of lib<name>.a to let people know that these are not
10784 # typical AIX shared libraries.
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787 # We preserve .a as extension for shared libraries through AIX4.2
10788 # and later when we are not doing run time linking.
10789 library_names_spec='${libname}${release}.a $libname.a'
10790 soname_spec='${libname}${release}${shared_ext}$major'
10792 shlibpath_var=LIBPATH
10797 library_names_spec='$libname.ixlibrary $libname.a'
10798 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10799 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'
10803 library_names_spec='${libname}${shared_ext}'
10804 dynamic_linker="$host_os ld.so"
10805 shlibpath_var=LIBRARY_PATH
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812 soname_spec='${libname}${release}${shared_ext}$major'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10814 shlibpath_var=LD_LIBRARY_PATH
10815 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10816 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10817 # the default ld.so.conf also contains /usr/contrib/lib and
10818 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10819 # libtool to hard-code these into programs
10822 cygwin* | mingw* | pw32*)
10823 version_type=windows
10828 case $GCC,$host_os in
10829 yes,cygwin* | yes,mingw* | yes,pw32*)
10830 library_names_spec='$libname.dll.a'
10831 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10832 postinstall_cmds='base_file=`basename \${file}`~
10833 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10834 dldir=$destdir/`dirname \$dlpath`~
10835 test -d \$dldir || mkdir -p \$dldir~
10836 $install_prog $dir/$dlname \$dldir/$dlname~
10837 chmod a+x \$dldir/$dlname'
10838 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10839 dlpath=$dir/\$dldll~
10841 shlibpath_overrides_runpath=yes
10845 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10846 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10847 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10850 # MinGW DLLs use traditional 'lib' prefix
10851 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10853 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10854 # It is most probably a Windows format PATH printed by
10855 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10856 # path with ; separators, and with drive letters. We can handle the
10857 # drive letters (cygwin fileutils understands them), so leave them,
10858 # especially as we might pass files found there to a mingw objdump,
10859 # which wouldn't understand a cygwinified path. Ahh.
10860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10862 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10866 # pw32 DLLs use 'pw' prefix rather than 'lib'
10867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10876 dynamic_linker='Win32 ld.exe'
10877 # FIXME: first we should search . and the directory the executable is in
10881 darwin* | rhapsody*)
10882 dynamic_linker="$host_os dyld"
10883 version_type=darwin
10886 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10887 soname_spec='${libname}${release}${major}$shared_ext'
10888 shlibpath_overrides_runpath=yes
10889 shlibpath_var=DYLD_LIBRARY_PATH
10890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10893 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10909 freebsd* | dragonfly*)
10910 # DragonFly does not have aout. When/if they implement a new
10911 # versioning mechanism, adjust this.
10912 if test -x /usr/bin/objformat; then
10913 objformat=`/usr/bin/objformat`
10916 freebsd[123]*) objformat=aout ;;
10917 *) objformat=elf ;;
10920 version_type=freebsd-$objformat
10921 case $version_type in
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10932 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10937 freebsd3.[01]* | freebsdelf3.[01]*)
10938 shlibpath_overrides_runpath=yes
10939 hardcode_into_libs=yes
10941 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10942 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10946 *) # from 4.6 on, and DragonFly
10947 shlibpath_overrides_runpath=yes
10948 hardcode_into_libs=yes
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 hardcode_into_libs=yes
10963 hpux9* | hpux10* | hpux11*)
10964 # Give a soname corresponding to the major version so that dld.sl refuses to
10965 # link against other versions.
10972 hardcode_into_libs=yes
10973 dynamic_linker="$host_os dld.so"
10974 shlibpath_var=LD_LIBRARY_PATH
10975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 if test "X$HPUX_IA64_MODE" = X32; then
10979 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10987 hardcode_into_libs=yes
10988 dynamic_linker="$host_os dld.sl"
10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10998 dynamic_linker="$host_os dld.sl"
10999 shlibpath_var=SHLIB_PATH
11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11002 soname_spec='${libname}${release}${shared_ext}$major'
11005 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11006 postinstall_cmds='chmod 555 $lib'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=no
11018 hardcode_into_libs=yes
11021 irix5* | irix6* | nonstopux*)
11023 nonstopux*) version_type=nonstopux ;;
11025 if test "$lt_cv_prog_gnu_ld" = yes; then
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11036 irix5* | nonstopux*)
11037 libsuff= shlibsuff=
11040 case $LD in # libtool.m4 will add one of these switches to LD
11041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11042 libsuff= shlibsuff= libmagic=32-bit;;
11043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11044 libsuff=32 shlibsuff=N32 libmagic=N32;;
11045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11047 *) libsuff= shlibsuff= libmagic=never-match;;
11051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11052 shlibpath_overrides_runpath=no
11053 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11054 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11055 hardcode_into_libs=yes
11058 # No shared lib support for Linux oldld, aout, or coff.
11059 linux*oldld* | linux*aout* | linux*coff*)
11063 # This must be Linux ELF.
11064 linux* | k*bsd*-gnu)
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=no
11073 # This implies no fast_install, which is unacceptable.
11074 # Some rework will be needed to allow for fast_install
11075 # before this can be enabled.
11076 hardcode_into_libs=yes
11078 # Append ld.so.conf contents to the search path
11079 if test -f /etc/ld.so.conf; then
11080 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11084 # We used to test for /lib/ld.so.1 and disable shared libraries on
11085 # powerpc, because MkLinux only supported shared libraries with the
11086 # GNU dynamic linker. Since this was broken with cross compilers,
11087 # most powerpc-linux boxes support dynamic linking these days and
11088 # people can always --disable-shared, the test was removed, and we
11089 # assume the GNU/Linux dynamic linker is in use.
11090 dynamic_linker='GNU/Linux ld.so'
11097 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11100 dynamic_linker='NetBSD (a.out) ld.so'
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 dynamic_linker='NetBSD ld.elf_so'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11108 hardcode_into_libs=yes
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11123 soname_spec='${libname}${release}${shared_ext}$major'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 shlibpath_overrides_runpath=yes
11130 sys_lib_dlsearch_path_spec="/usr/lib"
11132 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11134 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11135 *) need_version=no ;;
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11142 openbsd2.[89] | openbsd2.[89].*)
11143 shlibpath_overrides_runpath=no
11146 shlibpath_overrides_runpath=yes
11150 shlibpath_overrides_runpath=yes
11155 libname_spec='$name'
11158 library_names_spec='$libname${shared_ext} $libname.a'
11159 dynamic_linker='OS/2 ld.exe'
11160 shlibpath_var=LIBPATH
11163 osf3* | osf4* | osf5*)
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 shlibpath_var=LD_LIBRARY_PATH
11170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 shlibpath_overrides_runpath=yes
11186 hardcode_into_libs=yes
11187 # ldd complains unless libraries are executable
11188 postinstall_cmds='chmod +x $lib'
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 shlibpath_overrides_runpath=yes
11197 if test "$with_gnu_ld" = yes; then
11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11206 soname_spec='${libname}${release}${shared_ext}$major'
11207 shlibpath_var=LD_LIBRARY_PATH
11208 case $host_vendor in
11210 shlibpath_overrides_runpath=no
11212 export_dynamic_flag_spec='${wl}-Blargedynsym'
11213 runpath_var=LD_RUN_PATH
11221 shlibpath_overrides_runpath=no
11222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11228 if test -d /usr/nec ;then
11230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11231 soname_spec='$libname${shared_ext}.$major'
11232 shlibpath_var=LD_LIBRARY_PATH
11236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11237 version_type=freebsd-elf
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 hardcode_into_libs=yes
11244 if test "$with_gnu_ld" = yes; then
11245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11246 shlibpath_overrides_runpath=no
11248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11249 shlibpath_overrides_runpath=yes
11252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11256 sys_lib_dlsearch_path_spec='/usr/lib'
11261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262 soname_spec='${libname}${release}${shared_ext}$major'
11263 shlibpath_var=LD_LIBRARY_PATH
11270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11271 echo "${ECHO_T}$dynamic_linker" >&6; }
11272 test "$dynamic_linker" = no && can_build_shared=no
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
11280 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11281 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
11287 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11289 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11290 if test "$GCC" = yes; then
11291 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11294 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11295 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11297 if test -n "$hardcode_libdir_flag_spec" || \
11298 test -n "$runpath_var" || \
11299 test "X$hardcode_automatic" = "Xyes" ; then
11301 # We can hardcode non-existant directories.
11302 if test "$hardcode_direct" != no &&
11303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11304 # have to relink, otherwise we might link with an installed library
11305 # when we should be linking with a yet-to-be-installed one
11306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11307 test "$hardcode_minus_L" != no; then
11308 # Linking always hardcodes the temporary library directory.
11309 hardcode_action=relink
11311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11312 hardcode_action=immediate
11315 # We cannot hardcode anything, or else we can only hardcode existing
11317 hardcode_action=unsupported
11319 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11320 echo "${ECHO_T}$hardcode_action" >&6; }
11322 if test "$hardcode_action" = relink; then
11323 # Fast installation is not supported
11324 enable_fast_install=no
11325 elif test "$shlibpath_overrides_runpath" = yes ||
11326 test "$enable_shared" = no; then
11327 # Fast installation is not necessary
11328 enable_fast_install=needless
11333 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11334 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11335 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11338 { echo "$as_me:$LINENO: result: yes" >&5
11339 echo "${ECHO_T}yes" >&6; }
11341 # FIXME - insert some real tests, host_os isn't really good enough
11344 if test -n "$STRIP" ; then
11345 striplib="$STRIP -x"
11346 old_striplib="$STRIP -S"
11347 { echo "$as_me:$LINENO: result: yes" >&5
11348 echo "${ECHO_T}yes" >&6; }
11350 { echo "$as_me:$LINENO: result: no" >&5
11351 echo "${ECHO_T}no" >&6; }
11355 { echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6; }
11361 if test "x$enable_dlopen" != xyes; then
11362 enable_dlopen=unknown
11363 enable_dlopen_self=unknown
11364 enable_dlopen_self_static=unknown
11371 lt_cv_dlopen="load_add_on"
11373 lt_cv_dlopen_self=yes
11377 lt_cv_dlopen="LoadLibrary"
11382 lt_cv_dlopen="dlopen"
11387 # if libdl is installed we need to link against it
11388 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11389 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11390 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 ac_check_lib_save_LIBS=$LIBS
11395 cat >conftest.$ac_ext <<_ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11402 /* Override any GCC internal prototype to avoid an error.
11403 Use char because int might match the return type of a GCC
11404 builtin and then its argument prototype would still apply. */
11417 rm -f conftest.$ac_objext conftest$ac_exeext
11418 if { (ac_try="$ac_link"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } && {
11431 test -z "$ac_c_werror_flag" ||
11432 test ! -s conftest.err
11433 } && test -s conftest$ac_exeext &&
11434 $as_test_x conftest$ac_exeext; then
11435 ac_cv_lib_dl_dlopen=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 ac_cv_lib_dl_dlopen=no
11443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11444 conftest$ac_exeext conftest.$ac_ext
11445 LIBS=$ac_check_lib_save_LIBS
11447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11448 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11449 if test $ac_cv_lib_dl_dlopen = yes; then
11450 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11453 lt_cv_dlopen="dyld"
11455 lt_cv_dlopen_self=yes
11462 { echo "$as_me:$LINENO: checking for shl_load" >&5
11463 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11464 if test "${ac_cv_func_shl_load+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11475 #define shl_load innocuous_shl_load
11477 /* System header to define __stub macros and hopefully few prototypes,
11478 which can conflict with char shl_load (); below.
11479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11480 <limits.h> exists even on freestanding compilers. */
11483 # include <limits.h>
11485 # include <assert.h>
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11497 /* The GNU C library defines this for functions which it implements
11498 to always fail with ENOSYS. Some functions are actually named
11499 something starting with __ and the normal name is an alias. */
11500 #if defined __stub_shl_load || defined __stub___shl_load
11507 return shl_load ();
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (ac_try="$ac_link"
11514 case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_link") 2>conftest.er1
11521 grep -v '^ *+' conftest.er1 >conftest.err
11523 cat conftest.err >&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); } && {
11526 test -z "$ac_c_werror_flag" ||
11527 test ! -s conftest.err
11528 } && test -s conftest$ac_exeext &&
11529 $as_test_x conftest$ac_exeext; then
11530 ac_cv_func_shl_load=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_cv_func_shl_load=no
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539 conftest$ac_exeext conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11542 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11543 if test $ac_cv_func_shl_load = yes; then
11544 lt_cv_dlopen="shl_load"
11546 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11547 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11548 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11551 ac_check_lib_save_LIBS=$LIBS
11553 cat >conftest.$ac_ext <<_ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11560 /* Override any GCC internal prototype to avoid an error.
11561 Use char because int might match the return type of a GCC
11562 builtin and then its argument prototype would still apply. */
11570 return shl_load ();
11575 rm -f conftest.$ac_objext conftest$ac_exeext
11576 if { (ac_try="$ac_link"
11577 case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_link") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } && {
11589 test -z "$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11591 } && test -s conftest$ac_exeext &&
11592 $as_test_x conftest$ac_exeext; then
11593 ac_cv_lib_dld_shl_load=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_lib_dld_shl_load=no
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11605 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11606 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11607 if test $ac_cv_lib_dld_shl_load = yes; then
11608 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11610 { echo "$as_me:$LINENO: checking for dlopen" >&5
11611 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11612 if test "${ac_cv_func_dlopen+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11623 #define dlopen innocuous_dlopen
11625 /* System header to define __stub macros and hopefully few prototypes,
11626 which can conflict with char dlopen (); below.
11627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11628 <limits.h> exists even on freestanding compilers. */
11631 # include <limits.h>
11633 # include <assert.h>
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11645 /* The GNU C library defines this for functions which it implements
11646 to always fail with ENOSYS. Some functions are actually named
11647 something starting with __ and the normal name is an alias. */
11648 #if defined __stub_dlopen || defined __stub___dlopen
11660 rm -f conftest.$ac_objext conftest$ac_exeext
11661 if { (ac_try="$ac_link"
11662 case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_link") 2>conftest.er1
11669 grep -v '^ *+' conftest.er1 >conftest.err
11671 cat conftest.err >&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && {
11674 test -z "$ac_c_werror_flag" ||
11675 test ! -s conftest.err
11676 } && test -s conftest$ac_exeext &&
11677 $as_test_x conftest$ac_exeext; then
11678 ac_cv_func_dlopen=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_func_dlopen=no
11686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11687 conftest$ac_exeext conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11690 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11691 if test $ac_cv_func_dlopen = yes; then
11692 lt_cv_dlopen="dlopen"
11694 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11695 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11696 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11699 ac_check_lib_save_LIBS=$LIBS
11701 cat >conftest.$ac_ext <<_ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h. */
11708 /* Override any GCC internal prototype to avoid an error.
11709 Use char because int might match the return type of a GCC
11710 builtin and then its argument prototype would still apply. */
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11727 *) ac_try_echo=$ac_try;;
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_link") 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } && {
11737 test -z "$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11739 } && test -s conftest$ac_exeext &&
11740 $as_test_x conftest$ac_exeext; then
11741 ac_cv_lib_dl_dlopen=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 ac_cv_lib_dl_dlopen=no
11749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11750 conftest$ac_exeext conftest.$ac_ext
11751 LIBS=$ac_check_lib_save_LIBS
11753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11754 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11755 if test $ac_cv_lib_dl_dlopen = yes; then
11756 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11758 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11759 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11760 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-lsvld $LIBS"
11765 cat >conftest.$ac_ext <<_ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11772 /* Override any GCC internal prototype to avoid an error.
11773 Use char because int might match the return type of a GCC
11774 builtin and then its argument prototype would still apply. */
11787 rm -f conftest.$ac_objext conftest$ac_exeext
11788 if { (ac_try="$ac_link"
11789 case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_link") 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } && {
11801 test -z "$ac_c_werror_flag" ||
11802 test ! -s conftest.err
11803 } && test -s conftest$ac_exeext &&
11804 $as_test_x conftest$ac_exeext; then
11805 ac_cv_lib_svld_dlopen=yes
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 ac_cv_lib_svld_dlopen=no
11813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11814 conftest$ac_exeext conftest.$ac_ext
11815 LIBS=$ac_check_lib_save_LIBS
11817 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11818 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11819 if test $ac_cv_lib_svld_dlopen = yes; then
11820 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11822 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11823 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11824 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 ac_check_lib_save_LIBS=$LIBS
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11836 /* Override any GCC internal prototype to avoid an error.
11837 Use char because int might match the return type of a GCC
11838 builtin and then its argument prototype would still apply. */
11846 return dld_link ();
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (ac_try="$ac_link"
11853 case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858 (eval "$ac_link") 2>conftest.er1
11860 grep -v '^ *+' conftest.er1 >conftest.err
11862 cat conftest.err >&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); } && {
11865 test -z "$ac_c_werror_flag" ||
11866 test ! -s conftest.err
11867 } && test -s conftest$ac_exeext &&
11868 $as_test_x conftest$ac_exeext; then
11869 ac_cv_lib_dld_dld_link=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_cv_lib_dld_dld_link=no
11877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11881 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11882 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11883 if test $ac_cv_lib_dld_dld_link = yes; then
11884 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11905 if test "x$lt_cv_dlopen" != xno; then
11911 case $lt_cv_dlopen in
11913 save_CPPFLAGS="$CPPFLAGS"
11914 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11916 save_LDFLAGS="$LDFLAGS"
11917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11920 LIBS="$lt_cv_dlopen_libs $LIBS"
11922 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11923 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11924 if test "${lt_cv_dlopen_self+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 if test "$cross_compiling" = yes; then :
11928 lt_cv_dlopen_self=cross
11930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11931 lt_status=$lt_dlunknown
11932 cat > conftest.$ac_ext <<EOF
11933 #line __oline__ "configure"
11934 #include "confdefs.h"
11943 # define LT_DLGLOBAL RTLD_GLOBAL
11946 # define LT_DLGLOBAL DL_GLOBAL
11948 # define LT_DLGLOBAL 0
11952 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11953 find out it does not work in some platform. */
11954 #ifndef LT_DLLAZY_OR_NOW
11956 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11959 # define LT_DLLAZY_OR_NOW DL_LAZY
11962 # define LT_DLLAZY_OR_NOW RTLD_NOW
11965 # define LT_DLLAZY_OR_NOW DL_NOW
11967 # define LT_DLLAZY_OR_NOW 0
11975 extern "C" void exit (int);
11978 void fnord() { int i=42;}
11981 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11982 int status = $lt_dlunknown;
11986 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11987 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11988 /* dlclose (self); */
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12001 (./conftest; exit; ) >&5 2>/dev/null
12003 case x$lt_status in
12004 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12005 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12006 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12009 # compilation failed
12010 lt_cv_dlopen_self=no
12017 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12018 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12020 if test "x$lt_cv_dlopen_self" = xyes; then
12021 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12022 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12023 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12024 if test "${lt_cv_dlopen_self_static+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 if test "$cross_compiling" = yes; then :
12028 lt_cv_dlopen_self_static=cross
12030 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12031 lt_status=$lt_dlunknown
12032 cat > conftest.$ac_ext <<EOF
12033 #line __oline__ "configure"
12034 #include "confdefs.h"
12043 # define LT_DLGLOBAL RTLD_GLOBAL
12046 # define LT_DLGLOBAL DL_GLOBAL
12048 # define LT_DLGLOBAL 0
12052 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12053 find out it does not work in some platform. */
12054 #ifndef LT_DLLAZY_OR_NOW
12056 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12059 # define LT_DLLAZY_OR_NOW DL_LAZY
12062 # define LT_DLLAZY_OR_NOW RTLD_NOW
12065 # define LT_DLLAZY_OR_NOW DL_NOW
12067 # define LT_DLLAZY_OR_NOW 0
12075 extern "C" void exit (int);
12078 void fnord() { int i=42;}
12081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082 int status = $lt_dlunknown;
12086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12087 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12088 /* dlclose (self); */
12096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12097 (eval $ac_link) 2>&5
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12101 (./conftest; exit; ) >&5 2>/dev/null
12103 case x$lt_status in
12104 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12105 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12106 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12109 # compilation failed
12110 lt_cv_dlopen_self_static=no
12117 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12118 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12121 CPPFLAGS="$save_CPPFLAGS"
12122 LDFLAGS="$save_LDFLAGS"
12127 case $lt_cv_dlopen_self in
12128 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12129 *) enable_dlopen_self=unknown ;;
12132 case $lt_cv_dlopen_self_static in
12133 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12134 *) enable_dlopen_self_static=unknown ;;
12139 # Report which library types will actually be built
12140 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12141 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12142 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12143 echo "${ECHO_T}$can_build_shared" >&6; }
12145 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12146 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12147 test "$can_build_shared" = "no" && enable_shared=no
12149 # On AIX, shared libraries and static libraries use the same namespace, and
12150 # are all built from PIC.
12153 test "$enable_shared" = yes && enable_static=no
12154 if test -n "$RANLIB"; then
12155 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12156 postinstall_cmds='$RANLIB $lib'
12161 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12162 test "$enable_shared" = yes && enable_static=no
12166 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12167 echo "${ECHO_T}$enable_shared" >&6; }
12169 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12170 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12171 # Make sure either enable_shared or enable_static is yes.
12172 test "$enable_shared" = yes || enable_static=yes
12173 { echo "$as_me:$LINENO: result: $enable_static" >&5
12174 echo "${ECHO_T}$enable_static" >&6; }
12176 # The else clause should only fire when bootstrapping the
12177 # libtool distribution, otherwise you forgot to ship ltmain.sh
12178 # with your package, and you will get complaints that there are
12179 # no rules to generate ltmain.sh.
12180 if test -f "$ltmain"; then
12181 # See if we are running on zsh, and set the options which allow our commands through
12182 # without removal of \ escapes.
12183 if test -n "${ZSH_VERSION+set}" ; then
12184 setopt NO_GLOB_SUBST
12186 # Now quote all the things that may contain metacharacters while being
12187 # careful not to overquote the AC_SUBSTed values. We take copies of the
12188 # variables and quote the copies for generation of the libtool script.
12189 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12191 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12192 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12193 deplibs_check_method reload_flag reload_cmds need_locks \
12194 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12195 lt_cv_sys_global_symbol_to_c_name_address \
12196 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12197 old_postinstall_cmds old_postuninstall_cmds \
12201 lt_prog_compiler_wl \
12202 lt_prog_compiler_pic \
12203 lt_prog_compiler_static \
12204 lt_prog_compiler_no_builtin_flag \
12205 export_dynamic_flag_spec \
12206 thread_safe_flag_spec \
12207 whole_archive_flag_spec \
12208 enable_shared_with_static_runtimes \
12210 old_archive_from_new_cmds \
12215 compiler_lib_search_path \
12216 compiler_lib_search_dirs \
12218 archive_expsym_cmds \
12220 postuninstall_cmds \
12221 old_archive_from_expsyms_cmds \
12222 allow_undefined_flag \
12223 no_undefined_flag \
12224 export_symbols_cmds \
12225 hardcode_libdir_flag_spec \
12226 hardcode_libdir_flag_spec_ld \
12227 hardcode_libdir_separator \
12228 hardcode_automatic \
12230 module_expsym_cmds \
12231 lt_cv_prog_compiler_c_o \
12234 include_expsyms; do
12237 old_archive_cmds | \
12238 old_archive_from_new_cmds | \
12240 archive_expsym_cmds | \
12242 module_expsym_cmds | \
12243 old_archive_from_expsyms_cmds | \
12244 export_symbols_cmds | \
12245 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12246 postinstall_cmds | postuninstall_cmds | \
12247 old_postinstall_cmds | old_postuninstall_cmds | \
12248 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12249 # Double-quote double-evaled strings.
12250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12259 *'\$0 --fallback-echo"')
12260 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12264 cfgfile="${ofile}T"
12265 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12267 { echo "$as_me:$LINENO: creating $ofile" >&5
12268 echo "$as_me: creating $ofile" >&6;}
12270 cat <<__EOF__ >> "$cfgfile"
12273 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12274 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12275 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12277 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
12278 # Free Software Foundation, Inc.
12280 # This file is part of GNU Libtool:
12281 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12283 # This program is free software; you can redistribute it and/or modify
12284 # it under the terms of the GNU General Public License as published by
12285 # the Free Software Foundation; either version 2 of the License, or
12286 # (at your option) any later version.
12288 # This program is distributed in the hope that it will be useful, but
12289 # WITHOUT ANY WARRANTY; without even the implied warranty of
12290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12291 # General Public License for more details.
12293 # You should have received a copy of the GNU General Public License
12294 # along with this program; if not, write to the Free Software
12295 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12297 # As a special exception to the GNU General Public License, if you
12298 # distribute this file as part of a program that contains a
12299 # configuration script generated by Autoconf, you may include it under
12300 # the same distribution terms that you use for the rest of that program.
12302 # A sed program that does not truncate output.
12305 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12306 Xsed="$SED -e 1s/^X//"
12308 # The HP-UX ksh and POSIX shell print the target directory to stdout
12309 # if CDPATH is set.
12310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12312 # The names of the tagged configurations supported by this script.
12315 # ### BEGIN LIBTOOL CONFIG
12317 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12319 # Shell to use when invoking shell scripts.
12322 # Whether or not to build shared libraries.
12323 build_libtool_libs=$enable_shared
12325 # Whether or not to build static libraries.
12326 build_old_libs=$enable_static
12328 # Whether or not to add -lc for building shared libraries.
12329 build_libtool_need_lc=$archive_cmds_need_lc
12331 # Whether or not to disallow shared libs when runtime libs are static
12332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12334 # Whether or not to optimize for fast installation.
12335 fast_install=$enable_fast_install
12338 host_alias=$host_alias
12342 # The build system.
12343 build_alias=$build_alias
12347 # An echo program that does not interpret backslashes.
12352 AR_FLAGS=$lt_AR_FLAGS
12357 # LTCC compiler flags.
12358 LTCFLAGS=$lt_LTCFLAGS
12360 # A language-specific compiler.
12363 # Is the compiler the GNU C compiler?
12369 # The linker used to build libraries.
12372 # Whether we need hard or soft links.
12375 # A BSD-compatible nm program.
12378 # A symbol stripping program
12381 # Used to examine libraries when file_magic_cmd begins "file"
12382 MAGIC_CMD=$MAGIC_CMD
12384 # Used on cygwin: DLL creation program.
12387 # Used on cygwin: object dumper.
12390 # Used on cygwin: assembler.
12393 # The name of the directory that contains temporary libtool files.
12396 # How to create reloadable object files.
12397 reload_flag=$lt_reload_flag
12398 reload_cmds=$lt_reload_cmds
12400 # How to pass a linker flag through the compiler.
12401 wl=$lt_lt_prog_compiler_wl
12403 # Object file suffix (normally "o").
12404 objext="$ac_objext"
12406 # Old archive suffix (normally "a").
12409 # Shared library suffix (normally ".so").
12410 shrext_cmds='$shrext_cmds'
12412 # Executable file suffix (normally "").
12415 # Additional compiler flags for building library objects.
12416 pic_flag=$lt_lt_prog_compiler_pic
12419 # What is the maximum length of a command?
12420 max_cmd_len=$lt_cv_sys_max_cmd_len
12422 # Does compiler simultaneously support -c and -o options?
12423 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12425 # Must we lock files when doing compilation?
12426 need_locks=$lt_need_locks
12428 # Do we need the lib prefix for modules?
12429 need_lib_prefix=$need_lib_prefix
12431 # Do we need a version for libraries?
12432 need_version=$need_version
12434 # Whether dlopen is supported.
12435 dlopen_support=$enable_dlopen
12437 # Whether dlopen of programs is supported.
12438 dlopen_self=$enable_dlopen_self
12440 # Whether dlopen of statically linked programs is supported.
12441 dlopen_self_static=$enable_dlopen_self_static
12443 # Compiler flag to prevent dynamic linking.
12444 link_static_flag=$lt_lt_prog_compiler_static
12446 # Compiler flag to turn off builtin functions.
12447 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12449 # Compiler flag to allow reflexive dlopens.
12450 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12452 # Compiler flag to generate shared objects directly from archives.
12453 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12455 # Compiler flag to generate thread-safe objects.
12456 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12458 # Library versioning type.
12459 version_type=$version_type
12461 # Format of library name prefix.
12462 libname_spec=$lt_libname_spec
12464 # List of archive names. First name is the real one, the rest are links.
12465 # The last name is the one that the linker finds with -lNAME.
12466 library_names_spec=$lt_library_names_spec
12468 # The coded name of the library, if different from the real name.
12469 soname_spec=$lt_soname_spec
12471 # Commands used to build and install an old-style archive.
12473 old_archive_cmds=$lt_old_archive_cmds
12474 old_postinstall_cmds=$lt_old_postinstall_cmds
12475 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12477 # Create an old-style archive from a shared archive.
12478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12480 # Create a temporary old-style archive to link instead of a shared archive.
12481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12483 # Commands used to build and install a shared archive.
12484 archive_cmds=$lt_archive_cmds
12485 archive_expsym_cmds=$lt_archive_expsym_cmds
12486 postinstall_cmds=$lt_postinstall_cmds
12487 postuninstall_cmds=$lt_postuninstall_cmds
12489 # Commands used to build a loadable module (assumed same as above if empty)
12490 module_cmds=$lt_module_cmds
12491 module_expsym_cmds=$lt_module_expsym_cmds
12493 # Commands to strip libraries.
12494 old_striplib=$lt_old_striplib
12495 striplib=$lt_striplib
12497 # Dependencies to place before the objects being linked to create a
12499 predep_objects=$lt_predep_objects
12501 # Dependencies to place after the objects being linked to create a
12503 postdep_objects=$lt_postdep_objects
12505 # Dependencies to place before the objects being linked to create a
12507 predeps=$lt_predeps
12509 # Dependencies to place after the objects being linked to create a
12511 postdeps=$lt_postdeps
12513 # The directories searched by this compiler when creating a shared
12515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
12517 # The library search path used internally by the compiler when linking
12518 # a shared library.
12519 compiler_lib_search_path=$lt_compiler_lib_search_path
12521 # Method to check whether dependent libraries are shared objects.
12522 deplibs_check_method=$lt_deplibs_check_method
12524 # Command to use when deplibs_check_method == file_magic.
12525 file_magic_cmd=$lt_file_magic_cmd
12527 # Flag that allows shared libraries with undefined symbols to be built.
12528 allow_undefined_flag=$lt_allow_undefined_flag
12530 # Flag that forces no undefined symbols.
12531 no_undefined_flag=$lt_no_undefined_flag
12533 # Commands used to finish a libtool library installation in a directory.
12534 finish_cmds=$lt_finish_cmds
12536 # Same as above, but a single script fragment to be evaled but not shown.
12537 finish_eval=$lt_finish_eval
12539 # Take the output of nm and produce a listing of raw symbols and C names.
12540 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12542 # Transform the output of nm in a proper C declaration
12543 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12545 # Transform the output of nm in a C name address pair
12546 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12548 # This is the shared library runtime path variable.
12549 runpath_var=$runpath_var
12551 # This is the shared library path variable.
12552 shlibpath_var=$shlibpath_var
12554 # Is shlibpath searched before the hard-coded library search path?
12555 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12557 # How to hardcode a shared library path into an executable.
12558 hardcode_action=$hardcode_action
12560 # Whether we should hardcode library paths into libraries.
12561 hardcode_into_libs=$hardcode_into_libs
12563 # Flag to hardcode \$libdir into a binary during linking.
12564 # This must work even if \$libdir does not exist.
12565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12567 # If ld is used when linking, flag to hardcode \$libdir into
12568 # a binary during linking. This must work even if \$libdir does
12570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12572 # Whether we need a single -rpath flag with a separated argument.
12573 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12575 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12576 # resulting binary.
12577 hardcode_direct=$hardcode_direct
12579 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12580 # resulting binary.
12581 hardcode_minus_L=$hardcode_minus_L
12583 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12584 # the resulting binary.
12585 hardcode_shlibpath_var=$hardcode_shlibpath_var
12587 # Set to yes if building a shared library automatically hardcodes DIR into the library
12588 # and all subsequent libraries and executables linked against it.
12589 hardcode_automatic=$hardcode_automatic
12591 # Variables whose values should be saved in libtool wrapper scripts and
12592 # restored at relink time.
12593 variables_saved_for_relink="$variables_saved_for_relink"
12595 # Whether libtool must link a program against all its dependency libraries.
12596 link_all_deplibs=$link_all_deplibs
12598 # Compile-time system search path for libraries
12599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12601 # Run-time system search path for libraries
12602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12604 # Fix the shell variable \$srcfile for the compiler.
12605 fix_srcfile_path=$lt_fix_srcfile_path
12607 # Set to yes if exported symbols are required.
12608 always_export_symbols=$always_export_symbols
12610 # The commands to list exported symbols.
12611 export_symbols_cmds=$lt_export_symbols_cmds
12613 # The commands to extract the exported symbol list from a shared archive.
12614 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12616 # Symbols that should not be listed in the preloaded symbols.
12617 exclude_expsyms=$lt_exclude_expsyms
12619 # Symbols that must always be exported.
12620 include_expsyms=$lt_include_expsyms
12622 # ### END LIBTOOL CONFIG
12629 cat <<\EOF >> "$cfgfile"
12631 # AIX sometimes has problems with the GCC collect2 program. For some
12632 # reason, if we set the COLLECT_NAMES environment variable, the problems
12633 # vanish in a puff of smoke.
12634 if test "X${COLLECT_NAMES+set}" != Xset; then
12636 export COLLECT_NAMES
12642 # We use sed instead of cat because bash on DJGPP gets confused if
12643 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12644 # text mode, it properly converts lines to CR/LF. This bash problem
12645 # is reportedly fixed, but why not run on old versions too?
12646 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12648 mv -f "$cfgfile" "$ofile" || \
12649 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12653 # If there is no Makefile yet, we rely on a make rule to execute
12654 # `config.status --recheck' to rerun these tests and create the
12655 # libtool script then.
12656 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12657 if test -f "$ltmain_in"; then
12658 test -f Makefile && make "$ltmain"
12664 ac_cpp='$CPP $CPPFLAGS'
12665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672 # Check whether --with-tags was given.
12673 if test "${with_tags+set}" = set; then
12674 withval=$with_tags; tagnames="$withval"
12678 if test -f "$ltmain" && test -n "$tagnames"; then
12679 if test ! -f "${ofile}"; then
12680 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12681 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12684 if test -z "$LTCC"; then
12685 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12686 if test -z "$LTCC"; then
12687 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12688 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12691 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12694 if test -z "$LTCFLAGS"; then
12695 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12698 # Extract list of available tagged configurations in $ofile.
12699 # Note that this assumes the entire list is on one line.
12700 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12703 for tagname in $tagnames; do
12705 # Check whether tagname contains only valid characters
12706 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12708 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12709 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12710 { (exit 1); exit 1; }; }
12714 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12716 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12717 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12718 { (exit 1); exit 1; }; }
12721 # Update the list of available tags.
12722 if test -n "$tagname"; then
12723 echo appending configuration tag \"$tagname\" to $ofile
12727 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12728 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12729 (test "X$CXX" != "Xg++"))) ; then
12731 ac_cpp='$CXXCPP $CPPFLAGS'
12732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12739 archive_cmds_need_lc_CXX=no
12740 allow_undefined_flag_CXX=
12741 always_export_symbols_CXX=no
12742 archive_expsym_cmds_CXX=
12743 export_dynamic_flag_spec_CXX=
12744 hardcode_direct_CXX=no
12745 hardcode_libdir_flag_spec_CXX=
12746 hardcode_libdir_flag_spec_ld_CXX=
12747 hardcode_libdir_separator_CXX=
12748 hardcode_minus_L_CXX=no
12749 hardcode_shlibpath_var_CXX=unsupported
12750 hardcode_automatic_CXX=no
12752 module_expsym_cmds_CXX=
12753 link_all_deplibs_CXX=unknown
12754 old_archive_cmds_CXX=$old_archive_cmds
12755 no_undefined_flag_CXX=
12756 whole_archive_flag_spec_CXX=
12757 enable_shared_with_static_runtimes_CXX=no
12759 # Dependencies to place before and after the object being linked:
12760 predep_objects_CXX=
12761 postdep_objects_CXX=
12764 compiler_lib_search_path_CXX=
12765 compiler_lib_search_dirs_CXX=
12767 # Source file extension for C++ test sources.
12770 # Object file extension for compiled C++ test sources.
12774 # Code to be used in simple compile tests
12775 lt_simple_compile_test_code="int some_variable = 0;"
12777 # Code to be used in simple link tests
12778 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12780 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12782 # If no C compiler was specified, use CC.
12785 # If no C compiler flags were specified, use CFLAGS.
12786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12788 # Allow CC to be a program name with arguments.
12792 # save warnings/boilerplate of simple test code
12793 ac_outfile=conftest.$ac_objext
12794 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12796 _lt_compiler_boilerplate=`cat conftest.err`
12799 ac_outfile=conftest.$ac_objext
12800 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12802 _lt_linker_boilerplate=`cat conftest.err`
12806 # Allow CC to be a program name with arguments.
12811 lt_save_with_gnu_ld=$with_gnu_ld
12812 lt_save_path_LD=$lt_cv_path_LD
12813 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12814 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12816 $as_unset lt_cv_prog_gnu_ld
12818 if test -n "${lt_cv_path_LDCXX+set}"; then
12819 lt_cv_path_LD=$lt_cv_path_LDCXX
12821 $as_unset lt_cv_path_LD
12823 test -z "${LDCXX+set}" || LD=$LDCXX
12827 for cc_temp in $compiler""; do
12829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12838 # We don't want -fno-exception wen compiling C++ code, so set the
12839 # no_builtin_flag separately
12840 if test "$GXX" = yes; then
12841 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12843 lt_prog_compiler_no_builtin_flag_CXX=
12846 if test "$GXX" = yes; then
12847 # Set up default GNU C++ configuration
12850 # Check whether --with-gnu-ld was given.
12851 if test "${with_gnu_ld+set}" = set; then
12852 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12858 if test "$GCC" = yes; then
12859 # Check if gcc -print-prog-name=ld gives a path.
12860 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12861 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12864 # gcc leaves a trailing carriage return which upsets mingw
12865 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12867 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12870 # Accept absolute paths.
12872 re_direlt='/[^/][^/]*/\.\./'
12873 # Canonicalize the pathname of ld
12874 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12875 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12876 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12878 test -z "$LD" && LD="$ac_prog"
12881 # If it fails, then pretend we aren't using GCC.
12885 # If it is relative, then search for the first ld in PATH.
12886 with_gnu_ld=unknown
12889 elif test "$with_gnu_ld" = yes; then
12890 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12891 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12893 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12894 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12896 if test "${lt_cv_path_LD+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12899 if test -z "$LD"; then
12900 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12901 for ac_dir in $PATH; do
12903 test -z "$ac_dir" && ac_dir=.
12904 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12905 lt_cv_path_LD="$ac_dir/$ac_prog"
12906 # Check to see if the program is GNU ld. I'd rather use --version,
12907 # but apparently some variants of GNU ld only accept -v.
12908 # Break only if it was the GNU/non-GNU ld that we prefer.
12909 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12910 *GNU* | *'with BFD'*)
12911 test "$with_gnu_ld" != no && break
12914 test "$with_gnu_ld" != yes && break
12921 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12925 LD="$lt_cv_path_LD"
12926 if test -n "$LD"; then
12927 { echo "$as_me:$LINENO: result: $LD" >&5
12928 echo "${ECHO_T}$LD" >&6; }
12930 { echo "$as_me:$LINENO: result: no" >&5
12931 echo "${ECHO_T}no" >&6; }
12933 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12934 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12935 { (exit 1); exit 1; }; }
12936 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12937 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12938 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12941 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12942 case `$LD -v 2>&1 </dev/null` in
12943 *GNU* | *'with BFD'*)
12944 lt_cv_prog_gnu_ld=yes
12947 lt_cv_prog_gnu_ld=no
12951 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12952 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12953 with_gnu_ld=$lt_cv_prog_gnu_ld
12957 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12958 # archiving commands below assume that GNU ld is being used.
12959 if test "$with_gnu_ld" = yes; then
12960 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961 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'
12963 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12966 # If archive_cmds runs LD, not CC, wlarc should be empty
12967 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12968 # investigate it a little bit more. (MM)
12971 # ancient GNU ld didn't support --whole-archive et. al.
12972 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12973 grep 'no-whole-archive' > /dev/null; then
12974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976 whole_archive_flag_spec_CXX=
12982 # A generic and very simple default shared library creation
12983 # command for GNU C++ for the case where it uses the native
12984 # linker, instead of GNU ld. If possible, this setting should
12985 # overridden to take advantage of the native linker features on
12986 # the platform it is being used on.
12987 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12990 # Commands to make compiler produce verbose output that lists
12991 # what "hidden" libraries, object files and flags are used when
12992 # linking a shared library.
12993 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13001 # PORTME: fill in a description of your system's C++ link characteristics
13002 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13003 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13007 # FIXME: insert proper C++ library support
13011 if test "$host_cpu" = ia64; then
13012 # On IA64, the linker does run time linking by default, so we don't
13013 # have to do anything special.
13014 aix_use_runtimelinking=no
13015 exp_sym_flag='-Bexport'
13018 aix_use_runtimelinking=no
13020 # Test if we are trying to use run time linking or normal
13021 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13022 # need to do runtime linking.
13023 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13024 for ld_flag in $LDFLAGS; do
13027 aix_use_runtimelinking=yes
13035 exp_sym_flag='-bexport'
13036 no_entry_flag='-bnoentry'
13039 # When large executables or shared objects are built, AIX ld can
13040 # have problems creating the table of contents. If linking a library
13041 # or program results in "error TOC overflow" add -mminimal-toc to
13042 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13043 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13045 archive_cmds_CXX=''
13046 hardcode_direct_CXX=yes
13047 hardcode_libdir_separator_CXX=':'
13048 link_all_deplibs_CXX=yes
13050 if test "$GXX" = yes; then
13051 case $host_os in aix4.[012]|aix4.[012].*)
13052 # We only want to do this on AIX 4.2 and lower, the check
13053 # below for broken collect2 doesn't work under 4.3+
13054 collect2name=`${CC} -print-prog-name=collect2`
13055 if test -f "$collect2name" && \
13056 strings "$collect2name" | grep resolve_lib_name >/dev/null
13058 # We have reworked collect2
13061 # We have old collect2
13062 hardcode_direct_CXX=unsupported
13063 # It fails to find uninstalled libraries when the uninstalled
13064 # path is not listed in the libpath. Setting hardcode_minus_L
13065 # to unsupported forces relinking
13066 hardcode_minus_L_CXX=yes
13067 hardcode_libdir_flag_spec_CXX='-L$libdir'
13068 hardcode_libdir_separator_CXX=
13072 shared_flag='-shared'
13073 if test "$aix_use_runtimelinking" = yes; then
13074 shared_flag="$shared_flag "'${wl}-G'
13078 if test "$host_cpu" = ia64; then
13079 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13080 # chokes on -Wl,-G. The following line is correct:
13083 if test "$aix_use_runtimelinking" = yes; then
13084 shared_flag='${wl}-G'
13086 shared_flag='${wl}-bM:SRE'
13091 # It seems that -bexpall does not export symbols beginning with
13092 # underscore (_), so it is better to generate a list of symbols to export.
13093 always_export_symbols_CXX=yes
13094 if test "$aix_use_runtimelinking" = yes; then
13095 # Warning - without using the other runtime loading flags (-brtl),
13096 # -berok will link without error, but may produce a broken library.
13097 allow_undefined_flag_CXX='-berok'
13098 # Determine the default libpath from the value encoded in an empty executable.
13099 cat >conftest.$ac_ext <<_ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h. */
13114 rm -f conftest.$ac_objext conftest$ac_exeext
13115 if { (ac_try="$ac_link"
13116 case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_link") 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } && {
13128 test -z "$ac_cxx_werror_flag" ||
13129 test ! -s conftest.err
13130 } && test -s conftest$ac_exeext &&
13131 $as_test_x conftest$ac_exeext; then
13133 lt_aix_libpath_sed='
13134 /Import File Strings/,/^$/ {
13140 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13141 # Check for a 64-bit object if we didn't find anything.
13142 if test -z "$aix_libpath"; then
13143 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13153 conftest$ac_exeext conftest.$ac_ext
13154 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13156 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13158 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"
13160 if test "$host_cpu" = ia64; then
13161 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13162 allow_undefined_flag_CXX="-z nodefs"
13163 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"
13165 # Determine the default libpath from the value encoded in an empty executable.
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_cxx_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest$ac_exeext &&
13198 $as_test_x conftest$ac_exeext; then
13200 lt_aix_libpath_sed='
13201 /Import File Strings/,/^$/ {
13207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13208 # Check for a 64-bit object if we didn't find anything.
13209 if test -z "$aix_libpath"; then
13210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13220 conftest$ac_exeext conftest.$ac_ext
13221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13223 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13224 # Warning - without using the other run time loading flags,
13225 # -berok will link without error, but may produce a broken library.
13226 no_undefined_flag_CXX=' ${wl}-bernotok'
13227 allow_undefined_flag_CXX=' ${wl}-berok'
13228 # Exported symbols can be pulled into shared objects from archives
13229 whole_archive_flag_spec_CXX='$convenience'
13230 archive_cmds_need_lc_CXX=yes
13231 # This is similar to how AIX traditionally builds its shared libraries.
13232 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'
13238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13239 allow_undefined_flag_CXX=unsupported
13240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13241 # support --undefined. This deserves some investigation. FIXME
13242 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13249 case $cc_basename in
13251 # FIXME: insert proper C++ library support
13257 cygwin* | mingw* | pw32*)
13258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13259 # as there is no search path for DLLs.
13260 hardcode_libdir_flag_spec_CXX='-L$libdir'
13261 allow_undefined_flag_CXX=unsupported
13262 always_export_symbols_CXX=no
13263 enable_shared_with_static_runtimes_CXX=yes
13265 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13266 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'
13267 # If the export-symbols file already is a .def file (1st line
13268 # is EXPORTS), use it as is; otherwise, prepend...
13269 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13270 cp $export_symbols $output_objdir/$soname.def;
13272 echo EXPORTS > $output_objdir/$soname.def;
13273 cat $export_symbols >> $output_objdir/$soname.def;
13275 $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'
13280 darwin* | rhapsody*)
13281 archive_cmds_need_lc_CXX=no
13282 hardcode_direct_CXX=no
13283 hardcode_automatic_CXX=yes
13284 hardcode_shlibpath_var_CXX=unsupported
13285 whole_archive_flag_spec_CXX=''
13286 link_all_deplibs_CXX=yes
13287 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13288 if test "$GXX" = yes ; then
13289 output_verbose_link_cmd='echo'
13290 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13291 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13292 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13293 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13294 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13295 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13296 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13299 case $cc_basename in
13301 output_verbose_link_cmd='echo'
13302 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13303 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13304 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13305 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13306 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}'
13316 case $cc_basename in
13318 # FIXME: insert proper C++ library support
13322 # Green Hills C++ Compiler
13323 # FIXME: insert proper C++ library support
13327 # FIXME: insert proper C++ library support
13333 # C++ shared libraries reported to be fairly broken before switch to ELF
13337 archive_cmds_need_lc_CXX=no
13339 freebsd* | dragonfly*)
13340 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13347 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13348 hardcode_libdir_separator_CXX=:
13349 export_dynamic_flag_spec_CXX='${wl}-E'
13350 hardcode_direct_CXX=yes
13351 hardcode_minus_L_CXX=yes # Not in the search PATH,
13352 # but as the default
13353 # location of the library.
13355 case $cc_basename in
13357 # FIXME: insert proper C++ library support
13361 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'
13362 # Commands to make compiler produce verbose output that lists
13363 # what "hidden" libraries, object files and flags are used when
13364 # linking a shared library.
13366 # There doesn't appear to be a way to prevent this compiler from
13367 # explicitly linking system object files so we need to strip them
13368 # from the output so that they don't get included in the library
13370 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'
13373 if test "$GXX" = yes; then
13374 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'
13376 # FIXME: insert proper C++ library support
13383 if test $with_gnu_ld = no; then
13384 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13385 hardcode_libdir_separator_CXX=:
13390 export_dynamic_flag_spec_CXX='${wl}-E'
13396 hardcode_direct_CXX=no
13397 hardcode_shlibpath_var_CXX=no
13400 hardcode_direct_CXX=yes
13401 hardcode_minus_L_CXX=yes # Not in the search PATH,
13402 # but as the default
13403 # location of the library.
13407 case $cc_basename in
13409 # FIXME: insert proper C++ library support
13415 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13418 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13421 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13424 # Commands to make compiler produce verbose output that lists
13425 # what "hidden" libraries, object files and flags are used when
13426 # linking a shared library.
13428 # There doesn't appear to be a way to prevent this compiler from
13429 # explicitly linking system object files so we need to strip them
13430 # from the output so that they don't get included in the library
13432 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'
13435 if test "$GXX" = yes; then
13436 if test $with_gnu_ld = no; then
13439 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13445 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'
13450 # FIXME: insert proper C++ library support
13457 hardcode_direct_CXX=no
13458 hardcode_shlibpath_var_CXX=no
13459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13460 export_dynamic_flag_spec_CXX='${wl}-E'
13461 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13462 # Instead, shared libraries are loaded at an image base (0x10000000 by
13463 # default) and relocated if they conflict, which is a slow very memory
13464 # consuming and fragmenting process. To avoid this, we pick a random,
13465 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13466 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13467 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'
13468 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'
13471 case $cc_basename in
13474 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'
13476 # Archives containing C++ object files must be created using
13477 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13478 # necessary to make sure instantiated templates are included
13480 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13483 if test "$GXX" = yes; then
13484 if test "$with_gnu_ld" = no; then
13485 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'
13487 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'
13490 link_all_deplibs_CXX=yes
13493 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13494 hardcode_libdir_separator_CXX=:
13496 linux* | k*bsd*-gnu)
13497 case $cc_basename in
13499 # Kuck and Associates, Inc. (KAI) C++ Compiler
13501 # KCC will only create a shared library if the output file
13502 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13503 # to its proper name (with version) after linking.
13504 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'
13505 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'
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13510 # There doesn't appear to be a way to prevent this compiler from
13511 # explicitly linking system object files so we need to strip them
13512 # from the output so that they don't get included in the library
13514 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'
13516 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13519 # Archives containing C++ object files must be created using
13520 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13521 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13526 # version 8.0 and above of icpc choke on multiply defined symbols
13527 # if we add $predep_objects and $postdep_objects, however 7.1 and
13528 # earlier do not add the objects themselves.
13529 case `$CC -V 2>&1` in
13531 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 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'
13534 *) # Version 8.0 or newer
13537 ia64*) tmp_idyn=' -i_dynamic';;
13539 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540 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'
13543 archive_cmds_need_lc_CXX=no
13544 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13546 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13549 # Portland Group C++ compiler
13550 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13551 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'
13553 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13554 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13555 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'
13559 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13560 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'
13562 runpath_var=LD_RUN_PATH
13563 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13564 hardcode_libdir_separator_CXX=:
13566 # Commands to make compiler produce verbose output that lists
13567 # what "hidden" libraries, object files and flags are used when
13568 # linking a shared library.
13570 # There doesn't appear to be a way to prevent this compiler from
13571 # explicitly linking system object files so we need to strip them
13572 # from the output so that they don't get included in the library
13574 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'
13577 case `$CC -V 2>&1 | sed 5q` in
13580 no_undefined_flag_CXX=' -zdefs'
13581 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13582 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13583 hardcode_libdir_flag_spec_CXX='-R$libdir'
13584 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13586 # Not sure whether something based on
13587 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13589 output_verbose_link_cmd='echo'
13591 # Archives containing C++ object files must be created using
13592 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13593 # necessary to make sure instantiated templates are included
13595 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13602 # FIXME: insert proper C++ library support
13606 # FIXME: insert proper C++ library support
13610 case $cc_basename in
13612 # FIXME: insert proper C++ library support
13616 # FIXME: insert proper C++ library support
13622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13623 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13625 hardcode_libdir_flag_spec_CXX='-R$libdir'
13626 hardcode_direct_CXX=yes
13627 hardcode_shlibpath_var_CXX=no
13629 # Workaround some broken pre-1.5 toolchains
13630 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13633 # C++ shared libraries are fairly broken
13637 if test -f /usr/libexec/ld.so; then
13638 hardcode_direct_CXX=yes
13639 hardcode_shlibpath_var_CXX=no
13640 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13643 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13644 export_dynamic_flag_spec_CXX='${wl}-E'
13645 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13647 output_verbose_link_cmd='echo'
13653 case $cc_basename in
13655 # Kuck and Associates, Inc. (KAI) C++ Compiler
13657 # KCC will only create a shared library if the output file
13658 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13659 # to its proper name (with version) after linking.
13660 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'
13662 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13663 hardcode_libdir_separator_CXX=:
13665 # Archives containing C++ object files must be created using
13666 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13667 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13671 # Rational C++ 2.4.1
13672 # FIXME: insert proper C++ library support
13676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13677 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'
13679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13680 hardcode_libdir_separator_CXX=:
13682 # Commands to make compiler produce verbose output that lists
13683 # what "hidden" libraries, object files and flags are used when
13684 # linking a shared library.
13686 # There doesn't appear to be a way to prevent this compiler from
13687 # explicitly linking system object files so we need to strip them
13688 # from the output so that they don't get included in the library
13690 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'
13693 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13694 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13695 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'
13697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13698 hardcode_libdir_separator_CXX=:
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13706 # FIXME: insert proper C++ library support
13713 case $cc_basename in
13715 # Kuck and Associates, Inc. (KAI) C++ Compiler
13717 # KCC will only create a shared library if the output file
13718 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13719 # to its proper name (with version) after linking.
13720 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'
13722 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13723 hardcode_libdir_separator_CXX=:
13725 # Archives containing C++ object files must be created using
13726 # the KAI C++ compiler.
13727 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13730 # Rational C++ 2.4.1
13731 # FIXME: insert proper C++ library support
13735 allow_undefined_flag_CXX=' -expect_unresolved \*'
13736 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'
13737 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13738 echo "-hidden">> $lib.exp~
13739 $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~
13742 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13743 hardcode_libdir_separator_CXX=:
13745 # Commands to make compiler produce verbose output that lists
13746 # what "hidden" libraries, object files and flags are used when
13747 # linking a shared library.
13749 # There doesn't appear to be a way to prevent this compiler from
13750 # explicitly linking system object files so we need to strip them
13751 # from the output so that they don't get included in the library
13753 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'
13756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13757 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13758 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'
13760 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13761 hardcode_libdir_separator_CXX=:
13763 # Commands to make compiler produce verbose output that lists
13764 # what "hidden" libraries, object files and flags are used when
13765 # linking a shared library.
13766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13769 # FIXME: insert proper C++ library support
13776 # FIXME: insert proper C++ library support
13780 case $cc_basename in
13783 # FIXME: insert proper C++ library support
13788 # FIXME: insert proper C++ library support
13792 # FIXME: insert proper C++ library support
13798 case $cc_basename in
13800 # Sun C++ 4.2, 5.x and Centerline C++
13801 archive_cmds_need_lc_CXX=yes
13802 no_undefined_flag_CXX=' -zdefs'
13803 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13804 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13805 $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'
13807 hardcode_libdir_flag_spec_CXX='-R$libdir'
13808 hardcode_shlibpath_var_CXX=no
13810 solaris2.[0-5] | solaris2.[0-5].*) ;;
13812 # The compiler driver will combine and reorder linker options,
13813 # but understands `-z linker_flag'.
13814 # Supported since Solaris 2.6 (maybe 2.5.1?)
13815 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13818 link_all_deplibs_CXX=yes
13820 output_verbose_link_cmd='echo'
13822 # Archives containing C++ object files must be created using
13823 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13824 # necessary to make sure instantiated templates are included
13826 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13829 # Green Hills C++ Compiler
13830 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13832 # The C++ compiler must be used to create the archive.
13833 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13836 # GNU C++ compiler with Solaris linker
13837 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13838 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13839 if $CC --version | grep -v '^2\.7' > /dev/null; then
13840 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13841 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13842 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13844 # Commands to make compiler produce verbose output that lists
13845 # what "hidden" libraries, object files and flags are used when
13846 # linking a shared library.
13847 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13849 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13851 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13852 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13853 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13855 # Commands to make compiler produce verbose output that lists
13856 # what "hidden" libraries, object files and flags are used when
13857 # linking a shared library.
13858 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13861 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13863 solaris2.[0-5] | solaris2.[0-5].*) ;;
13865 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13873 no_undefined_flag_CXX='${wl}-z,text'
13874 archive_cmds_need_lc_CXX=no
13875 hardcode_shlibpath_var_CXX=no
13876 runpath_var='LD_RUN_PATH'
13878 case $cc_basename in
13880 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13881 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13884 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13885 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13889 sysv5* | sco3.2v5* | sco5v6*)
13890 # Note: We can NOT use -z defs as we might desire, because we do not
13891 # link with -lc, and that would cause any symbols used from libc to
13892 # always be unresolved, which means just about no library would
13893 # ever link correctly. If we're not using GNU ld we use -z text
13894 # though, which does catch some bad symbols but isn't as heavy-handed
13896 # For security reasons, it is highly recommended that you always
13897 # use absolute paths for naming shared libraries, and exclude the
13898 # DT_RUNPATH tag from executables and libraries. But doing so
13899 # requires that you compile everything twice, which is a pain.
13900 # So that behaviour is only enabled if SCOABSPATH is set to a
13901 # non-empty value in the environment. Most likely only useful for
13902 # creating official distributions of packages.
13903 # This is a hack until libtool officially supports absolute path
13904 # names for shared libraries.
13905 no_undefined_flag_CXX='${wl}-z,text'
13906 allow_undefined_flag_CXX='${wl}-z,nodefs'
13907 archive_cmds_need_lc_CXX=no
13908 hardcode_shlibpath_var_CXX=no
13909 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13910 hardcode_libdir_separator_CXX=':'
13911 link_all_deplibs_CXX=yes
13912 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13913 runpath_var='LD_RUN_PATH'
13915 case $cc_basename in
13917 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13918 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13921 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13922 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 case $cc_basename in
13929 # NonStop-UX NCC 3.20
13930 # FIXME: insert proper C++ library support
13934 # FIXME: insert proper C++ library support
13940 # FIXME: insert proper C++ library support
13944 # FIXME: insert proper C++ library support
13948 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13949 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13950 test "$ld_shlibs_CXX" = no && can_build_shared=no
13956 ## There is no encapsulation within the following macros, do not change
13957 ## the running order or otherwise move them around unless you know exactly
13958 ## what you are doing...
13959 cat > conftest.$ac_ext <<EOF
13963 Foo (void) { a = 0; }
13969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13970 (eval $ac_compile) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; then
13974 # Parse the compiler output and extract the necessary
13975 # objects, libraries and library flags.
13977 # Sentinel used to keep track of whether or not we are before
13978 # the conftest object file.
13979 pre_test_object_deps_done=no
13981 # The `*' in the case matches for architectures that use `case' in
13982 # $output_verbose_cmd can trigger glob expansion during the loop
13983 # eval without this substitution.
13984 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13986 for p in `eval $output_verbose_link_cmd`; do
13990 # Some compilers place space between "-{L,R}" and the path.
13991 # Remove the space.
13992 if test $p = "-L" \
13993 || test $p = "-R"; then
14000 if test "$pre_test_object_deps_done" = no; then
14003 # Internal compiler library paths should come after those
14004 # provided the user. The postdeps already come after the
14005 # user supplied libs so there is no need to process them.
14006 if test -z "$compiler_lib_search_path_CXX"; then
14007 compiler_lib_search_path_CXX="${prev}${p}"
14009 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14012 # The "-l" case would never come before the object being
14013 # linked, so don't bother handling this case.
14016 if test -z "$postdeps_CXX"; then
14017 postdeps_CXX="${prev}${p}"
14019 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14025 # This assumes that the test object file only shows up
14026 # once in the compiler output.
14027 if test "$p" = "conftest.$objext"; then
14028 pre_test_object_deps_done=yes
14032 if test "$pre_test_object_deps_done" = no; then
14033 if test -z "$predep_objects_CXX"; then
14034 predep_objects_CXX="$p"
14036 predep_objects_CXX="$predep_objects_CXX $p"
14039 if test -z "$postdep_objects_CXX"; then
14040 postdep_objects_CXX="$p"
14042 postdep_objects_CXX="$postdep_objects_CXX $p"
14047 *) ;; # Ignore the rest.
14055 echo "libtool.m4: error: problem compiling CXX test program"
14058 $rm -f confest.$objext
14060 compiler_lib_search_dirs_CXX=
14061 if test -n "$compiler_lib_search_path_CXX"; then
14062 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14065 # PORTME: override above test on systems where it is broken
14068 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14069 # hack all around it, let's just trust "g++" to DTRT.
14070 predep_objects_CXX=
14071 postdep_objects_CXX=
14076 case `$CC -V 2>&1 | sed 5q` in
14080 # The more standards-conforming stlport4 library is
14081 # incompatible with the Cstd library. Avoid specifying
14082 # it if it's in CXXFLAGS. Ignore libCrun as
14083 # -library=stlport4 depends on it.
14084 case " $CXX $CXXFLAGS " in
14085 *" -library=stlport4 "*)
14086 solaris_use_stlport4=yes
14089 if test "$solaris_use_stlport4" != yes; then
14090 postdeps_CXX='-library=Cstd -library=Crun'
14097 case $cc_basename in
14099 # The more standards-conforming stlport4 library is
14100 # incompatible with the Cstd library. Avoid specifying
14101 # it if it's in CXXFLAGS. Ignore libCrun as
14102 # -library=stlport4 depends on it.
14103 case " $CXX $CXXFLAGS " in
14104 *" -library=stlport4 "*)
14105 solaris_use_stlport4=yes
14109 # Adding this requires a known-good setup of shared libraries for
14110 # Sun compiler versions before 5.6, else PIC objects from an old
14111 # archive will be linked into the output, leading to subtle bugs.
14112 if test "$solaris_use_stlport4" != yes; then
14113 postdeps_CXX='-library=Cstd -library=Crun'
14120 case " $postdeps_CXX " in
14121 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14124 lt_prog_compiler_wl_CXX=
14125 lt_prog_compiler_pic_CXX=
14126 lt_prog_compiler_static_CXX=
14128 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14129 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14131 # C++ specific cases for pic, static, wl, etc.
14132 if test "$GXX" = yes; then
14133 lt_prog_compiler_wl_CXX='-Wl,'
14134 lt_prog_compiler_static_CXX='-static'
14138 # All AIX code is PIC.
14139 if test "$host_cpu" = ia64; then
14140 # AIX 5 now supports IA64 processor
14141 lt_prog_compiler_static_CXX='-Bstatic'
14145 # FIXME: we need at least 68020 code to build shared libraries, but
14146 # adding the `-m68020' flag to GCC prevents building anything better,
14148 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14150 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14151 # PIC is the default for these OSes.
14153 mingw* | cygwin* | os2* | pw32*)
14154 # This hack is so that the source file can tell whether it is being
14155 # built for inclusion in a dll (and should export symbols for example).
14156 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14157 # (--disable-auto-import) libraries
14158 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14160 darwin* | rhapsody*)
14161 # PIC is the default on this platform
14162 # Common symbols not allowed in MH_DYLIB files
14163 lt_prog_compiler_pic_CXX='-fno-common'
14166 # DJGPP does not support shared libraries at all
14167 lt_prog_compiler_pic_CXX=
14170 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14171 # Instead, we relocate shared libraries at runtime.
14174 if test -d /usr/nec; then
14175 lt_prog_compiler_pic_CXX=-Kconform_pic
14179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180 # not for PA HP-UX.
14185 lt_prog_compiler_pic_CXX='-fPIC'
14190 lt_prog_compiler_pic_CXX='-fPIC'
14196 # All AIX code is PIC.
14197 if test "$host_cpu" = ia64; then
14198 # AIX 5 now supports IA64 processor
14199 lt_prog_compiler_static_CXX='-Bstatic'
14201 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14205 case $cc_basename in
14207 # Green Hills C++ Compiler
14208 # _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"
14213 # PIC is the default on this platform
14214 # Common symbols not allowed in MH_DYLIB files
14215 case $cc_basename in
14217 lt_prog_compiler_pic_CXX='-qnocommon'
14218 lt_prog_compiler_wl_CXX='-Wl,'
14223 case $cc_basename in
14225 lt_prog_compiler_pic_CXX='-KPIC'
14228 # Green Hills C++ Compiler
14229 lt_prog_compiler_pic_CXX='-pic'
14235 freebsd* | dragonfly*)
14236 # FreeBSD uses GNU C++
14238 hpux9* | hpux10* | hpux11*)
14239 case $cc_basename in
14241 lt_prog_compiler_wl_CXX='-Wl,'
14242 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14243 if test "$host_cpu" != ia64; then
14244 lt_prog_compiler_pic_CXX='+Z'
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14255 lt_prog_compiler_pic_CXX='+Z'
14264 # This is c89, which is MS Visual C++ (no shared libs)
14265 # Anyone wants to do a port?
14267 irix5* | irix6* | nonstopux*)
14268 case $cc_basename in
14270 lt_prog_compiler_wl_CXX='-Wl,'
14271 lt_prog_compiler_static_CXX='-non_shared'
14272 # CC pic flag -KPIC is the default.
14278 linux* | k*bsd*-gnu)
14279 case $cc_basename in
14282 lt_prog_compiler_wl_CXX='--backend -Wl,'
14283 lt_prog_compiler_pic_CXX='-fPIC'
14287 lt_prog_compiler_wl_CXX='-Wl,'
14288 lt_prog_compiler_pic_CXX='-KPIC'
14289 lt_prog_compiler_static_CXX='-static'
14292 # Portland Group C++ compiler.
14293 lt_prog_compiler_wl_CXX='-Wl,'
14294 lt_prog_compiler_pic_CXX='-fpic'
14295 lt_prog_compiler_static_CXX='-Bstatic'
14299 # Make sure the PIC flag is empty. It appears that all Alpha
14300 # Linux and Compaq Tru64 Unix objects are PIC.
14301 lt_prog_compiler_pic_CXX=
14302 lt_prog_compiler_static_CXX='-non_shared'
14305 case `$CC -V 2>&1 | sed 5q` in
14308 lt_prog_compiler_pic_CXX='-KPIC'
14309 lt_prog_compiler_static_CXX='-Bstatic'
14310 lt_prog_compiler_wl_CXX='-Qoption ld '
14321 case $cc_basename in
14323 lt_prog_compiler_pic_CXX='-W c,exportall'
14331 osf3* | osf4* | osf5*)
14332 case $cc_basename in
14334 lt_prog_compiler_wl_CXX='--backend -Wl,'
14337 # Rational C++ 2.4.1
14338 lt_prog_compiler_pic_CXX='-pic'
14341 # Digital/Compaq C++
14342 lt_prog_compiler_wl_CXX='-Wl,'
14343 # Make sure the PIC flag is empty. It appears that all Alpha
14344 # Linux and Compaq Tru64 Unix objects are PIC.
14345 lt_prog_compiler_pic_CXX=
14346 lt_prog_compiler_static_CXX='-non_shared'
14355 case $cc_basename in
14357 # Sun C++ 4.2, 5.x and Centerline C++
14358 lt_prog_compiler_pic_CXX='-KPIC'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 lt_prog_compiler_wl_CXX='-Qoption ld '
14363 # Green Hills C++ Compiler
14364 lt_prog_compiler_pic_CXX='-PIC'
14371 case $cc_basename in
14374 lt_prog_compiler_pic_CXX='-pic'
14375 lt_prog_compiler_static_CXX='-Bstatic'
14379 lt_prog_compiler_pic_CXX='-pic'
14386 case $cc_basename in
14388 # NonStop-UX NCC 3.20
14389 lt_prog_compiler_pic_CXX='-KPIC'
14395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14396 case $cc_basename in
14398 lt_prog_compiler_wl_CXX='-Wl,'
14399 lt_prog_compiler_pic_CXX='-KPIC'
14400 lt_prog_compiler_static_CXX='-Bstatic'
14407 lt_prog_compiler_can_build_shared_CXX=no
14412 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14413 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14416 # Check to make sure the PIC flag actually works.
14418 if test -n "$lt_prog_compiler_pic_CXX"; then
14420 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14421 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14422 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 lt_cv_prog_compiler_pic_works_CXX=no
14426 ac_outfile=conftest.$ac_objext
14427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14429 # Insert the option either (1) after the last *FLAGS variable, or
14430 # (2) before a word containing "conftest.", or (3) at the end.
14431 # Note that $ac_compile itself does not contain backslashes and begins
14432 # with a dollar sign (not a hyphen), so the echo should work correctly.
14433 # The option is referenced via a variable to avoid confusing sed.
14434 lt_compile=`echo "$ac_compile" | $SED \
14435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14437 -e 's:$: $lt_compiler_flag:'`
14438 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14439 (eval "$lt_compile" 2>conftest.err)
14441 cat conftest.err >&5
14442 echo "$as_me:__oline__: \$? = $ac_status" >&5
14443 if (exit $ac_status) && test -s "$ac_outfile"; then
14444 # The compiler can only warn and ignore the option if not recognized
14445 # So say no if there are warnings other than the usual output.
14446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14449 lt_cv_prog_compiler_pic_works_CXX=yes
14455 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14456 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14458 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14459 case $lt_prog_compiler_pic_CXX in
14461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14464 lt_prog_compiler_pic_CXX=
14465 lt_prog_compiler_can_build_shared_CXX=no
14470 # For platforms which do not support PIC, -DPIC is meaningless:
14472 lt_prog_compiler_pic_CXX=
14475 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14480 # Check to make sure the static flag actually works.
14482 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14483 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14484 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14485 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 lt_cv_prog_compiler_static_works_CXX=no
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14493 # The linker can only warn and ignore the option if not recognized
14494 # So say no if there are warnings
14495 if test -s conftest.err; then
14496 # Append any errors to the config.log.
14497 cat conftest.err 1>&5
14498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14500 if diff conftest.exp conftest.er2 >/dev/null; then
14501 lt_cv_prog_compiler_static_works_CXX=yes
14504 lt_cv_prog_compiler_static_works_CXX=yes
14508 LDFLAGS="$save_LDFLAGS"
14511 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14512 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14514 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14517 lt_prog_compiler_static_CXX=
14521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 lt_cv_prog_compiler_c_o_CXX=no
14527 $rm -r conftest 2>/dev/null
14531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14533 lt_compiler_flag="-o out/conftest2.$ac_objext"
14534 # Insert the option either (1) after the last *FLAGS variable, or
14535 # (2) before a word containing "conftest.", or (3) at the end.
14536 # Note that $ac_compile itself does not contain backslashes and begins
14537 # with a dollar sign (not a hyphen), so the echo should work correctly.
14538 lt_compile=`echo "$ac_compile" | $SED \
14539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14541 -e 's:$: $lt_compiler_flag:'`
14542 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14543 (eval "$lt_compile" 2>out/conftest.err)
14545 cat out/conftest.err >&5
14546 echo "$as_me:__oline__: \$? = $ac_status" >&5
14547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14549 # The compiler can only warn and ignore the option if not recognized
14550 # So say no if there are warnings
14551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14554 lt_cv_prog_compiler_c_o_CXX=yes
14559 # SGI C++ compiler will create directory out/ii_files/ for
14560 # template instantiation
14561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14562 $rm out/* && rmdir out
14568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14572 hard_links="nottested"
14573 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14574 # do not overwrite the value of need_locks provided by the user
14575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581 ln conftest.a conftest.b 2>&5 || hard_links=no
14582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14583 { echo "$as_me:$LINENO: result: $hard_links" >&5
14584 echo "${ECHO_T}$hard_links" >&6; }
14585 if test "$hard_links" = no; then
14586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14594 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14600 # If we're using GNU nm, then we don't want the "-C" option.
14601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14603 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'
14605 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'
14609 export_symbols_cmds_CXX="$ltdll_cmds"
14612 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'
14615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14618 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14620 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14621 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14622 test "$ld_shlibs_CXX" = no && can_build_shared=no
14625 # Do we need to explicitly link libc?
14627 case "x$archive_cmds_need_lc_CXX" in
14629 # Assume -lc should be added
14630 archive_cmds_need_lc_CXX=yes
14632 if test "$enable_shared" = yes && test "$GCC" = yes; then
14633 case $archive_cmds_CXX in
14635 # FIXME: we may have to deal with multi-command sequences.
14638 # Test whether the compiler implicitly links with -lc since on some
14639 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14640 # to ld, don't add -lc before -lgcc.
14641 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14642 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } 2>conftest.err; then
14653 libobjs=conftest.$ac_objext
14655 wl=$lt_prog_compiler_wl_CXX
14656 pic_flag=$lt_prog_compiler_pic_CXX
14662 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14663 allow_undefined_flag_CXX=
14664 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14665 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }
14670 archive_cmds_need_lc_CXX=no
14672 archive_cmds_need_lc_CXX=yes
14674 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14676 cat conftest.err 1>&5
14679 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14687 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14689 library_names_spec=
14690 libname_spec='lib$name'
14694 postuninstall_cmds=
14698 shlibpath_overrides_runpath=unknown
14700 dynamic_linker="$host_os ld.so"
14701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14703 need_lib_prefix=unknown
14704 hardcode_into_libs=no
14706 # when you set need_version to no, make sure it does not cause -set_version
14707 # flags to be left without arguments
14708 need_version=unknown
14713 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14714 shlibpath_var=LIBPATH
14716 # AIX 3 has no versioning support, so we append a major version to the name.
14717 soname_spec='${libname}${release}${shared_ext}$major'
14724 hardcode_into_libs=yes
14725 if test "$host_cpu" = ia64; then
14726 # AIX 5 supports IA64
14727 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14728 shlibpath_var=LD_LIBRARY_PATH
14730 # With GCC up to 2.95.x, collect2 would create an import file
14731 # for dependence libraries. The import file would start with
14732 # the line `#! .'. This would cause the generated library to
14733 # depend on `.', always an invalid library. This was fixed in
14734 # development snapshots of GCC prior to 3.0.
14736 aix4 | aix4.[01] | aix4.[01].*)
14737 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14739 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14742 can_build_shared=no
14746 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14747 # soname into executable. Probably we can add versioning support to
14748 # collect2, so additional links can be useful in future.
14749 if test "$aix_use_runtimelinking" = yes; then
14750 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14751 # instead of lib<name>.a to let people know that these are not
14752 # typical AIX shared libraries.
14753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14755 # We preserve .a as extension for shared libraries through AIX4.2
14756 # and later when we are not doing run time linking.
14757 library_names_spec='${libname}${release}.a $libname.a'
14758 soname_spec='${libname}${release}${shared_ext}$major'
14760 shlibpath_var=LIBPATH
14765 library_names_spec='$libname.ixlibrary $libname.a'
14766 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14767 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'
14771 library_names_spec='${libname}${shared_ext}'
14772 dynamic_linker="$host_os ld.so"
14773 shlibpath_var=LIBRARY_PATH
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14784 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14785 # the default ld.so.conf also contains /usr/contrib/lib and
14786 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14787 # libtool to hard-code these into programs
14790 cygwin* | mingw* | pw32*)
14791 version_type=windows
14796 case $GCC,$host_os in
14797 yes,cygwin* | yes,mingw* | yes,pw32*)
14798 library_names_spec='$libname.dll.a'
14799 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14800 postinstall_cmds='base_file=`basename \${file}`~
14801 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14802 dldir=$destdir/`dirname \$dlpath`~
14803 test -d \$dldir || mkdir -p \$dldir~
14804 $install_prog $dir/$dlname \$dldir/$dlname~
14805 chmod a+x \$dldir/$dlname'
14806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14807 dlpath=$dir/\$dldll~
14809 shlibpath_overrides_runpath=yes
14813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14815 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14818 # MinGW DLLs use traditional 'lib' prefix
14819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14821 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14822 # It is most probably a Windows format PATH printed by
14823 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14824 # path with ; separators, and with drive letters. We can handle the
14825 # drive letters (cygwin fileutils understands them), so leave them,
14826 # especially as we might pass files found there to a mingw objdump,
14827 # which wouldn't understand a cygwinified path. Ahh.
14828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14834 # pw32 DLLs use 'pw' prefix rather than 'lib'
14835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14844 dynamic_linker='Win32 ld.exe'
14845 # FIXME: first we should search . and the directory the executable is in
14849 darwin* | rhapsody*)
14850 dynamic_linker="$host_os dyld"
14851 version_type=darwin
14854 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14855 soname_spec='${libname}${release}${major}$shared_ext'
14856 shlibpath_overrides_runpath=yes
14857 shlibpath_var=DYLD_LIBRARY_PATH
14858 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14868 soname_spec='${libname}${release}${shared_ext}$major'
14869 shlibpath_var=LD_LIBRARY_PATH
14876 freebsd* | dragonfly*)
14877 # DragonFly does not have aout. When/if they implement a new
14878 # versioning mechanism, adjust this.
14879 if test -x /usr/bin/objformat; then
14880 objformat=`/usr/bin/objformat`
14883 freebsd[123]*) objformat=aout ;;
14884 *) objformat=elf ;;
14887 version_type=freebsd-$objformat
14888 case $version_type in
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14899 shlibpath_var=LD_LIBRARY_PATH
14902 shlibpath_overrides_runpath=yes
14904 freebsd3.[01]* | freebsdelf3.[01]*)
14905 shlibpath_overrides_runpath=yes
14906 hardcode_into_libs=yes
14908 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14909 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14910 shlibpath_overrides_runpath=no
14911 hardcode_into_libs=yes
14913 *) # from 4.6 on, and DragonFly
14914 shlibpath_overrides_runpath=yes
14915 hardcode_into_libs=yes
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14925 soname_spec='${libname}${release}${shared_ext}$major'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 hardcode_into_libs=yes
14930 hpux9* | hpux10* | hpux11*)
14931 # Give a soname corresponding to the major version so that dld.sl refuses to
14932 # link against other versions.
14939 hardcode_into_libs=yes
14940 dynamic_linker="$host_os dld.so"
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14944 soname_spec='${libname}${release}${shared_ext}$major'
14945 if test "X$HPUX_IA64_MODE" = X32; then
14946 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14948 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14950 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14954 hardcode_into_libs=yes
14955 dynamic_linker="$host_os dld.sl"
14956 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14959 soname_spec='${libname}${release}${shared_ext}$major'
14960 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14965 dynamic_linker="$host_os dld.sl"
14966 shlibpath_var=SHLIB_PATH
14967 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14969 soname_spec='${libname}${release}${shared_ext}$major'
14972 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14973 postinstall_cmds='chmod 555 $lib'
14980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14981 soname_spec='${libname}${release}${shared_ext}$major'
14982 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=no
14985 hardcode_into_libs=yes
14988 irix5* | irix6* | nonstopux*)
14990 nonstopux*) version_type=nonstopux ;;
14992 if test "$lt_cv_prog_gnu_ld" = yes; then
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15003 irix5* | nonstopux*)
15004 libsuff= shlibsuff=
15007 case $LD in # libtool.m4 will add one of these switches to LD
15008 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15009 libsuff= shlibsuff= libmagic=32-bit;;
15010 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15011 libsuff=32 shlibsuff=N32 libmagic=N32;;
15012 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15013 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15014 *) libsuff= shlibsuff= libmagic=never-match;;
15018 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15019 shlibpath_overrides_runpath=no
15020 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15021 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15022 hardcode_into_libs=yes
15025 # No shared lib support for Linux oldld, aout, or coff.
15026 linux*oldld* | linux*aout* | linux*coff*)
15030 # This must be Linux ELF.
15031 linux* | k*bsd*-gnu)
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15038 shlibpath_var=LD_LIBRARY_PATH
15039 shlibpath_overrides_runpath=no
15040 # This implies no fast_install, which is unacceptable.
15041 # Some rework will be needed to allow for fast_install
15042 # before this can be enabled.
15043 hardcode_into_libs=yes
15045 # Append ld.so.conf contents to the search path
15046 if test -f /etc/ld.so.conf; then
15047 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15048 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15051 # We used to test for /lib/ld.so.1 and disable shared libraries on
15052 # powerpc, because MkLinux only supported shared libraries with the
15053 # GNU dynamic linker. Since this was broken with cross compilers,
15054 # most powerpc-linux boxes support dynamic linking these days and
15055 # people can always --disable-shared, the test was removed, and we
15056 # assume the GNU/Linux dynamic linker is in use.
15057 dynamic_linker='GNU/Linux ld.so'
15064 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15067 dynamic_linker='NetBSD (a.out) ld.so'
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 dynamic_linker='NetBSD ld.elf_so'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15081 shlibpath_var=LD_LIBRARY_PATH
15082 shlibpath_overrides_runpath=yes
15089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090 soname_spec='${libname}${release}${shared_ext}$major'
15091 shlibpath_var=LD_LIBRARY_PATH
15092 shlibpath_overrides_runpath=yes
15097 sys_lib_dlsearch_path_spec="/usr/lib"
15099 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15101 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15102 *) need_version=no ;;
15104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15105 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15106 shlibpath_var=LD_LIBRARY_PATH
15107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15109 openbsd2.[89] | openbsd2.[89].*)
15110 shlibpath_overrides_runpath=no
15113 shlibpath_overrides_runpath=yes
15117 shlibpath_overrides_runpath=yes
15122 libname_spec='$name'
15125 library_names_spec='$libname${shared_ext} $libname.a'
15126 dynamic_linker='OS/2 ld.exe'
15127 shlibpath_var=LIBPATH
15130 osf3* | osf4* | osf5*)
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15138 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 shlibpath_var=LD_LIBRARY_PATH
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15154 # ldd complains unless libraries are executable
15155 postinstall_cmds='chmod +x $lib'
15160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15161 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 shlibpath_overrides_runpath=yes
15164 if test "$with_gnu_ld" = yes; then
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15173 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 case $host_vendor in
15177 shlibpath_overrides_runpath=no
15179 export_dynamic_flag_spec='${wl}-Blargedynsym'
15180 runpath_var=LD_RUN_PATH
15188 shlibpath_overrides_runpath=no
15189 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15195 if test -d /usr/nec ;then
15197 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15198 soname_spec='$libname${shared_ext}.$major'
15199 shlibpath_var=LD_LIBRARY_PATH
15203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15204 version_type=freebsd-elf
15207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 hardcode_into_libs=yes
15211 if test "$with_gnu_ld" = yes; then
15212 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15213 shlibpath_overrides_runpath=no
15215 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15216 shlibpath_overrides_runpath=yes
15219 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15223 sys_lib_dlsearch_path_spec='/usr/lib'
15228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 shlibpath_var=LD_LIBRARY_PATH
15237 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15238 echo "${ECHO_T}$dynamic_linker" >&6; }
15239 test "$dynamic_linker" = no && can_build_shared=no
15241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15247 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15248 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15254 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15257 if test "$GCC" = yes; then
15258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15263 hardcode_action_CXX=
15264 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15265 test -n "$runpath_var_CXX" || \
15266 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15268 # We can hardcode non-existant directories.
15269 if test "$hardcode_direct_CXX" != no &&
15270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15271 # have to relink, otherwise we might link with an installed library
15272 # when we should be linking with a yet-to-be-installed one
15273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15274 test "$hardcode_minus_L_CXX" != no; then
15275 # Linking always hardcodes the temporary library directory.
15276 hardcode_action_CXX=relink
15278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15279 hardcode_action_CXX=immediate
15282 # We cannot hardcode anything, or else we can only hardcode existing
15284 hardcode_action_CXX=unsupported
15286 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15287 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15289 if test "$hardcode_action_CXX" = relink; then
15290 # Fast installation is not supported
15291 enable_fast_install=no
15292 elif test "$shlibpath_overrides_runpath" = yes ||
15293 test "$enable_shared" = no; then
15294 # Fast installation is not necessary
15295 enable_fast_install=needless
15299 # The else clause should only fire when bootstrapping the
15300 # libtool distribution, otherwise you forgot to ship ltmain.sh
15301 # with your package, and you will get complaints that there are
15302 # no rules to generate ltmain.sh.
15303 if test -f "$ltmain"; then
15304 # See if we are running on zsh, and set the options which allow our commands through
15305 # without removal of \ escapes.
15306 if test -n "${ZSH_VERSION+set}" ; then
15307 setopt NO_GLOB_SUBST
15309 # Now quote all the things that may contain metacharacters while being
15310 # careful not to overquote the AC_SUBSTed values. We take copies of the
15311 # variables and quote the copies for generation of the libtool script.
15312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15316 deplibs_check_method reload_flag reload_cmds need_locks \
15317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15318 lt_cv_sys_global_symbol_to_c_name_address \
15319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15320 old_postinstall_cmds old_postuninstall_cmds \
15324 lt_prog_compiler_wl_CXX \
15325 lt_prog_compiler_pic_CXX \
15326 lt_prog_compiler_static_CXX \
15327 lt_prog_compiler_no_builtin_flag_CXX \
15328 export_dynamic_flag_spec_CXX \
15329 thread_safe_flag_spec_CXX \
15330 whole_archive_flag_spec_CXX \
15331 enable_shared_with_static_runtimes_CXX \
15332 old_archive_cmds_CXX \
15333 old_archive_from_new_cmds_CXX \
15334 predep_objects_CXX \
15335 postdep_objects_CXX \
15338 compiler_lib_search_path_CXX \
15339 compiler_lib_search_dirs_CXX \
15341 archive_expsym_cmds_CXX \
15342 postinstall_cmds_CXX \
15343 postuninstall_cmds_CXX \
15344 old_archive_from_expsyms_cmds_CXX \
15345 allow_undefined_flag_CXX \
15346 no_undefined_flag_CXX \
15347 export_symbols_cmds_CXX \
15348 hardcode_libdir_flag_spec_CXX \
15349 hardcode_libdir_flag_spec_ld_CXX \
15350 hardcode_libdir_separator_CXX \
15351 hardcode_automatic_CXX \
15353 module_expsym_cmds_CXX \
15354 lt_cv_prog_compiler_c_o_CXX \
15355 fix_srcfile_path_CXX \
15356 exclude_expsyms_CXX \
15357 include_expsyms_CXX; do
15360 old_archive_cmds_CXX | \
15361 old_archive_from_new_cmds_CXX | \
15362 archive_cmds_CXX | \
15363 archive_expsym_cmds_CXX | \
15364 module_cmds_CXX | \
15365 module_expsym_cmds_CXX | \
15366 old_archive_from_expsyms_cmds_CXX | \
15367 export_symbols_cmds_CXX | \
15368 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15369 postinstall_cmds | postuninstall_cmds | \
15370 old_postinstall_cmds | old_postuninstall_cmds | \
15371 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15372 # Double-quote double-evaled strings.
15373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15376 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15382 *'\$0 --fallback-echo"')
15383 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15389 cat <<__EOF__ >> "$cfgfile"
15390 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15392 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15394 # Shell to use when invoking shell scripts.
15397 # Whether or not to build shared libraries.
15398 build_libtool_libs=$enable_shared
15400 # Whether or not to build static libraries.
15401 build_old_libs=$enable_static
15403 # Whether or not to add -lc for building shared libraries.
15404 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15406 # Whether or not to disallow shared libs when runtime libs are static
15407 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15409 # Whether or not to optimize for fast installation.
15410 fast_install=$enable_fast_install
15413 host_alias=$host_alias
15417 # The build system.
15418 build_alias=$build_alias
15422 # An echo program that does not interpret backslashes.
15427 AR_FLAGS=$lt_AR_FLAGS
15432 # LTCC compiler flags.
15433 LTCFLAGS=$lt_LTCFLAGS
15435 # A language-specific compiler.
15436 CC=$lt_compiler_CXX
15438 # Is the compiler the GNU C compiler?
15444 # The linker used to build libraries.
15447 # Whether we need hard or soft links.
15450 # A BSD-compatible nm program.
15453 # A symbol stripping program
15456 # Used to examine libraries when file_magic_cmd begins "file"
15457 MAGIC_CMD=$MAGIC_CMD
15459 # Used on cygwin: DLL creation program.
15462 # Used on cygwin: object dumper.
15465 # Used on cygwin: assembler.
15468 # The name of the directory that contains temporary libtool files.
15471 # How to create reloadable object files.
15472 reload_flag=$lt_reload_flag
15473 reload_cmds=$lt_reload_cmds
15475 # How to pass a linker flag through the compiler.
15476 wl=$lt_lt_prog_compiler_wl_CXX
15478 # Object file suffix (normally "o").
15479 objext="$ac_objext"
15481 # Old archive suffix (normally "a").
15484 # Shared library suffix (normally ".so").
15485 shrext_cmds='$shrext_cmds'
15487 # Executable file suffix (normally "").
15490 # Additional compiler flags for building library objects.
15491 pic_flag=$lt_lt_prog_compiler_pic_CXX
15494 # What is the maximum length of a command?
15495 max_cmd_len=$lt_cv_sys_max_cmd_len
15497 # Does compiler simultaneously support -c and -o options?
15498 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15500 # Must we lock files when doing compilation?
15501 need_locks=$lt_need_locks
15503 # Do we need the lib prefix for modules?
15504 need_lib_prefix=$need_lib_prefix
15506 # Do we need a version for libraries?
15507 need_version=$need_version
15509 # Whether dlopen is supported.
15510 dlopen_support=$enable_dlopen
15512 # Whether dlopen of programs is supported.
15513 dlopen_self=$enable_dlopen_self
15515 # Whether dlopen of statically linked programs is supported.
15516 dlopen_self_static=$enable_dlopen_self_static
15518 # Compiler flag to prevent dynamic linking.
15519 link_static_flag=$lt_lt_prog_compiler_static_CXX
15521 # Compiler flag to turn off builtin functions.
15522 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15524 # Compiler flag to allow reflexive dlopens.
15525 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15527 # Compiler flag to generate shared objects directly from archives.
15528 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15530 # Compiler flag to generate thread-safe objects.
15531 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15533 # Library versioning type.
15534 version_type=$version_type
15536 # Format of library name prefix.
15537 libname_spec=$lt_libname_spec
15539 # List of archive names. First name is the real one, the rest are links.
15540 # The last name is the one that the linker finds with -lNAME.
15541 library_names_spec=$lt_library_names_spec
15543 # The coded name of the library, if different from the real name.
15544 soname_spec=$lt_soname_spec
15546 # Commands used to build and install an old-style archive.
15548 old_archive_cmds=$lt_old_archive_cmds_CXX
15549 old_postinstall_cmds=$lt_old_postinstall_cmds
15550 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15552 # Create an old-style archive from a shared archive.
15553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15555 # Create a temporary old-style archive to link instead of a shared archive.
15556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15558 # Commands used to build and install a shared archive.
15559 archive_cmds=$lt_archive_cmds_CXX
15560 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15561 postinstall_cmds=$lt_postinstall_cmds
15562 postuninstall_cmds=$lt_postuninstall_cmds
15564 # Commands used to build a loadable module (assumed same as above if empty)
15565 module_cmds=$lt_module_cmds_CXX
15566 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15568 # Commands to strip libraries.
15569 old_striplib=$lt_old_striplib
15570 striplib=$lt_striplib
15572 # Dependencies to place before the objects being linked to create a
15574 predep_objects=$lt_predep_objects_CXX
15576 # Dependencies to place after the objects being linked to create a
15578 postdep_objects=$lt_postdep_objects_CXX
15580 # Dependencies to place before the objects being linked to create a
15582 predeps=$lt_predeps_CXX
15584 # Dependencies to place after the objects being linked to create a
15586 postdeps=$lt_postdeps_CXX
15588 # The directories searched by this compiler when creating a shared
15590 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
15592 # The library search path used internally by the compiler when linking
15593 # a shared library.
15594 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15596 # Method to check whether dependent libraries are shared objects.
15597 deplibs_check_method=$lt_deplibs_check_method
15599 # Command to use when deplibs_check_method == file_magic.
15600 file_magic_cmd=$lt_file_magic_cmd
15602 # Flag that allows shared libraries with undefined symbols to be built.
15603 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15605 # Flag that forces no undefined symbols.
15606 no_undefined_flag=$lt_no_undefined_flag_CXX
15608 # Commands used to finish a libtool library installation in a directory.
15609 finish_cmds=$lt_finish_cmds
15611 # Same as above, but a single script fragment to be evaled but not shown.
15612 finish_eval=$lt_finish_eval
15614 # Take the output of nm and produce a listing of raw symbols and C names.
15615 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15617 # Transform the output of nm in a proper C declaration
15618 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15620 # Transform the output of nm in a C name address pair
15621 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15623 # This is the shared library runtime path variable.
15624 runpath_var=$runpath_var
15626 # This is the shared library path variable.
15627 shlibpath_var=$shlibpath_var
15629 # Is shlibpath searched before the hard-coded library search path?
15630 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15632 # How to hardcode a shared library path into an executable.
15633 hardcode_action=$hardcode_action_CXX
15635 # Whether we should hardcode library paths into libraries.
15636 hardcode_into_libs=$hardcode_into_libs
15638 # Flag to hardcode \$libdir into a binary during linking.
15639 # This must work even if \$libdir does not exist.
15640 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15642 # If ld is used when linking, flag to hardcode \$libdir into
15643 # a binary during linking. This must work even if \$libdir does
15645 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15647 # Whether we need a single -rpath flag with a separated argument.
15648 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15650 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15651 # resulting binary.
15652 hardcode_direct=$hardcode_direct_CXX
15654 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15655 # resulting binary.
15656 hardcode_minus_L=$hardcode_minus_L_CXX
15658 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15659 # the resulting binary.
15660 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15662 # Set to yes if building a shared library automatically hardcodes DIR into the library
15663 # and all subsequent libraries and executables linked against it.
15664 hardcode_automatic=$hardcode_automatic_CXX
15666 # Variables whose values should be saved in libtool wrapper scripts and
15667 # restored at relink time.
15668 variables_saved_for_relink="$variables_saved_for_relink"
15670 # Whether libtool must link a program against all its dependency libraries.
15671 link_all_deplibs=$link_all_deplibs_CXX
15673 # Compile-time system search path for libraries
15674 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15676 # Run-time system search path for libraries
15677 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15679 # Fix the shell variable \$srcfile for the compiler.
15680 fix_srcfile_path=$lt_fix_srcfile_path
15682 # Set to yes if exported symbols are required.
15683 always_export_symbols=$always_export_symbols_CXX
15685 # The commands to list exported symbols.
15686 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15688 # The commands to extract the exported symbol list from a shared archive.
15689 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15691 # Symbols that should not be listed in the preloaded symbols.
15692 exclude_expsyms=$lt_exclude_expsyms_CXX
15694 # Symbols that must always be exported.
15695 include_expsyms=$lt_include_expsyms_CXX
15697 # ### END LIBTOOL TAG CONFIG: $tagname
15703 # If there is no Makefile yet, we rely on a make rule to execute
15704 # `config.status --recheck' to rerun these tests and create the
15705 # libtool script then.
15706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15707 if test -f "$ltmain_in"; then
15708 test -f Makefile && make "$ltmain"
15714 ac_cpp='$CPP $CPPFLAGS'
15715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15723 with_gnu_ldcxx=$with_gnu_ld
15724 with_gnu_ld=$lt_save_with_gnu_ld
15725 lt_cv_path_LDCXX=$lt_cv_path_LD
15726 lt_cv_path_LD=$lt_save_path_LD
15727 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15728 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15736 if test -n "$F77" && test "X$F77" != "Xno"; then
15739 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15740 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15741 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15744 archive_cmds_need_lc_F77=no
15745 allow_undefined_flag_F77=
15746 always_export_symbols_F77=no
15747 archive_expsym_cmds_F77=
15748 export_dynamic_flag_spec_F77=
15749 hardcode_direct_F77=no
15750 hardcode_libdir_flag_spec_F77=
15751 hardcode_libdir_flag_spec_ld_F77=
15752 hardcode_libdir_separator_F77=
15753 hardcode_minus_L_F77=no
15754 hardcode_automatic_F77=no
15756 module_expsym_cmds_F77=
15757 link_all_deplibs_F77=unknown
15758 old_archive_cmds_F77=$old_archive_cmds
15759 no_undefined_flag_F77=
15760 whole_archive_flag_spec_F77=
15761 enable_shared_with_static_runtimes_F77=no
15763 # Source file extension for f77 test sources.
15766 # Object file extension for compiled f77 test sources.
15770 # Code to be used in simple compile tests
15771 lt_simple_compile_test_code="\
15777 # Code to be used in simple link tests
15778 lt_simple_link_test_code="\
15783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15785 # If no C compiler was specified, use CC.
15788 # If no C compiler flags were specified, use CFLAGS.
15789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15791 # Allow CC to be a program name with arguments.
15795 # save warnings/boilerplate of simple test code
15796 ac_outfile=conftest.$ac_objext
15797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15799 _lt_compiler_boilerplate=`cat conftest.err`
15802 ac_outfile=conftest.$ac_objext
15803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15805 _lt_linker_boilerplate=`cat conftest.err`
15809 # Allow CC to be a program name with arguments.
15814 for cc_temp in $compiler""; do
15816 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15817 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15822 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15825 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15826 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15827 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15828 echo "${ECHO_T}$can_build_shared" >&6; }
15830 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15831 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15832 test "$can_build_shared" = "no" && enable_shared=no
15834 # On AIX, shared libraries and static libraries use the same namespace, and
15835 # are all built from PIC.
15838 test "$enable_shared" = yes && enable_static=no
15839 if test -n "$RANLIB"; then
15840 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15841 postinstall_cmds='$RANLIB $lib'
15845 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15846 test "$enable_shared" = yes && enable_static=no
15850 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15851 echo "${ECHO_T}$enable_shared" >&6; }
15853 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15854 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15855 # Make sure either enable_shared or enable_static is yes.
15856 test "$enable_shared" = yes || enable_static=yes
15857 { echo "$as_me:$LINENO: result: $enable_static" >&5
15858 echo "${ECHO_T}$enable_static" >&6; }
15863 lt_prog_compiler_wl_F77=
15864 lt_prog_compiler_pic_F77=
15865 lt_prog_compiler_static_F77=
15867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15870 if test "$GCC" = yes; then
15871 lt_prog_compiler_wl_F77='-Wl,'
15872 lt_prog_compiler_static_F77='-static'
15876 # All AIX code is PIC.
15877 if test "$host_cpu" = ia64; then
15878 # AIX 5 now supports IA64 processor
15879 lt_prog_compiler_static_F77='-Bstatic'
15884 # FIXME: we need at least 68020 code to build shared libraries, but
15885 # adding the `-m68020' flag to GCC prevents building anything better,
15887 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15891 # PIC is the default for these OSes.
15894 mingw* | cygwin* | pw32* | os2*)
15895 # This hack is so that the source file can tell whether it is being
15896 # built for inclusion in a dll (and should export symbols for example).
15897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15898 # (--disable-auto-import) libraries
15899 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15902 darwin* | rhapsody*)
15903 # PIC is the default on this platform
15904 # Common symbols not allowed in MH_DYLIB files
15905 lt_prog_compiler_pic_F77='-fno-common'
15909 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15910 # Instead, we relocate shared libraries at runtime.
15914 # Just because we use GCC doesn't mean we suddenly get shared libraries
15915 # on systems that don't support them.
15916 lt_prog_compiler_can_build_shared_F77=no
15921 if test -d /usr/nec; then
15922 lt_prog_compiler_pic_F77=-Kconform_pic
15927 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15928 # not for PA HP-UX.
15934 lt_prog_compiler_pic_F77='-fPIC'
15940 lt_prog_compiler_pic_F77='-fPIC'
15944 # PORTME Check for flag to pass linker flags through the system compiler.
15947 lt_prog_compiler_wl_F77='-Wl,'
15948 if test "$host_cpu" = ia64; then
15949 # AIX 5 now supports IA64 processor
15950 lt_prog_compiler_static_F77='-Bstatic'
15952 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15956 # PIC is the default on this platform
15957 # Common symbols not allowed in MH_DYLIB files
15958 case $cc_basename in
15960 lt_prog_compiler_pic_F77='-qnocommon'
15961 lt_prog_compiler_wl_F77='-Wl,'
15966 mingw* | cygwin* | pw32* | os2*)
15967 # This hack is so that the source file can tell whether it is being
15968 # built for inclusion in a dll (and should export symbols for example).
15969 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15972 hpux9* | hpux10* | hpux11*)
15973 lt_prog_compiler_wl_F77='-Wl,'
15974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15975 # not for PA HP-UX.
15981 lt_prog_compiler_pic_F77='+Z'
15984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15985 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15988 irix5* | irix6* | nonstopux*)
15989 lt_prog_compiler_wl_F77='-Wl,'
15990 # PIC (with -KPIC) is the default.
15991 lt_prog_compiler_static_F77='-non_shared'
15995 lt_prog_compiler_pic_F77='-KPIC'
15996 lt_prog_compiler_static_F77='-Bstatic'
15999 linux* | k*bsd*-gnu)
16000 case $cc_basename in
16002 lt_prog_compiler_wl_F77='-Wl,'
16003 lt_prog_compiler_pic_F77='-KPIC'
16004 lt_prog_compiler_static_F77='-static'
16006 pgcc* | pgf77* | pgf90* | pgf95*)
16007 # Portland Group compilers (*not* the Pentium gcc compiler,
16008 # which looks to be a dead project)
16009 lt_prog_compiler_wl_F77='-Wl,'
16010 lt_prog_compiler_pic_F77='-fpic'
16011 lt_prog_compiler_static_F77='-Bstatic'
16014 lt_prog_compiler_wl_F77='-Wl,'
16015 # All Alpha code is PIC.
16016 lt_prog_compiler_static_F77='-non_shared'
16019 case `$CC -V 2>&1 | sed 5q` in
16022 lt_prog_compiler_pic_F77='-KPIC'
16023 lt_prog_compiler_static_F77='-Bstatic'
16024 lt_prog_compiler_wl_F77='-Wl,'
16027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16028 lt_prog_compiler_pic_F77='-KPIC'
16029 lt_prog_compiler_static_F77='-Bstatic'
16030 lt_prog_compiler_wl_F77=''
16037 osf3* | osf4* | osf5*)
16038 lt_prog_compiler_wl_F77='-Wl,'
16039 # All OSF/1 code is PIC.
16040 lt_prog_compiler_static_F77='-non_shared'
16044 lt_prog_compiler_static_F77='-non_shared'
16048 lt_prog_compiler_pic_F77='-KPIC'
16049 lt_prog_compiler_static_F77='-Bstatic'
16050 case $cc_basename in
16051 f77* | f90* | f95*)
16052 lt_prog_compiler_wl_F77='-Qoption ld ';;
16054 lt_prog_compiler_wl_F77='-Wl,';;
16059 lt_prog_compiler_wl_F77='-Qoption ld '
16060 lt_prog_compiler_pic_F77='-PIC'
16061 lt_prog_compiler_static_F77='-Bstatic'
16064 sysv4 | sysv4.2uw2* | sysv4.3*)
16065 lt_prog_compiler_wl_F77='-Wl,'
16066 lt_prog_compiler_pic_F77='-KPIC'
16067 lt_prog_compiler_static_F77='-Bstatic'
16071 if test -d /usr/nec ;then
16072 lt_prog_compiler_pic_F77='-Kconform_pic'
16073 lt_prog_compiler_static_F77='-Bstatic'
16077 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16078 lt_prog_compiler_wl_F77='-Wl,'
16079 lt_prog_compiler_pic_F77='-KPIC'
16080 lt_prog_compiler_static_F77='-Bstatic'
16084 lt_prog_compiler_wl_F77='-Wl,'
16085 lt_prog_compiler_can_build_shared_F77=no
16089 lt_prog_compiler_pic_F77='-pic'
16090 lt_prog_compiler_static_F77='-Bstatic'
16094 lt_prog_compiler_can_build_shared_F77=no
16099 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16100 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16103 # Check to make sure the PIC flag actually works.
16105 if test -n "$lt_prog_compiler_pic_F77"; then
16107 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16108 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16109 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
16110 echo $ECHO_N "(cached) $ECHO_C" >&6
16112 lt_cv_prog_compiler_pic_works_F77=no
16113 ac_outfile=conftest.$ac_objext
16114 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16115 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16116 # Insert the option either (1) after the last *FLAGS variable, or
16117 # (2) before a word containing "conftest.", or (3) at the end.
16118 # Note that $ac_compile itself does not contain backslashes and begins
16119 # with a dollar sign (not a hyphen), so the echo should work correctly.
16120 # The option is referenced via a variable to avoid confusing sed.
16121 lt_compile=`echo "$ac_compile" | $SED \
16122 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16123 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16124 -e 's:$: $lt_compiler_flag:'`
16125 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16126 (eval "$lt_compile" 2>conftest.err)
16128 cat conftest.err >&5
16129 echo "$as_me:__oline__: \$? = $ac_status" >&5
16130 if (exit $ac_status) && test -s "$ac_outfile"; then
16131 # The compiler can only warn and ignore the option if not recognized
16132 # So say no if there are warnings other than the usual output.
16133 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16135 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16136 lt_cv_prog_compiler_pic_works_F77=yes
16142 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16143 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
16145 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16146 case $lt_prog_compiler_pic_F77 in
16148 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16151 lt_prog_compiler_pic_F77=
16152 lt_prog_compiler_can_build_shared_F77=no
16157 # For platforms which do not support PIC, -DPIC is meaningless:
16159 lt_prog_compiler_pic_F77=
16162 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16167 # Check to make sure the static flag actually works.
16169 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16170 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16171 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16172 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
16173 echo $ECHO_N "(cached) $ECHO_C" >&6
16175 lt_cv_prog_compiler_static_works_F77=no
16176 save_LDFLAGS="$LDFLAGS"
16177 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16178 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16179 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16180 # The linker can only warn and ignore the option if not recognized
16181 # So say no if there are warnings
16182 if test -s conftest.err; then
16183 # Append any errors to the config.log.
16184 cat conftest.err 1>&5
16185 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16187 if diff conftest.exp conftest.er2 >/dev/null; then
16188 lt_cv_prog_compiler_static_works_F77=yes
16191 lt_cv_prog_compiler_static_works_F77=yes
16195 LDFLAGS="$save_LDFLAGS"
16198 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
16199 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
16201 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
16204 lt_prog_compiler_static_F77=
16208 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16209 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16210 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16213 lt_cv_prog_compiler_c_o_F77=no
16214 $rm -r conftest 2>/dev/null
16218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16220 lt_compiler_flag="-o out/conftest2.$ac_objext"
16221 # Insert the option either (1) after the last *FLAGS variable, or
16222 # (2) before a word containing "conftest.", or (3) at the end.
16223 # Note that $ac_compile itself does not contain backslashes and begins
16224 # with a dollar sign (not a hyphen), so the echo should work correctly.
16225 lt_compile=`echo "$ac_compile" | $SED \
16226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16228 -e 's:$: $lt_compiler_flag:'`
16229 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16230 (eval "$lt_compile" 2>out/conftest.err)
16232 cat out/conftest.err >&5
16233 echo "$as_me:__oline__: \$? = $ac_status" >&5
16234 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16236 # The compiler can only warn and ignore the option if not recognized
16237 # So say no if there are warnings
16238 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16239 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16240 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16241 lt_cv_prog_compiler_c_o_F77=yes
16246 # SGI C++ compiler will create directory out/ii_files/ for
16247 # template instantiation
16248 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16249 $rm out/* && rmdir out
16255 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16256 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16259 hard_links="nottested"
16260 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16261 # do not overwrite the value of need_locks provided by the user
16262 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16263 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16268 ln conftest.a conftest.b 2>&5 || hard_links=no
16269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16270 { echo "$as_me:$LINENO: result: $hard_links" >&5
16271 echo "${ECHO_T}$hard_links" >&6; }
16272 if test "$hard_links" = no; then
16273 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16274 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16281 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16282 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16285 allow_undefined_flag_F77=
16286 enable_shared_with_static_runtimes_F77=no
16288 archive_expsym_cmds_F77=
16289 old_archive_From_new_cmds_F77=
16290 old_archive_from_expsyms_cmds_F77=
16291 export_dynamic_flag_spec_F77=
16292 whole_archive_flag_spec_F77=
16293 thread_safe_flag_spec_F77=
16294 hardcode_libdir_flag_spec_F77=
16295 hardcode_libdir_flag_spec_ld_F77=
16296 hardcode_libdir_separator_F77=
16297 hardcode_direct_F77=no
16298 hardcode_minus_L_F77=no
16299 hardcode_shlibpath_var_F77=unsupported
16300 link_all_deplibs_F77=unknown
16301 hardcode_automatic_F77=no
16303 module_expsym_cmds_F77=
16304 always_export_symbols_F77=no
16305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16306 # include_expsyms should be a list of space-separated symbols to be *always*
16307 # included in the symbol list
16308 include_expsyms_F77=
16309 # exclude_expsyms can be an extended regexp of symbols to exclude
16310 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16312 # as well as any symbol that contains `d'.
16313 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16315 # platforms (ab)use it in PIC code, but their linkers get confused if
16316 # the symbol is explicitly referenced. Since portable code cannot
16317 # rely on this symbol name, it's probably fine to never include it in
16318 # preloaded symbol tables.
16319 # Exclude shared library initialization/finalization symbols.
16320 extract_expsyms_cmds=
16321 # Just being paranoid about ensuring that cc_basename is set.
16322 for cc_temp in $compiler""; do
16324 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16325 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16330 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16333 cygwin* | mingw* | pw32*)
16334 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16335 # When not using gcc, we currently assume that we are using
16336 # Microsoft Visual C++.
16337 if test "$GCC" != yes; then
16342 # we just hope/assume this is gcc and not c89 (= MSVC++)
16351 if test "$with_gnu_ld" = yes; then
16352 # If archive_cmds runs LD, not CC, wlarc should be empty
16355 # Set some defaults for GNU ld with shared library support. These
16356 # are reset later if shared libraries are not supported. Putting them
16357 # here allows them to be overridden if necessary.
16358 runpath_var=LD_RUN_PATH
16359 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16360 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16361 # ancient GNU ld didn't support --whole-archive et. al.
16362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16363 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16365 whole_archive_flag_spec_F77=
16367 supports_anon_versioning=no
16368 case `$LD -v 2>/dev/null` in
16369 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16370 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16371 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16372 *\ 2.11.*) ;; # other 2.11 versions
16373 *) supports_anon_versioning=yes ;;
16376 # See if GNU ld supports shared libraries.
16379 # On AIX/PPC, the GNU linker is very broken
16380 if test "$host_cpu" != ia64; then
16384 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16385 *** to be unable to reliably create shared libraries on AIX.
16386 *** Therefore, libtool is disabling shared libraries support. If you
16387 *** really care for shared libraries, you may want to modify your PATH
16388 *** so that a non-GNU linker is found, and then restart.
16395 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)'
16396 hardcode_libdir_flag_spec_F77='-L$libdir'
16397 hardcode_minus_L_F77=yes
16399 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16400 # that the semantics of dynamic libraries on AmigaOS, at least up
16401 # to version 4, is to share data among multiple programs linked
16402 # with the same dynamic library. Since this doesn't match the
16403 # behavior of shared libraries on other platforms, we can't use
16409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16410 allow_undefined_flag_F77=unsupported
16411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16412 # support --undefined. This deserves some investigation. FIXME
16413 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 cygwin* | mingw* | pw32*)
16420 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16421 # as there is no search path for DLLs.
16422 hardcode_libdir_flag_spec_F77='-L$libdir'
16423 allow_undefined_flag_F77=unsupported
16424 always_export_symbols_F77=no
16425 enable_shared_with_static_runtimes_F77=yes
16426 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16428 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16429 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16430 # If the export-symbols file already is a .def file (1st line
16431 # is EXPORTS), use it as is; otherwise, prepend...
16432 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16433 cp $export_symbols $output_objdir/$soname.def;
16435 echo EXPORTS > $output_objdir/$soname.def;
16436 cat $export_symbols >> $output_objdir/$soname.def;
16438 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16445 hardcode_direct_F77=no
16446 hardcode_shlibpath_var_F77=no
16447 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16448 export_dynamic_flag_spec_F77='${wl}-E'
16449 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16450 # Instead, shared libraries are loaded at an image base (0x10000000 by
16451 # default) and relocated if they conflict, which is a slow very memory
16452 # consuming and fragmenting process. To avoid this, we pick a random,
16453 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16454 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16455 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'
16456 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'
16459 gnu* | linux* | k*bsd*-gnu)
16460 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16462 case $cc_basename,$host_cpu in
16463 pgcc*) # Portland Group C compiler
16464 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'
16465 tmp_addflag=' $pic_flag'
16467 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16468 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'
16469 tmp_addflag=' $pic_flag -Mnomain' ;;
16470 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16471 tmp_addflag=' -i_dynamic' ;;
16472 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16473 tmp_addflag=' -i_dynamic -nofor_main' ;;
16474 ifc* | ifort*) # Intel Fortran compiler
16475 tmp_addflag=' -nofor_main' ;;
16477 case `$CC -V 2>&1 | sed 5q` in
16478 *Sun\ C*) # Sun C 5.9
16479 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16480 tmp_sharedflag='-G' ;;
16481 *Sun\ F*) # Sun Fortran 8.3
16482 tmp_sharedflag='-G' ;;
16484 tmp_sharedflag='-shared' ;;
16486 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16488 if test $supports_anon_versioning = yes; then
16489 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16491 $echo "local: *; };" >> $output_objdir/$libname.ver~
16492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16500 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16501 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16504 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16505 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16510 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16514 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16515 *** create shared libraries on Solaris systems. Therefore, libtool
16516 *** is disabling shared libraries support. We urge you to upgrade GNU
16517 *** binutils to release 2.9.1 or newer. Another option is to modify
16518 *** your PATH or compiler configuration so that the native linker is
16519 *** used, and then restart.
16522 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16523 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16524 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16531 case `$LD -v 2>&1` in
16532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16536 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16537 *** reliably create shared libraries on SCO systems. Therefore, libtool
16538 *** is disabling shared libraries support. We urge you to upgrade GNU
16539 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16540 *** your PATH or compiler configuration so that the native linker is
16541 *** used, and then restart.
16546 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16547 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16549 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16558 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16560 hardcode_direct_F77=yes
16561 hardcode_shlibpath_var_F77=no
16565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16566 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16567 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16574 if test "$ld_shlibs_F77" = no; then
16576 hardcode_libdir_flag_spec_F77=
16577 export_dynamic_flag_spec_F77=
16578 whole_archive_flag_spec_F77=
16581 # PORTME fill in a description of your system's linker (not GNU ld)
16584 allow_undefined_flag_F77=unsupported
16585 always_export_symbols_F77=yes
16586 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'
16587 # Note: this linker hardcodes the directories in LIBPATH if there
16588 # are no directories specified by -L.
16589 hardcode_minus_L_F77=yes
16590 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16591 # Neither direct hardcoding nor static linking is supported with a
16593 hardcode_direct_F77=unsupported
16598 if test "$host_cpu" = ia64; then
16599 # On IA64, the linker does run time linking by default, so we don't
16600 # have to do anything special.
16601 aix_use_runtimelinking=no
16602 exp_sym_flag='-Bexport'
16605 # If we're using GNU nm, then we don't want the "-C" option.
16606 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16607 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16608 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'
16610 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'
16612 aix_use_runtimelinking=no
16614 # Test if we are trying to use run time linking or normal
16615 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16616 # need to do runtime linking.
16617 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16618 for ld_flag in $LDFLAGS; do
16619 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16620 aix_use_runtimelinking=yes
16627 exp_sym_flag='-bexport'
16628 no_entry_flag='-bnoentry'
16631 # When large executables or shared objects are built, AIX ld can
16632 # have problems creating the table of contents. If linking a library
16633 # or program results in "error TOC overflow" add -mminimal-toc to
16634 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16635 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16637 archive_cmds_F77=''
16638 hardcode_direct_F77=yes
16639 hardcode_libdir_separator_F77=':'
16640 link_all_deplibs_F77=yes
16642 if test "$GCC" = yes; then
16643 case $host_os in aix4.[012]|aix4.[012].*)
16644 # We only want to do this on AIX 4.2 and lower, the check
16645 # below for broken collect2 doesn't work under 4.3+
16646 collect2name=`${CC} -print-prog-name=collect2`
16647 if test -f "$collect2name" && \
16648 strings "$collect2name" | grep resolve_lib_name >/dev/null
16650 # We have reworked collect2
16653 # We have old collect2
16654 hardcode_direct_F77=unsupported
16655 # It fails to find uninstalled libraries when the uninstalled
16656 # path is not listed in the libpath. Setting hardcode_minus_L
16657 # to unsupported forces relinking
16658 hardcode_minus_L_F77=yes
16659 hardcode_libdir_flag_spec_F77='-L$libdir'
16660 hardcode_libdir_separator_F77=
16664 shared_flag='-shared'
16665 if test "$aix_use_runtimelinking" = yes; then
16666 shared_flag="$shared_flag "'${wl}-G'
16670 if test "$host_cpu" = ia64; then
16671 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16672 # chokes on -Wl,-G. The following line is correct:
16675 if test "$aix_use_runtimelinking" = yes; then
16676 shared_flag='${wl}-G'
16678 shared_flag='${wl}-bM:SRE'
16683 # It seems that -bexpall does not export symbols beginning with
16684 # underscore (_), so it is better to generate a list of symbols to export.
16685 always_export_symbols_F77=yes
16686 if test "$aix_use_runtimelinking" = yes; then
16687 # Warning - without using the other runtime loading flags (-brtl),
16688 # -berok will link without error, but may produce a broken library.
16689 allow_undefined_flag_F77='-berok'
16690 # Determine the default libpath from the value encoded in an empty executable.
16691 cat >conftest.$ac_ext <<_ACEOF
16696 rm -f conftest.$ac_objext conftest$ac_exeext
16697 if { (ac_try="$ac_link"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_link") 2>conftest.er1
16705 grep -v '^ *+' conftest.er1 >conftest.err
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } && {
16710 test -z "$ac_f77_werror_flag" ||
16711 test ! -s conftest.err
16712 } && test -s conftest$ac_exeext &&
16713 $as_test_x conftest$ac_exeext; then
16715 lt_aix_libpath_sed='
16716 /Import File Strings/,/^$/ {
16722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16723 # Check for a 64-bit object if we didn't find anything.
16724 if test -z "$aix_libpath"; then
16725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16738 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16739 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"
16741 if test "$host_cpu" = ia64; then
16742 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16743 allow_undefined_flag_F77="-z nodefs"
16744 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"
16746 # Determine the default libpath from the value encoded in an empty executable.
16747 cat >conftest.$ac_ext <<_ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_link") 2>conftest.er1
16761 grep -v '^ *+' conftest.er1 >conftest.err
16763 cat conftest.err >&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_f77_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext &&
16769 $as_test_x conftest$ac_exeext; then
16771 lt_aix_libpath_sed='
16772 /Import File Strings/,/^$/ {
16778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16779 # Check for a 64-bit object if we didn't find anything.
16780 if test -z "$aix_libpath"; then
16781 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16784 echo "$as_me: failed program was:" >&5
16785 sed 's/^/| /' conftest.$ac_ext >&5
16790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16791 conftest$ac_exeext conftest.$ac_ext
16792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16794 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16795 # Warning - without using the other run time loading flags,
16796 # -berok will link without error, but may produce a broken library.
16797 no_undefined_flag_F77=' ${wl}-bernotok'
16798 allow_undefined_flag_F77=' ${wl}-berok'
16799 # Exported symbols can be pulled into shared objects from archives
16800 whole_archive_flag_spec_F77='$convenience'
16801 archive_cmds_need_lc_F77=yes
16802 # This is similar to how AIX traditionally builds its shared libraries.
16803 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'
16809 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)'
16810 hardcode_libdir_flag_spec_F77='-L$libdir'
16811 hardcode_minus_L_F77=yes
16812 # see comment about different semantics on the GNU ld section
16817 export_dynamic_flag_spec_F77=-rdynamic
16820 cygwin* | mingw* | pw32*)
16821 # When not using gcc, we currently assume that we are using
16822 # Microsoft Visual C++.
16823 # hardcode_libdir_flag_spec is actually meaningless, as there is
16824 # no search path for DLLs.
16825 hardcode_libdir_flag_spec_F77=' '
16826 allow_undefined_flag_F77=unsupported
16827 # Tell ltmain to make .lib files, not .a files.
16829 # Tell ltmain to make .dll files, not .so files.
16831 # FIXME: Setting linknames here is a bad hack.
16832 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16833 # The linker will automatically build a .lib file if we build a DLL.
16834 old_archive_From_new_cmds_F77='true'
16835 # FIXME: Should let the user specify the lib program.
16836 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16837 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16838 enable_shared_with_static_runtimes_F77=yes
16841 darwin* | rhapsody*)
16843 rhapsody* | darwin1.[012])
16844 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16847 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16848 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16850 case ${MACOSX_DEPLOYMENT_TARGET} in
16852 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16855 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16861 archive_cmds_need_lc_F77=no
16862 hardcode_direct_F77=no
16863 hardcode_automatic_F77=yes
16864 hardcode_shlibpath_var_F77=unsupported
16865 whole_archive_flag_spec_F77=''
16866 link_all_deplibs_F77=yes
16867 if test "$GCC" = yes ; then
16868 output_verbose_link_cmd='echo'
16869 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16870 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16871 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
16872 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
16874 case $cc_basename in
16876 output_verbose_link_cmd='echo'
16877 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16878 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16879 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16880 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16881 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}'
16891 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892 hardcode_libdir_flag_spec_F77='-L$libdir'
16893 hardcode_shlibpath_var_F77=no
16900 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16901 # support. Future versions do this automatically, but an explicit c++rt0.o
16902 # does not break anything, and helps significantly (at the cost of a little
16905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16906 hardcode_libdir_flag_spec_F77='-R$libdir'
16907 hardcode_direct_F77=yes
16908 hardcode_shlibpath_var_F77=no
16911 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16913 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16914 hardcode_direct_F77=yes
16915 hardcode_minus_L_F77=yes
16916 hardcode_shlibpath_var_F77=no
16919 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16920 freebsd* | dragonfly*)
16921 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16922 hardcode_libdir_flag_spec_F77='-R$libdir'
16923 hardcode_direct_F77=yes
16924 hardcode_shlibpath_var_F77=no
16928 if test "$GCC" = yes; then
16929 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'
16931 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'
16933 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16934 hardcode_libdir_separator_F77=:
16935 hardcode_direct_F77=yes
16937 # hardcode_minus_L: Not really in the search PATH,
16938 # but as the default location of the library.
16939 hardcode_minus_L_F77=yes
16940 export_dynamic_flag_spec_F77='${wl}-E'
16944 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16945 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16947 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16949 if test "$with_gnu_ld" = no; then
16950 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16951 hardcode_libdir_separator_F77=:
16953 hardcode_direct_F77=yes
16954 export_dynamic_flag_spec_F77='${wl}-E'
16956 # hardcode_minus_L: Not really in the search PATH,
16957 # but as the default location of the library.
16958 hardcode_minus_L_F77=yes
16963 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16966 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16969 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16978 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16984 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16988 if test "$with_gnu_ld" = no; then
16989 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16990 hardcode_libdir_separator_F77=:
16994 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16995 hardcode_direct_F77=no
16996 hardcode_shlibpath_var_F77=no
16999 hardcode_direct_F77=yes
17000 export_dynamic_flag_spec_F77='${wl}-E'
17002 # hardcode_minus_L: Not really in the search PATH,
17003 # but as the default location of the library.
17004 hardcode_minus_L_F77=yes
17010 irix5* | irix6* | nonstopux*)
17011 if test "$GCC" = yes; then
17012 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'
17014 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'
17015 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17017 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17018 hardcode_libdir_separator_F77=:
17019 link_all_deplibs_F77=yes
17023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17026 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17028 hardcode_libdir_flag_spec_F77='-R$libdir'
17029 hardcode_direct_F77=yes
17030 hardcode_shlibpath_var_F77=no
17034 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17035 hardcode_direct_F77=yes
17036 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17037 hardcode_libdir_separator_F77=:
17038 hardcode_shlibpath_var_F77=no
17042 if test -f /usr/libexec/ld.so; then
17043 hardcode_direct_F77=yes
17044 hardcode_shlibpath_var_F77=no
17045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17046 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17047 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17048 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17049 export_dynamic_flag_spec_F77='${wl}-E'
17052 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17053 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17054 hardcode_libdir_flag_spec_F77='-R$libdir'
17057 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17058 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17068 hardcode_libdir_flag_spec_F77='-L$libdir'
17069 hardcode_minus_L_F77=yes
17070 allow_undefined_flag_F77=unsupported
17071 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'
17072 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17076 if test "$GCC" = yes; then
17077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17078 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'
17080 allow_undefined_flag_F77=' -expect_unresolved \*'
17081 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'
17083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17084 hardcode_libdir_separator_F77=:
17087 osf4* | osf5*) # as osf3* with the addition of -msym flag
17088 if test "$GCC" = yes; then
17089 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17090 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'
17091 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17093 allow_undefined_flag_F77=' -expect_unresolved \*'
17094 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'
17095 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~
17096 $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'
17098 # Both c and cxx compiler support -rpath directly
17099 hardcode_libdir_flag_spec_F77='-rpath $libdir'
17101 hardcode_libdir_separator_F77=:
17105 no_undefined_flag_F77=' -z text'
17106 if test "$GCC" = yes; then
17108 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17109 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17110 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17113 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17114 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17117 hardcode_libdir_flag_spec_F77='-R$libdir'
17118 hardcode_shlibpath_var_F77=no
17120 solaris2.[0-5] | solaris2.[0-5].*) ;;
17122 # The compiler driver will combine and reorder linker options,
17123 # but understands `-z linker_flag'. GCC discards it without `$wl',
17124 # but is careful enough not to reorder.
17125 # Supported since Solaris 2.6 (maybe 2.5.1?)
17126 if test "$GCC" = yes; then
17127 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17129 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17133 link_all_deplibs_F77=yes
17137 if test "x$host_vendor" = xsequent; then
17138 # Use $CC to link under sequent, because it throws in some extra .o
17139 # files that make .init and .fini sections work.
17140 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17142 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17144 hardcode_libdir_flag_spec_F77='-L$libdir'
17145 hardcode_direct_F77=yes
17146 hardcode_minus_L_F77=yes
17147 hardcode_shlibpath_var_F77=no
17151 case $host_vendor in
17153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_direct_F77=yes # is this really true???
17157 ## LD is ld it makes a PLAMLIB
17158 ## CC just makes a GrossModule.
17159 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17160 reload_cmds_F77='$CC -r -o $output$reload_objs'
17161 hardcode_direct_F77=no
17164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17165 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17168 runpath_var='LD_RUN_PATH'
17169 hardcode_shlibpath_var_F77=no
17173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174 hardcode_shlibpath_var_F77=no
17175 export_dynamic_flag_spec_F77='-Bexport'
17179 if test -d /usr/nec; then
17180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17181 hardcode_shlibpath_var_F77=no
17182 runpath_var=LD_RUN_PATH
17183 hardcode_runpath_var=yes
17188 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17189 no_undefined_flag_F77='${wl}-z,text'
17190 archive_cmds_need_lc_F77=no
17191 hardcode_shlibpath_var_F77=no
17192 runpath_var='LD_RUN_PATH'
17194 if test "$GCC" = yes; then
17195 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17196 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17198 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17199 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17203 sysv5* | sco3.2v5* | sco5v6*)
17204 # Note: We can NOT use -z defs as we might desire, because we do not
17205 # link with -lc, and that would cause any symbols used from libc to
17206 # always be unresolved, which means just about no library would
17207 # ever link correctly. If we're not using GNU ld we use -z text
17208 # though, which does catch some bad symbols but isn't as heavy-handed
17210 no_undefined_flag_F77='${wl}-z,text'
17211 allow_undefined_flag_F77='${wl}-z,nodefs'
17212 archive_cmds_need_lc_F77=no
17213 hardcode_shlibpath_var_F77=no
17214 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17215 hardcode_libdir_separator_F77=':'
17216 link_all_deplibs_F77=yes
17217 export_dynamic_flag_spec_F77='${wl}-Bexport'
17218 runpath_var='LD_RUN_PATH'
17220 if test "$GCC" = yes; then
17221 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17222 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17224 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17225 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17231 hardcode_libdir_flag_spec_F77='-L$libdir'
17232 hardcode_shlibpath_var_F77=no
17241 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17242 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17243 test "$ld_shlibs_F77" = no && can_build_shared=no
17246 # Do we need to explicitly link libc?
17248 case "x$archive_cmds_need_lc_F77" in
17250 # Assume -lc should be added
17251 archive_cmds_need_lc_F77=yes
17253 if test "$enable_shared" = yes && test "$GCC" = yes; then
17254 case $archive_cmds_F77 in
17256 # FIXME: we may have to deal with multi-command sequences.
17259 # Test whether the compiler implicitly links with -lc since on some
17260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17261 # to ld, don't add -lc before -lgcc.
17262 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17263 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17268 (eval $ac_compile) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } 2>conftest.err; then
17274 libobjs=conftest.$ac_objext
17276 wl=$lt_prog_compiler_wl_F77
17277 pic_flag=$lt_prog_compiler_pic_F77
17283 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17284 allow_undefined_flag_F77=
17285 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17286 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }
17291 archive_cmds_need_lc_F77=no
17293 archive_cmds_need_lc_F77=yes
17295 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17297 cat conftest.err 1>&5
17300 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17301 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17308 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17309 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17310 library_names_spec=
17311 libname_spec='lib$name'
17315 postuninstall_cmds=
17319 shlibpath_overrides_runpath=unknown
17321 dynamic_linker="$host_os ld.so"
17322 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17324 need_lib_prefix=unknown
17325 hardcode_into_libs=no
17327 # when you set need_version to no, make sure it does not cause -set_version
17328 # flags to be left without arguments
17329 need_version=unknown
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17335 shlibpath_var=LIBPATH
17337 # AIX 3 has no versioning support, so we append a major version to the name.
17338 soname_spec='${libname}${release}${shared_ext}$major'
17345 hardcode_into_libs=yes
17346 if test "$host_cpu" = ia64; then
17347 # AIX 5 supports IA64
17348 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17349 shlibpath_var=LD_LIBRARY_PATH
17351 # With GCC up to 2.95.x, collect2 would create an import file
17352 # for dependence libraries. The import file would start with
17353 # the line `#! .'. This would cause the generated library to
17354 # depend on `.', always an invalid library. This was fixed in
17355 # development snapshots of GCC prior to 3.0.
17357 aix4 | aix4.[01] | aix4.[01].*)
17358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17360 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17363 can_build_shared=no
17367 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17368 # soname into executable. Probably we can add versioning support to
17369 # collect2, so additional links can be useful in future.
17370 if test "$aix_use_runtimelinking" = yes; then
17371 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17372 # instead of lib<name>.a to let people know that these are not
17373 # typical AIX shared libraries.
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17376 # We preserve .a as extension for shared libraries through AIX4.2
17377 # and later when we are not doing run time linking.
17378 library_names_spec='${libname}${release}.a $libname.a'
17379 soname_spec='${libname}${release}${shared_ext}$major'
17381 shlibpath_var=LIBPATH
17386 library_names_spec='$libname.ixlibrary $libname.a'
17387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388 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'
17392 library_names_spec='${libname}${shared_ext}'
17393 dynamic_linker="$host_os ld.so"
17394 shlibpath_var=LIBRARY_PATH
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17401 soname_spec='${libname}${release}${shared_ext}$major'
17402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17406 # the default ld.so.conf also contains /usr/contrib/lib and
17407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17408 # libtool to hard-code these into programs
17411 cygwin* | mingw* | pw32*)
17412 version_type=windows
17417 case $GCC,$host_os in
17418 yes,cygwin* | yes,mingw* | yes,pw32*)
17419 library_names_spec='$libname.dll.a'
17420 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17421 postinstall_cmds='base_file=`basename \${file}`~
17422 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17423 dldir=$destdir/`dirname \$dlpath`~
17424 test -d \$dldir || mkdir -p \$dldir~
17425 $install_prog $dir/$dlname \$dldir/$dlname~
17426 chmod a+x \$dldir/$dlname'
17427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17428 dlpath=$dir/\$dldll~
17430 shlibpath_overrides_runpath=yes
17434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17436 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17439 # MinGW DLLs use traditional 'lib' prefix
17440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17441 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17442 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17443 # It is most probably a Windows format PATH printed by
17444 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17445 # path with ; separators, and with drive letters. We can handle the
17446 # drive letters (cygwin fileutils understands them), so leave them,
17447 # especially as we might pass files found there to a mingw objdump,
17448 # which wouldn't understand a cygwinified path. Ahh.
17449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17455 # pw32 DLLs use 'pw' prefix rather than 'lib'
17456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17465 dynamic_linker='Win32 ld.exe'
17466 # FIXME: first we should search . and the directory the executable is in
17470 darwin* | rhapsody*)
17471 dynamic_linker="$host_os dyld"
17472 version_type=darwin
17475 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17476 soname_spec='${libname}${release}${major}$shared_ext'
17477 shlibpath_overrides_runpath=yes
17478 shlibpath_var=DYLD_LIBRARY_PATH
17479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 shlibpath_var=LD_LIBRARY_PATH
17497 freebsd* | dragonfly*)
17498 # DragonFly does not have aout. When/if they implement a new
17499 # versioning mechanism, adjust this.
17500 if test -x /usr/bin/objformat; then
17501 objformat=`/usr/bin/objformat`
17504 freebsd[123]*) objformat=aout ;;
17505 *) objformat=elf ;;
17508 version_type=freebsd-$objformat
17509 case $version_type in
17511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17520 shlibpath_var=LD_LIBRARY_PATH
17523 shlibpath_overrides_runpath=yes
17525 freebsd3.[01]* | freebsdelf3.[01]*)
17526 shlibpath_overrides_runpath=yes
17527 hardcode_into_libs=yes
17529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17531 shlibpath_overrides_runpath=no
17532 hardcode_into_libs=yes
17534 *) # from 4.6 on, and DragonFly
17535 shlibpath_overrides_runpath=yes
17536 hardcode_into_libs=yes
17545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17546 soname_spec='${libname}${release}${shared_ext}$major'
17547 shlibpath_var=LD_LIBRARY_PATH
17548 hardcode_into_libs=yes
17551 hpux9* | hpux10* | hpux11*)
17552 # Give a soname corresponding to the major version so that dld.sl refuses to
17553 # link against other versions.
17560 hardcode_into_libs=yes
17561 dynamic_linker="$host_os dld.so"
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17565 soname_spec='${libname}${release}${shared_ext}$major'
17566 if test "X$HPUX_IA64_MODE" = X32; then
17567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17575 hardcode_into_libs=yes
17576 dynamic_linker="$host_os dld.sl"
17577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580 soname_spec='${libname}${release}${shared_ext}$major'
17581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17586 dynamic_linker="$host_os dld.sl"
17587 shlibpath_var=SHLIB_PATH
17588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17594 postinstall_cmds='chmod 555 $lib'
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17604 shlibpath_var=LD_LIBRARY_PATH
17605 shlibpath_overrides_runpath=no
17606 hardcode_into_libs=yes
17609 irix5* | irix6* | nonstopux*)
17611 nonstopux*) version_type=nonstopux ;;
17613 if test "$lt_cv_prog_gnu_ld" = yes; then
17621 soname_spec='${libname}${release}${shared_ext}$major'
17622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17624 irix5* | nonstopux*)
17625 libsuff= shlibsuff=
17628 case $LD in # libtool.m4 will add one of these switches to LD
17629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17630 libsuff= shlibsuff= libmagic=32-bit;;
17631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17632 libsuff=32 shlibsuff=N32 libmagic=N32;;
17633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17635 *) libsuff= shlibsuff= libmagic=never-match;;
17639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17640 shlibpath_overrides_runpath=no
17641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17643 hardcode_into_libs=yes
17646 # No shared lib support for Linux oldld, aout, or coff.
17647 linux*oldld* | linux*aout* | linux*coff*)
17651 # This must be Linux ELF.
17652 linux* | k*bsd*-gnu)
17656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17657 soname_spec='${libname}${release}${shared_ext}$major'
17658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=no
17661 # This implies no fast_install, which is unacceptable.
17662 # Some rework will be needed to allow for fast_install
17663 # before this can be enabled.
17664 hardcode_into_libs=yes
17666 # Append ld.so.conf contents to the search path
17667 if test -f /etc/ld.so.conf; then
17668 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17672 # We used to test for /lib/ld.so.1 and disable shared libraries on
17673 # powerpc, because MkLinux only supported shared libraries with the
17674 # GNU dynamic linker. Since this was broken with cross compilers,
17675 # most powerpc-linux boxes support dynamic linking these days and
17676 # people can always --disable-shared, the test was removed, and we
17677 # assume the GNU/Linux dynamic linker is in use.
17678 dynamic_linker='GNU/Linux ld.so'
17685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17688 dynamic_linker='NetBSD (a.out) ld.so'
17690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17691 soname_spec='${libname}${release}${shared_ext}$major'
17692 dynamic_linker='NetBSD ld.elf_so'
17694 shlibpath_var=LD_LIBRARY_PATH
17695 shlibpath_overrides_runpath=yes
17696 hardcode_into_libs=yes
17701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17702 shlibpath_var=LD_LIBRARY_PATH
17703 shlibpath_overrides_runpath=yes
17710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17711 soname_spec='${libname}${release}${shared_ext}$major'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=yes
17718 sys_lib_dlsearch_path_spec="/usr/lib"
17720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17722 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17723 *) need_version=no ;;
17725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17730 openbsd2.[89] | openbsd2.[89].*)
17731 shlibpath_overrides_runpath=no
17734 shlibpath_overrides_runpath=yes
17738 shlibpath_overrides_runpath=yes
17743 libname_spec='$name'
17746 library_names_spec='$libname${shared_ext} $libname.a'
17747 dynamic_linker='OS/2 ld.exe'
17748 shlibpath_var=LIBPATH
17751 osf3* | osf4* | osf5*)
17755 soname_spec='${libname}${release}${shared_ext}$major'
17756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17757 shlibpath_var=LD_LIBRARY_PATH
17758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath=yes
17774 hardcode_into_libs=yes
17775 # ldd complains unless libraries are executable
17776 postinstall_cmds='chmod +x $lib'
17781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17782 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17783 shlibpath_var=LD_LIBRARY_PATH
17784 shlibpath_overrides_runpath=yes
17785 if test "$with_gnu_ld" = yes; then
17793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17794 soname_spec='${libname}${release}${shared_ext}$major'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 case $host_vendor in
17798 shlibpath_overrides_runpath=no
17800 export_dynamic_flag_spec='${wl}-Blargedynsym'
17801 runpath_var=LD_RUN_PATH
17809 shlibpath_overrides_runpath=no
17810 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17816 if test -d /usr/nec ;then
17818 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17819 soname_spec='$libname${shared_ext}.$major'
17820 shlibpath_var=LD_LIBRARY_PATH
17824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17825 version_type=freebsd-elf
17828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17829 soname_spec='${libname}${release}${shared_ext}$major'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 hardcode_into_libs=yes
17832 if test "$with_gnu_ld" = yes; then
17833 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17834 shlibpath_overrides_runpath=no
17836 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17837 shlibpath_overrides_runpath=yes
17840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17844 sys_lib_dlsearch_path_spec='/usr/lib'
17849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17850 soname_spec='${libname}${release}${shared_ext}$major'
17851 shlibpath_var=LD_LIBRARY_PATH
17858 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17859 echo "${ECHO_T}$dynamic_linker" >&6; }
17860 test "$dynamic_linker" = no && can_build_shared=no
17862 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
17868 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17869 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17870 echo $ECHO_N "(cached) $ECHO_C" >&6
17872 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
17875 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17877 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17878 if test "$GCC" = yes; then
17879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17882 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17883 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17884 hardcode_action_F77=
17885 if test -n "$hardcode_libdir_flag_spec_F77" || \
17886 test -n "$runpath_var_F77" || \
17887 test "X$hardcode_automatic_F77" = "Xyes" ; then
17889 # We can hardcode non-existant directories.
17890 if test "$hardcode_direct_F77" != no &&
17891 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17892 # have to relink, otherwise we might link with an installed library
17893 # when we should be linking with a yet-to-be-installed one
17894 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17895 test "$hardcode_minus_L_F77" != no; then
17896 # Linking always hardcodes the temporary library directory.
17897 hardcode_action_F77=relink
17899 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17900 hardcode_action_F77=immediate
17903 # We cannot hardcode anything, or else we can only hardcode existing
17905 hardcode_action_F77=unsupported
17907 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17908 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17910 if test "$hardcode_action_F77" = relink; then
17911 # Fast installation is not supported
17912 enable_fast_install=no
17913 elif test "$shlibpath_overrides_runpath" = yes ||
17914 test "$enable_shared" = no; then
17915 # Fast installation is not necessary
17916 enable_fast_install=needless
17920 # The else clause should only fire when bootstrapping the
17921 # libtool distribution, otherwise you forgot to ship ltmain.sh
17922 # with your package, and you will get complaints that there are
17923 # no rules to generate ltmain.sh.
17924 if test -f "$ltmain"; then
17925 # See if we are running on zsh, and set the options which allow our commands through
17926 # without removal of \ escapes.
17927 if test -n "${ZSH_VERSION+set}" ; then
17928 setopt NO_GLOB_SUBST
17930 # Now quote all the things that may contain metacharacters while being
17931 # careful not to overquote the AC_SUBSTed values. We take copies of the
17932 # variables and quote the copies for generation of the libtool script.
17933 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17935 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17936 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17937 deplibs_check_method reload_flag reload_cmds need_locks \
17938 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17939 lt_cv_sys_global_symbol_to_c_name_address \
17940 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17941 old_postinstall_cmds old_postuninstall_cmds \
17945 lt_prog_compiler_wl_F77 \
17946 lt_prog_compiler_pic_F77 \
17947 lt_prog_compiler_static_F77 \
17948 lt_prog_compiler_no_builtin_flag_F77 \
17949 export_dynamic_flag_spec_F77 \
17950 thread_safe_flag_spec_F77 \
17951 whole_archive_flag_spec_F77 \
17952 enable_shared_with_static_runtimes_F77 \
17953 old_archive_cmds_F77 \
17954 old_archive_from_new_cmds_F77 \
17955 predep_objects_F77 \
17956 postdep_objects_F77 \
17959 compiler_lib_search_path_F77 \
17960 compiler_lib_search_dirs_F77 \
17962 archive_expsym_cmds_F77 \
17963 postinstall_cmds_F77 \
17964 postuninstall_cmds_F77 \
17965 old_archive_from_expsyms_cmds_F77 \
17966 allow_undefined_flag_F77 \
17967 no_undefined_flag_F77 \
17968 export_symbols_cmds_F77 \
17969 hardcode_libdir_flag_spec_F77 \
17970 hardcode_libdir_flag_spec_ld_F77 \
17971 hardcode_libdir_separator_F77 \
17972 hardcode_automatic_F77 \
17974 module_expsym_cmds_F77 \
17975 lt_cv_prog_compiler_c_o_F77 \
17976 fix_srcfile_path_F77 \
17977 exclude_expsyms_F77 \
17978 include_expsyms_F77; do
17981 old_archive_cmds_F77 | \
17982 old_archive_from_new_cmds_F77 | \
17983 archive_cmds_F77 | \
17984 archive_expsym_cmds_F77 | \
17985 module_cmds_F77 | \
17986 module_expsym_cmds_F77 | \
17987 old_archive_from_expsyms_cmds_F77 | \
17988 export_symbols_cmds_F77 | \
17989 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17990 postinstall_cmds | postuninstall_cmds | \
17991 old_postinstall_cmds | old_postuninstall_cmds | \
17992 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17993 # Double-quote double-evaled strings.
17994 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17997 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18003 *'\$0 --fallback-echo"')
18004 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18010 cat <<__EOF__ >> "$cfgfile"
18011 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18013 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18015 # Shell to use when invoking shell scripts.
18018 # Whether or not to build shared libraries.
18019 build_libtool_libs=$enable_shared
18021 # Whether or not to build static libraries.
18022 build_old_libs=$enable_static
18024 # Whether or not to add -lc for building shared libraries.
18025 build_libtool_need_lc=$archive_cmds_need_lc_F77
18027 # Whether or not to disallow shared libs when runtime libs are static
18028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18030 # Whether or not to optimize for fast installation.
18031 fast_install=$enable_fast_install
18034 host_alias=$host_alias
18038 # The build system.
18039 build_alias=$build_alias
18043 # An echo program that does not interpret backslashes.
18048 AR_FLAGS=$lt_AR_FLAGS
18053 # LTCC compiler flags.
18054 LTCFLAGS=$lt_LTCFLAGS
18056 # A language-specific compiler.
18057 CC=$lt_compiler_F77
18059 # Is the compiler the GNU C compiler?
18065 # The linker used to build libraries.
18068 # Whether we need hard or soft links.
18071 # A BSD-compatible nm program.
18074 # A symbol stripping program
18077 # Used to examine libraries when file_magic_cmd begins "file"
18078 MAGIC_CMD=$MAGIC_CMD
18080 # Used on cygwin: DLL creation program.
18083 # Used on cygwin: object dumper.
18086 # Used on cygwin: assembler.
18089 # The name of the directory that contains temporary libtool files.
18092 # How to create reloadable object files.
18093 reload_flag=$lt_reload_flag
18094 reload_cmds=$lt_reload_cmds
18096 # How to pass a linker flag through the compiler.
18097 wl=$lt_lt_prog_compiler_wl_F77
18099 # Object file suffix (normally "o").
18100 objext="$ac_objext"
18102 # Old archive suffix (normally "a").
18105 # Shared library suffix (normally ".so").
18106 shrext_cmds='$shrext_cmds'
18108 # Executable file suffix (normally "").
18111 # Additional compiler flags for building library objects.
18112 pic_flag=$lt_lt_prog_compiler_pic_F77
18115 # What is the maximum length of a command?
18116 max_cmd_len=$lt_cv_sys_max_cmd_len
18118 # Does compiler simultaneously support -c and -o options?
18119 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18121 # Must we lock files when doing compilation?
18122 need_locks=$lt_need_locks
18124 # Do we need the lib prefix for modules?
18125 need_lib_prefix=$need_lib_prefix
18127 # Do we need a version for libraries?
18128 need_version=$need_version
18130 # Whether dlopen is supported.
18131 dlopen_support=$enable_dlopen
18133 # Whether dlopen of programs is supported.
18134 dlopen_self=$enable_dlopen_self
18136 # Whether dlopen of statically linked programs is supported.
18137 dlopen_self_static=$enable_dlopen_self_static
18139 # Compiler flag to prevent dynamic linking.
18140 link_static_flag=$lt_lt_prog_compiler_static_F77
18142 # Compiler flag to turn off builtin functions.
18143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18145 # Compiler flag to allow reflexive dlopens.
18146 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18148 # Compiler flag to generate shared objects directly from archives.
18149 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18151 # Compiler flag to generate thread-safe objects.
18152 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18154 # Library versioning type.
18155 version_type=$version_type
18157 # Format of library name prefix.
18158 libname_spec=$lt_libname_spec
18160 # List of archive names. First name is the real one, the rest are links.
18161 # The last name is the one that the linker finds with -lNAME.
18162 library_names_spec=$lt_library_names_spec
18164 # The coded name of the library, if different from the real name.
18165 soname_spec=$lt_soname_spec
18167 # Commands used to build and install an old-style archive.
18169 old_archive_cmds=$lt_old_archive_cmds_F77
18170 old_postinstall_cmds=$lt_old_postinstall_cmds
18171 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18173 # Create an old-style archive from a shared archive.
18174 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18176 # Create a temporary old-style archive to link instead of a shared archive.
18177 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18179 # Commands used to build and install a shared archive.
18180 archive_cmds=$lt_archive_cmds_F77
18181 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18182 postinstall_cmds=$lt_postinstall_cmds
18183 postuninstall_cmds=$lt_postuninstall_cmds
18185 # Commands used to build a loadable module (assumed same as above if empty)
18186 module_cmds=$lt_module_cmds_F77
18187 module_expsym_cmds=$lt_module_expsym_cmds_F77
18189 # Commands to strip libraries.
18190 old_striplib=$lt_old_striplib
18191 striplib=$lt_striplib
18193 # Dependencies to place before the objects being linked to create a
18195 predep_objects=$lt_predep_objects_F77
18197 # Dependencies to place after the objects being linked to create a
18199 postdep_objects=$lt_postdep_objects_F77
18201 # Dependencies to place before the objects being linked to create a
18203 predeps=$lt_predeps_F77
18205 # Dependencies to place after the objects being linked to create a
18207 postdeps=$lt_postdeps_F77
18209 # The directories searched by this compiler when creating a shared
18211 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
18213 # The library search path used internally by the compiler when linking
18214 # a shared library.
18215 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18217 # Method to check whether dependent libraries are shared objects.
18218 deplibs_check_method=$lt_deplibs_check_method
18220 # Command to use when deplibs_check_method == file_magic.
18221 file_magic_cmd=$lt_file_magic_cmd
18223 # Flag that allows shared libraries with undefined symbols to be built.
18224 allow_undefined_flag=$lt_allow_undefined_flag_F77
18226 # Flag that forces no undefined symbols.
18227 no_undefined_flag=$lt_no_undefined_flag_F77
18229 # Commands used to finish a libtool library installation in a directory.
18230 finish_cmds=$lt_finish_cmds
18232 # Same as above, but a single script fragment to be evaled but not shown.
18233 finish_eval=$lt_finish_eval
18235 # Take the output of nm and produce a listing of raw symbols and C names.
18236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18238 # Transform the output of nm in a proper C declaration
18239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18241 # Transform the output of nm in a C name address pair
18242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18244 # This is the shared library runtime path variable.
18245 runpath_var=$runpath_var
18247 # This is the shared library path variable.
18248 shlibpath_var=$shlibpath_var
18250 # Is shlibpath searched before the hard-coded library search path?
18251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18253 # How to hardcode a shared library path into an executable.
18254 hardcode_action=$hardcode_action_F77
18256 # Whether we should hardcode library paths into libraries.
18257 hardcode_into_libs=$hardcode_into_libs
18259 # Flag to hardcode \$libdir into a binary during linking.
18260 # This must work even if \$libdir does not exist.
18261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18263 # If ld is used when linking, flag to hardcode \$libdir into
18264 # a binary during linking. This must work even if \$libdir does
18266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18268 # Whether we need a single -rpath flag with a separated argument.
18269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18272 # resulting binary.
18273 hardcode_direct=$hardcode_direct_F77
18275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18276 # resulting binary.
18277 hardcode_minus_L=$hardcode_minus_L_F77
18279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18280 # the resulting binary.
18281 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18283 # Set to yes if building a shared library automatically hardcodes DIR into the library
18284 # and all subsequent libraries and executables linked against it.
18285 hardcode_automatic=$hardcode_automatic_F77
18287 # Variables whose values should be saved in libtool wrapper scripts and
18288 # restored at relink time.
18289 variables_saved_for_relink="$variables_saved_for_relink"
18291 # Whether libtool must link a program against all its dependency libraries.
18292 link_all_deplibs=$link_all_deplibs_F77
18294 # Compile-time system search path for libraries
18295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18297 # Run-time system search path for libraries
18298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18300 # Fix the shell variable \$srcfile for the compiler.
18301 fix_srcfile_path=$lt_fix_srcfile_path
18303 # Set to yes if exported symbols are required.
18304 always_export_symbols=$always_export_symbols_F77
18306 # The commands to list exported symbols.
18307 export_symbols_cmds=$lt_export_symbols_cmds_F77
18309 # The commands to extract the exported symbol list from a shared archive.
18310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18312 # Symbols that should not be listed in the preloaded symbols.
18313 exclude_expsyms=$lt_exclude_expsyms_F77
18315 # Symbols that must always be exported.
18316 include_expsyms=$lt_include_expsyms_F77
18318 # ### END LIBTOOL TAG CONFIG: $tagname
18324 # If there is no Makefile yet, we rely on a make rule to execute
18325 # `config.status --recheck' to rerun these tests and create the
18326 # libtool script then.
18327 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18328 if test -f "$ltmain_in"; then
18329 test -f Makefile && make "$ltmain"
18335 ac_cpp='$CPP $CPPFLAGS'
18336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18348 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18351 # Source file extension for Java test sources.
18354 # Object file extension for compiled Java test sources.
18358 # Code to be used in simple compile tests
18359 lt_simple_compile_test_code="class foo {}"
18361 # Code to be used in simple link tests
18362 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18364 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18366 # If no C compiler was specified, use CC.
18369 # If no C compiler flags were specified, use CFLAGS.
18370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18372 # Allow CC to be a program name with arguments.
18376 # save warnings/boilerplate of simple test code
18377 ac_outfile=conftest.$ac_objext
18378 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18380 _lt_compiler_boilerplate=`cat conftest.err`
18383 ac_outfile=conftest.$ac_objext
18384 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18386 _lt_linker_boilerplate=`cat conftest.err`
18390 # Allow CC to be a program name with arguments.
18395 for cc_temp in $compiler""; do
18397 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18398 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18406 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18407 archive_cmds_need_lc_GCJ=no
18409 old_archive_cmds_GCJ=$old_archive_cmds
18412 ## There is no encapsulation within the following macros, do not change
18413 ## the running order or otherwise move them around unless you know exactly
18414 ## what you are doing...
18416 lt_prog_compiler_no_builtin_flag_GCJ=
18418 if test "$GCC" = yes; then
18419 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18422 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18425 echo $ECHO_N "(cached) $ECHO_C" >&6
18427 lt_cv_prog_compiler_rtti_exceptions=no
18428 ac_outfile=conftest.$ac_objext
18429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18430 lt_compiler_flag="-fno-rtti -fno-exceptions"
18431 # Insert the option either (1) after the last *FLAGS variable, or
18432 # (2) before a word containing "conftest.", or (3) at the end.
18433 # Note that $ac_compile itself does not contain backslashes and begins
18434 # with a dollar sign (not a hyphen), so the echo should work correctly.
18435 # The option is referenced via a variable to avoid confusing sed.
18436 lt_compile=`echo "$ac_compile" | $SED \
18437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18439 -e 's:$: $lt_compiler_flag:'`
18440 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18441 (eval "$lt_compile" 2>conftest.err)
18443 cat conftest.err >&5
18444 echo "$as_me:__oline__: \$? = $ac_status" >&5
18445 if (exit $ac_status) && test -s "$ac_outfile"; then
18446 # The compiler can only warn and ignore the option if not recognized
18447 # So say no if there are warnings other than the usual output.
18448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18451 lt_cv_prog_compiler_rtti_exceptions=yes
18457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18461 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18468 lt_prog_compiler_wl_GCJ=
18469 lt_prog_compiler_pic_GCJ=
18470 lt_prog_compiler_static_GCJ=
18472 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18475 if test "$GCC" = yes; then
18476 lt_prog_compiler_wl_GCJ='-Wl,'
18477 lt_prog_compiler_static_GCJ='-static'
18481 # All AIX code is PIC.
18482 if test "$host_cpu" = ia64; then
18483 # AIX 5 now supports IA64 processor
18484 lt_prog_compiler_static_GCJ='-Bstatic'
18489 # FIXME: we need at least 68020 code to build shared libraries, but
18490 # adding the `-m68020' flag to GCC prevents building anything better,
18492 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18495 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18496 # PIC is the default for these OSes.
18499 mingw* | cygwin* | pw32* | os2*)
18500 # This hack is so that the source file can tell whether it is being
18501 # built for inclusion in a dll (and should export symbols for example).
18502 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18503 # (--disable-auto-import) libraries
18507 darwin* | rhapsody*)
18508 # PIC is the default on this platform
18509 # Common symbols not allowed in MH_DYLIB files
18510 lt_prog_compiler_pic_GCJ='-fno-common'
18514 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18515 # Instead, we relocate shared libraries at runtime.
18519 # Just because we use GCC doesn't mean we suddenly get shared libraries
18520 # on systems that don't support them.
18521 lt_prog_compiler_can_build_shared_GCJ=no
18526 if test -d /usr/nec; then
18527 lt_prog_compiler_pic_GCJ=-Kconform_pic
18532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18533 # not for PA HP-UX.
18539 lt_prog_compiler_pic_GCJ='-fPIC'
18545 lt_prog_compiler_pic_GCJ='-fPIC'
18549 # PORTME Check for flag to pass linker flags through the system compiler.
18552 lt_prog_compiler_wl_GCJ='-Wl,'
18553 if test "$host_cpu" = ia64; then
18554 # AIX 5 now supports IA64 processor
18555 lt_prog_compiler_static_GCJ='-Bstatic'
18557 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18561 # PIC is the default on this platform
18562 # Common symbols not allowed in MH_DYLIB files
18563 case $cc_basename in
18565 lt_prog_compiler_pic_GCJ='-qnocommon'
18566 lt_prog_compiler_wl_GCJ='-Wl,'
18571 mingw* | cygwin* | pw32* | os2*)
18572 # This hack is so that the source file can tell whether it is being
18573 # built for inclusion in a dll (and should export symbols for example).
18577 hpux9* | hpux10* | hpux11*)
18578 lt_prog_compiler_wl_GCJ='-Wl,'
18579 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18580 # not for PA HP-UX.
18586 lt_prog_compiler_pic_GCJ='+Z'
18589 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18590 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18593 irix5* | irix6* | nonstopux*)
18594 lt_prog_compiler_wl_GCJ='-Wl,'
18595 # PIC (with -KPIC) is the default.
18596 lt_prog_compiler_static_GCJ='-non_shared'
18600 lt_prog_compiler_pic_GCJ='-KPIC'
18601 lt_prog_compiler_static_GCJ='-Bstatic'
18604 linux* | k*bsd*-gnu)
18605 case $cc_basename in
18607 lt_prog_compiler_wl_GCJ='-Wl,'
18608 lt_prog_compiler_pic_GCJ='-KPIC'
18609 lt_prog_compiler_static_GCJ='-static'
18611 pgcc* | pgf77* | pgf90* | pgf95*)
18612 # Portland Group compilers (*not* the Pentium gcc compiler,
18613 # which looks to be a dead project)
18614 lt_prog_compiler_wl_GCJ='-Wl,'
18615 lt_prog_compiler_pic_GCJ='-fpic'
18616 lt_prog_compiler_static_GCJ='-Bstatic'
18619 lt_prog_compiler_wl_GCJ='-Wl,'
18620 # All Alpha code is PIC.
18621 lt_prog_compiler_static_GCJ='-non_shared'
18624 case `$CC -V 2>&1 | sed 5q` in
18627 lt_prog_compiler_pic_GCJ='-KPIC'
18628 lt_prog_compiler_static_GCJ='-Bstatic'
18629 lt_prog_compiler_wl_GCJ='-Wl,'
18632 # Sun Fortran 8.3 passes all unrecognized flags to the linker
18633 lt_prog_compiler_pic_GCJ='-KPIC'
18634 lt_prog_compiler_static_GCJ='-Bstatic'
18635 lt_prog_compiler_wl_GCJ=''
18642 osf3* | osf4* | osf5*)
18643 lt_prog_compiler_wl_GCJ='-Wl,'
18644 # All OSF/1 code is PIC.
18645 lt_prog_compiler_static_GCJ='-non_shared'
18649 lt_prog_compiler_static_GCJ='-non_shared'
18653 lt_prog_compiler_pic_GCJ='-KPIC'
18654 lt_prog_compiler_static_GCJ='-Bstatic'
18655 case $cc_basename in
18656 f77* | f90* | f95*)
18657 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18659 lt_prog_compiler_wl_GCJ='-Wl,';;
18664 lt_prog_compiler_wl_GCJ='-Qoption ld '
18665 lt_prog_compiler_pic_GCJ='-PIC'
18666 lt_prog_compiler_static_GCJ='-Bstatic'
18669 sysv4 | sysv4.2uw2* | sysv4.3*)
18670 lt_prog_compiler_wl_GCJ='-Wl,'
18671 lt_prog_compiler_pic_GCJ='-KPIC'
18672 lt_prog_compiler_static_GCJ='-Bstatic'
18676 if test -d /usr/nec ;then
18677 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18678 lt_prog_compiler_static_GCJ='-Bstatic'
18682 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18683 lt_prog_compiler_wl_GCJ='-Wl,'
18684 lt_prog_compiler_pic_GCJ='-KPIC'
18685 lt_prog_compiler_static_GCJ='-Bstatic'
18689 lt_prog_compiler_wl_GCJ='-Wl,'
18690 lt_prog_compiler_can_build_shared_GCJ=no
18694 lt_prog_compiler_pic_GCJ='-pic'
18695 lt_prog_compiler_static_GCJ='-Bstatic'
18699 lt_prog_compiler_can_build_shared_GCJ=no
18704 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18705 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18708 # Check to make sure the PIC flag actually works.
18710 if test -n "$lt_prog_compiler_pic_GCJ"; then
18712 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18713 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18714 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 lt_cv_prog_compiler_pic_works_GCJ=no
18718 ac_outfile=conftest.$ac_objext
18719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18720 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18721 # Insert the option either (1) after the last *FLAGS variable, or
18722 # (2) before a word containing "conftest.", or (3) at the end.
18723 # Note that $ac_compile itself does not contain backslashes and begins
18724 # with a dollar sign (not a hyphen), so the echo should work correctly.
18725 # The option is referenced via a variable to avoid confusing sed.
18726 lt_compile=`echo "$ac_compile" | $SED \
18727 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18728 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18729 -e 's:$: $lt_compiler_flag:'`
18730 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18731 (eval "$lt_compile" 2>conftest.err)
18733 cat conftest.err >&5
18734 echo "$as_me:__oline__: \$? = $ac_status" >&5
18735 if (exit $ac_status) && test -s "$ac_outfile"; then
18736 # The compiler can only warn and ignore the option if not recognized
18737 # So say no if there are warnings other than the usual output.
18738 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18740 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18741 lt_cv_prog_compiler_pic_works_GCJ=yes
18747 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
18748 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
18750 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
18751 case $lt_prog_compiler_pic_GCJ in
18753 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18756 lt_prog_compiler_pic_GCJ=
18757 lt_prog_compiler_can_build_shared_GCJ=no
18762 # For platforms which do not support PIC, -DPIC is meaningless:
18764 lt_prog_compiler_pic_GCJ=
18767 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18772 # Check to make sure the static flag actually works.
18774 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18775 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18776 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18777 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
18778 echo $ECHO_N "(cached) $ECHO_C" >&6
18780 lt_cv_prog_compiler_static_works_GCJ=no
18781 save_LDFLAGS="$LDFLAGS"
18782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18785 # The linker can only warn and ignore the option if not recognized
18786 # So say no if there are warnings
18787 if test -s conftest.err; then
18788 # Append any errors to the config.log.
18789 cat conftest.err 1>&5
18790 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18792 if diff conftest.exp conftest.er2 >/dev/null; then
18793 lt_cv_prog_compiler_static_works_GCJ=yes
18796 lt_cv_prog_compiler_static_works_GCJ=yes
18800 LDFLAGS="$save_LDFLAGS"
18803 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
18804 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
18806 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
18809 lt_prog_compiler_static_GCJ=
18813 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18814 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18815 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 lt_cv_prog_compiler_c_o_GCJ=no
18819 $rm -r conftest 2>/dev/null
18823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18825 lt_compiler_flag="-o out/conftest2.$ac_objext"
18826 # Insert the option either (1) after the last *FLAGS variable, or
18827 # (2) before a word containing "conftest.", or (3) at the end.
18828 # Note that $ac_compile itself does not contain backslashes and begins
18829 # with a dollar sign (not a hyphen), so the echo should work correctly.
18830 lt_compile=`echo "$ac_compile" | $SED \
18831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18833 -e 's:$: $lt_compiler_flag:'`
18834 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
18835 (eval "$lt_compile" 2>out/conftest.err)
18837 cat out/conftest.err >&5
18838 echo "$as_me:__oline__: \$? = $ac_status" >&5
18839 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18841 # The compiler can only warn and ignore the option if not recognized
18842 # So say no if there are warnings
18843 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18844 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18845 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18846 lt_cv_prog_compiler_c_o_GCJ=yes
18851 # SGI C++ compiler will create directory out/ii_files/ for
18852 # template instantiation
18853 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18854 $rm out/* && rmdir out
18860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18861 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18864 hard_links="nottested"
18865 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18866 # do not overwrite the value of need_locks provided by the user
18867 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18868 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18873 ln conftest.a conftest.b 2>&5 || hard_links=no
18874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18875 { echo "$as_me:$LINENO: result: $hard_links" >&5
18876 echo "${ECHO_T}$hard_links" >&6; }
18877 if test "$hard_links" = no; then
18878 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18879 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18886 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18887 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18890 allow_undefined_flag_GCJ=
18891 enable_shared_with_static_runtimes_GCJ=no
18893 archive_expsym_cmds_GCJ=
18894 old_archive_From_new_cmds_GCJ=
18895 old_archive_from_expsyms_cmds_GCJ=
18896 export_dynamic_flag_spec_GCJ=
18897 whole_archive_flag_spec_GCJ=
18898 thread_safe_flag_spec_GCJ=
18899 hardcode_libdir_flag_spec_GCJ=
18900 hardcode_libdir_flag_spec_ld_GCJ=
18901 hardcode_libdir_separator_GCJ=
18902 hardcode_direct_GCJ=no
18903 hardcode_minus_L_GCJ=no
18904 hardcode_shlibpath_var_GCJ=unsupported
18905 link_all_deplibs_GCJ=unknown
18906 hardcode_automatic_GCJ=no
18908 module_expsym_cmds_GCJ=
18909 always_export_symbols_GCJ=no
18910 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18911 # include_expsyms should be a list of space-separated symbols to be *always*
18912 # included in the symbol list
18913 include_expsyms_GCJ=
18914 # exclude_expsyms can be an extended regexp of symbols to exclude
18915 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18916 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18917 # as well as any symbol that contains `d'.
18918 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18919 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18920 # platforms (ab)use it in PIC code, but their linkers get confused if
18921 # the symbol is explicitly referenced. Since portable code cannot
18922 # rely on this symbol name, it's probably fine to never include it in
18923 # preloaded symbol tables.
18924 # Exclude shared library initialization/finalization symbols.
18925 extract_expsyms_cmds=
18926 # Just being paranoid about ensuring that cc_basename is set.
18927 for cc_temp in $compiler""; do
18929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18938 cygwin* | mingw* | pw32*)
18939 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18940 # When not using gcc, we currently assume that we are using
18941 # Microsoft Visual C++.
18942 if test "$GCC" != yes; then
18947 # we just hope/assume this is gcc and not c89 (= MSVC++)
18956 if test "$with_gnu_ld" = yes; then
18957 # If archive_cmds runs LD, not CC, wlarc should be empty
18960 # Set some defaults for GNU ld with shared library support. These
18961 # are reset later if shared libraries are not supported. Putting them
18962 # here allows them to be overridden if necessary.
18963 runpath_var=LD_RUN_PATH
18964 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18965 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18966 # ancient GNU ld didn't support --whole-archive et. al.
18967 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18968 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18970 whole_archive_flag_spec_GCJ=
18972 supports_anon_versioning=no
18973 case `$LD -v 2>/dev/null` in
18974 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18975 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18976 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18977 *\ 2.11.*) ;; # other 2.11 versions
18978 *) supports_anon_versioning=yes ;;
18981 # See if GNU ld supports shared libraries.
18984 # On AIX/PPC, the GNU linker is very broken
18985 if test "$host_cpu" != ia64; then
18989 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18990 *** to be unable to reliably create shared libraries on AIX.
18991 *** Therefore, libtool is disabling shared libraries support. If you
18992 *** really care for shared libraries, you may want to modify your PATH
18993 *** so that a non-GNU linker is found, and then restart.
19000 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)'
19001 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19002 hardcode_minus_L_GCJ=yes
19004 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19005 # that the semantics of dynamic libraries on AmigaOS, at least up
19006 # to version 4, is to share data among multiple programs linked
19007 # with the same dynamic library. Since this doesn't match the
19008 # behavior of shared libraries on other platforms, we can't use
19014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19015 allow_undefined_flag_GCJ=unsupported
19016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19017 # support --undefined. This deserves some investigation. FIXME
19018 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024 cygwin* | mingw* | pw32*)
19025 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19026 # as there is no search path for DLLs.
19027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19028 allow_undefined_flag_GCJ=unsupported
19029 always_export_symbols_GCJ=no
19030 enable_shared_with_static_runtimes_GCJ=yes
19031 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19033 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19034 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19035 # If the export-symbols file already is a .def file (1st line
19036 # is EXPORTS), use it as is; otherwise, prepend...
19037 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19038 cp $export_symbols $output_objdir/$soname.def;
19040 echo EXPORTS > $output_objdir/$soname.def;
19041 cat $export_symbols >> $output_objdir/$soname.def;
19043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19050 hardcode_direct_GCJ=no
19051 hardcode_shlibpath_var_GCJ=no
19052 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19053 export_dynamic_flag_spec_GCJ='${wl}-E'
19054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19055 # Instead, shared libraries are loaded at an image base (0x10000000 by
19056 # default) and relocated if they conflict, which is a slow very memory
19057 # consuming and fragmenting process. To avoid this, we pick a random,
19058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19060 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'
19061 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'
19064 gnu* | linux* | k*bsd*-gnu)
19065 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19067 case $cc_basename,$host_cpu in
19068 pgcc*) # Portland Group C compiler
19069 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'
19070 tmp_addflag=' $pic_flag'
19072 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
19073 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'
19074 tmp_addflag=' $pic_flag -Mnomain' ;;
19075 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
19076 tmp_addflag=' -i_dynamic' ;;
19077 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
19078 tmp_addflag=' -i_dynamic -nofor_main' ;;
19079 ifc* | ifort*) # Intel Fortran compiler
19080 tmp_addflag=' -nofor_main' ;;
19082 case `$CC -V 2>&1 | sed 5q` in
19083 *Sun\ C*) # Sun C 5.9
19084 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19085 tmp_sharedflag='-G' ;;
19086 *Sun\ F*) # Sun Fortran 8.3
19087 tmp_sharedflag='-G' ;;
19089 tmp_sharedflag='-shared' ;;
19091 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19093 if test $supports_anon_versioning = yes; then
19094 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19095 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19096 $echo "local: *; };" >> $output_objdir/$libname.ver~
19097 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19106 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19110 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19115 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19119 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19120 *** create shared libraries on Solaris systems. Therefore, libtool
19121 *** is disabling shared libraries support. We urge you to upgrade GNU
19122 *** binutils to release 2.9.1 or newer. Another option is to modify
19123 *** your PATH or compiler configuration so that the native linker is
19124 *** used, and then restart.
19127 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19128 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19129 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19136 case `$LD -v 2>&1` in
19137 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19141 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19142 *** reliably create shared libraries on SCO systems. Therefore, libtool
19143 *** is disabling shared libraries support. We urge you to upgrade GNU
19144 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19145 *** your PATH or compiler configuration so that the native linker is
19146 *** used, and then restart.
19151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19152 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19163 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19165 hardcode_direct_GCJ=yes
19166 hardcode_shlibpath_var_GCJ=no
19170 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19171 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19172 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19179 if test "$ld_shlibs_GCJ" = no; then
19181 hardcode_libdir_flag_spec_GCJ=
19182 export_dynamic_flag_spec_GCJ=
19183 whole_archive_flag_spec_GCJ=
19186 # PORTME fill in a description of your system's linker (not GNU ld)
19189 allow_undefined_flag_GCJ=unsupported
19190 always_export_symbols_GCJ=yes
19191 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'
19192 # Note: this linker hardcodes the directories in LIBPATH if there
19193 # are no directories specified by -L.
19194 hardcode_minus_L_GCJ=yes
19195 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19196 # Neither direct hardcoding nor static linking is supported with a
19198 hardcode_direct_GCJ=unsupported
19203 if test "$host_cpu" = ia64; then
19204 # On IA64, the linker does run time linking by default, so we don't
19205 # have to do anything special.
19206 aix_use_runtimelinking=no
19207 exp_sym_flag='-Bexport'
19210 # If we're using GNU nm, then we don't want the "-C" option.
19211 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19212 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19213 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'
19215 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'
19217 aix_use_runtimelinking=no
19219 # Test if we are trying to use run time linking or normal
19220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19221 # need to do runtime linking.
19222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19223 for ld_flag in $LDFLAGS; do
19224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19225 aix_use_runtimelinking=yes
19232 exp_sym_flag='-bexport'
19233 no_entry_flag='-bnoentry'
19236 # When large executables or shared objects are built, AIX ld can
19237 # have problems creating the table of contents. If linking a library
19238 # or program results in "error TOC overflow" add -mminimal-toc to
19239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19242 archive_cmds_GCJ=''
19243 hardcode_direct_GCJ=yes
19244 hardcode_libdir_separator_GCJ=':'
19245 link_all_deplibs_GCJ=yes
19247 if test "$GCC" = yes; then
19248 case $host_os in aix4.[012]|aix4.[012].*)
19249 # We only want to do this on AIX 4.2 and lower, the check
19250 # below for broken collect2 doesn't work under 4.3+
19251 collect2name=`${CC} -print-prog-name=collect2`
19252 if test -f "$collect2name" && \
19253 strings "$collect2name" | grep resolve_lib_name >/dev/null
19255 # We have reworked collect2
19258 # We have old collect2
19259 hardcode_direct_GCJ=unsupported
19260 # It fails to find uninstalled libraries when the uninstalled
19261 # path is not listed in the libpath. Setting hardcode_minus_L
19262 # to unsupported forces relinking
19263 hardcode_minus_L_GCJ=yes
19264 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19265 hardcode_libdir_separator_GCJ=
19269 shared_flag='-shared'
19270 if test "$aix_use_runtimelinking" = yes; then
19271 shared_flag="$shared_flag "'${wl}-G'
19275 if test "$host_cpu" = ia64; then
19276 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19277 # chokes on -Wl,-G. The following line is correct:
19280 if test "$aix_use_runtimelinking" = yes; then
19281 shared_flag='${wl}-G'
19283 shared_flag='${wl}-bM:SRE'
19288 # It seems that -bexpall does not export symbols beginning with
19289 # underscore (_), so it is better to generate a list of symbols to export.
19290 always_export_symbols_GCJ=yes
19291 if test "$aix_use_runtimelinking" = yes; then
19292 # Warning - without using the other runtime loading flags (-brtl),
19293 # -berok will link without error, but may produce a broken library.
19294 allow_undefined_flag_GCJ='-berok'
19295 # Determine the default libpath from the value encoded in an empty executable.
19296 cat >conftest.$ac_ext <<_ACEOF
19299 cat confdefs.h >>conftest.$ac_ext
19300 cat >>conftest.$ac_ext <<_ACEOF
19301 /* end confdefs.h. */
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (ac_try="$ac_link"
19313 case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_link") 2>conftest.er1
19320 grep -v '^ *+' conftest.er1 >conftest.err
19322 cat conftest.err >&5
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && {
19325 test -z "$ac_c_werror_flag" ||
19326 test ! -s conftest.err
19327 } && test -s conftest$ac_exeext &&
19328 $as_test_x conftest$ac_exeext; then
19330 lt_aix_libpath_sed='
19331 /Import File Strings/,/^$/ {
19337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19338 # Check for a 64-bit object if we didn't find anything.
19339 if test -z "$aix_libpath"; then
19340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19343 echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19350 conftest$ac_exeext conftest.$ac_ext
19351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19353 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19354 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"
19356 if test "$host_cpu" = ia64; then
19357 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19358 allow_undefined_flag_GCJ="-z nodefs"
19359 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"
19361 # Determine the default libpath from the value encoded in an empty executable.
19362 cat >conftest.$ac_ext <<_ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest$ac_exeext &&
19394 $as_test_x conftest$ac_exeext; then
19396 lt_aix_libpath_sed='
19397 /Import File Strings/,/^$/ {
19403 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19404 # Check for a 64-bit object if we didn't find anything.
19405 if test -z "$aix_libpath"; then
19406 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19419 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19420 # Warning - without using the other run time loading flags,
19421 # -berok will link without error, but may produce a broken library.
19422 no_undefined_flag_GCJ=' ${wl}-bernotok'
19423 allow_undefined_flag_GCJ=' ${wl}-berok'
19424 # Exported symbols can be pulled into shared objects from archives
19425 whole_archive_flag_spec_GCJ='$convenience'
19426 archive_cmds_need_lc_GCJ=yes
19427 # This is similar to how AIX traditionally builds its shared libraries.
19428 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'
19434 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)'
19435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19436 hardcode_minus_L_GCJ=yes
19437 # see comment about different semantics on the GNU ld section
19442 export_dynamic_flag_spec_GCJ=-rdynamic
19445 cygwin* | mingw* | pw32*)
19446 # When not using gcc, we currently assume that we are using
19447 # Microsoft Visual C++.
19448 # hardcode_libdir_flag_spec is actually meaningless, as there is
19449 # no search path for DLLs.
19450 hardcode_libdir_flag_spec_GCJ=' '
19451 allow_undefined_flag_GCJ=unsupported
19452 # Tell ltmain to make .lib files, not .a files.
19454 # Tell ltmain to make .dll files, not .so files.
19456 # FIXME: Setting linknames here is a bad hack.
19457 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19458 # The linker will automatically build a .lib file if we build a DLL.
19459 old_archive_From_new_cmds_GCJ='true'
19460 # FIXME: Should let the user specify the lib program.
19461 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19462 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19463 enable_shared_with_static_runtimes_GCJ=yes
19466 darwin* | rhapsody*)
19468 rhapsody* | darwin1.[012])
19469 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19472 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19473 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19475 case ${MACOSX_DEPLOYMENT_TARGET} in
19477 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19480 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19486 archive_cmds_need_lc_GCJ=no
19487 hardcode_direct_GCJ=no
19488 hardcode_automatic_GCJ=yes
19489 hardcode_shlibpath_var_GCJ=unsupported
19490 whole_archive_flag_spec_GCJ=''
19491 link_all_deplibs_GCJ=yes
19492 if test "$GCC" = yes ; then
19493 output_verbose_link_cmd='echo'
19494 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19495 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19496 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
19497 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
19499 case $cc_basename in
19501 output_verbose_link_cmd='echo'
19502 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19503 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19504 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19505 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19506 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}'
19516 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19518 hardcode_shlibpath_var_GCJ=no
19525 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19526 # support. Future versions do this automatically, but an explicit c++rt0.o
19527 # does not break anything, and helps significantly (at the cost of a little
19530 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19531 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19532 hardcode_direct_GCJ=yes
19533 hardcode_shlibpath_var_GCJ=no
19536 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19538 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19539 hardcode_direct_GCJ=yes
19540 hardcode_minus_L_GCJ=yes
19541 hardcode_shlibpath_var_GCJ=no
19544 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19545 freebsd* | dragonfly*)
19546 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19547 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19548 hardcode_direct_GCJ=yes
19549 hardcode_shlibpath_var_GCJ=no
19553 if test "$GCC" = yes; then
19554 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'
19556 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'
19558 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19559 hardcode_libdir_separator_GCJ=:
19560 hardcode_direct_GCJ=yes
19562 # hardcode_minus_L: Not really in the search PATH,
19563 # but as the default location of the library.
19564 hardcode_minus_L_GCJ=yes
19565 export_dynamic_flag_spec_GCJ='${wl}-E'
19569 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19570 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19572 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19574 if test "$with_gnu_ld" = no; then
19575 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19576 hardcode_libdir_separator_GCJ=:
19578 hardcode_direct_GCJ=yes
19579 export_dynamic_flag_spec_GCJ='${wl}-E'
19581 # hardcode_minus_L: Not really in the search PATH,
19582 # but as the default location of the library.
19583 hardcode_minus_L_GCJ=yes
19588 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19591 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19594 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19597 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19603 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19606 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19609 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19613 if test "$with_gnu_ld" = no; then
19614 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19615 hardcode_libdir_separator_GCJ=:
19619 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19620 hardcode_direct_GCJ=no
19621 hardcode_shlibpath_var_GCJ=no
19624 hardcode_direct_GCJ=yes
19625 export_dynamic_flag_spec_GCJ='${wl}-E'
19627 # hardcode_minus_L: Not really in the search PATH,
19628 # but as the default location of the library.
19629 hardcode_minus_L_GCJ=yes
19635 irix5* | irix6* | nonstopux*)
19636 if test "$GCC" = yes; then
19637 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'
19639 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'
19640 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19643 hardcode_libdir_separator_GCJ=:
19644 link_all_deplibs_GCJ=yes
19648 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19649 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19651 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19653 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19654 hardcode_direct_GCJ=yes
19655 hardcode_shlibpath_var_GCJ=no
19659 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19660 hardcode_direct_GCJ=yes
19661 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19662 hardcode_libdir_separator_GCJ=:
19663 hardcode_shlibpath_var_GCJ=no
19667 if test -f /usr/libexec/ld.so; then
19668 hardcode_direct_GCJ=yes
19669 hardcode_shlibpath_var_GCJ=no
19670 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19671 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19672 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19674 export_dynamic_flag_spec_GCJ='${wl}-E'
19677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19678 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19694 hardcode_minus_L_GCJ=yes
19695 allow_undefined_flag_GCJ=unsupported
19696 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'
19697 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19701 if test "$GCC" = yes; then
19702 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19703 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'
19705 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19706 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'
19708 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19709 hardcode_libdir_separator_GCJ=:
19712 osf4* | osf5*) # as osf3* with the addition of -msym flag
19713 if test "$GCC" = yes; then
19714 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19715 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'
19716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19718 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19719 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'
19720 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~
19721 $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'
19723 # Both c and cxx compiler support -rpath directly
19724 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19726 hardcode_libdir_separator_GCJ=:
19730 no_undefined_flag_GCJ=' -z text'
19731 if test "$GCC" = yes; then
19733 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19734 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19735 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19738 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19739 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19740 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19742 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19743 hardcode_shlibpath_var_GCJ=no
19745 solaris2.[0-5] | solaris2.[0-5].*) ;;
19747 # The compiler driver will combine and reorder linker options,
19748 # but understands `-z linker_flag'. GCC discards it without `$wl',
19749 # but is careful enough not to reorder.
19750 # Supported since Solaris 2.6 (maybe 2.5.1?)
19751 if test "$GCC" = yes; then
19752 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19754 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19758 link_all_deplibs_GCJ=yes
19762 if test "x$host_vendor" = xsequent; then
19763 # Use $CC to link under sequent, because it throws in some extra .o
19764 # files that make .init and .fini sections work.
19765 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19767 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19770 hardcode_direct_GCJ=yes
19771 hardcode_minus_L_GCJ=yes
19772 hardcode_shlibpath_var_GCJ=no
19776 case $host_vendor in
19778 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779 hardcode_direct_GCJ=yes # is this really true???
19782 ## LD is ld it makes a PLAMLIB
19783 ## CC just makes a GrossModule.
19784 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19785 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19786 hardcode_direct_GCJ=no
19789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19790 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19793 runpath_var='LD_RUN_PATH'
19794 hardcode_shlibpath_var_GCJ=no
19798 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19799 hardcode_shlibpath_var_GCJ=no
19800 export_dynamic_flag_spec_GCJ='-Bexport'
19804 if test -d /usr/nec; then
19805 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19806 hardcode_shlibpath_var_GCJ=no
19807 runpath_var=LD_RUN_PATH
19808 hardcode_runpath_var=yes
19813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19814 no_undefined_flag_GCJ='${wl}-z,text'
19815 archive_cmds_need_lc_GCJ=no
19816 hardcode_shlibpath_var_GCJ=no
19817 runpath_var='LD_RUN_PATH'
19819 if test "$GCC" = yes; then
19820 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19821 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19823 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19824 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19828 sysv5* | sco3.2v5* | sco5v6*)
19829 # Note: We can NOT use -z defs as we might desire, because we do not
19830 # link with -lc, and that would cause any symbols used from libc to
19831 # always be unresolved, which means just about no library would
19832 # ever link correctly. If we're not using GNU ld we use -z text
19833 # though, which does catch some bad symbols but isn't as heavy-handed
19835 no_undefined_flag_GCJ='${wl}-z,text'
19836 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19837 archive_cmds_need_lc_GCJ=no
19838 hardcode_shlibpath_var_GCJ=no
19839 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19840 hardcode_libdir_separator_GCJ=':'
19841 link_all_deplibs_GCJ=yes
19842 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19843 runpath_var='LD_RUN_PATH'
19845 if test "$GCC" = yes; then
19846 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19847 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19849 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19850 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19855 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19857 hardcode_shlibpath_var_GCJ=no
19866 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19867 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19868 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19871 # Do we need to explicitly link libc?
19873 case "x$archive_cmds_need_lc_GCJ" in
19875 # Assume -lc should be added
19876 archive_cmds_need_lc_GCJ=yes
19878 if test "$enable_shared" = yes && test "$GCC" = yes; then
19879 case $archive_cmds_GCJ in
19881 # FIXME: we may have to deal with multi-command sequences.
19884 # Test whether the compiler implicitly links with -lc since on some
19885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19886 # to ld, don't add -lc before -lgcc.
19887 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19888 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19893 (eval $ac_compile) 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); } 2>conftest.err; then
19899 libobjs=conftest.$ac_objext
19901 wl=$lt_prog_compiler_wl_GCJ
19902 pic_flag=$lt_prog_compiler_pic_GCJ
19908 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19909 allow_undefined_flag_GCJ=
19910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19911 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }
19916 archive_cmds_need_lc_GCJ=no
19918 archive_cmds_need_lc_GCJ=yes
19920 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19922 cat conftest.err 1>&5
19925 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19926 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19933 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19934 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19935 library_names_spec=
19936 libname_spec='lib$name'
19940 postuninstall_cmds=
19944 shlibpath_overrides_runpath=unknown
19946 dynamic_linker="$host_os ld.so"
19947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19949 need_lib_prefix=unknown
19950 hardcode_into_libs=no
19952 # when you set need_version to no, make sure it does not cause -set_version
19953 # flags to be left without arguments
19954 need_version=unknown
19959 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19960 shlibpath_var=LIBPATH
19962 # AIX 3 has no versioning support, so we append a major version to the name.
19963 soname_spec='${libname}${release}${shared_ext}$major'
19970 hardcode_into_libs=yes
19971 if test "$host_cpu" = ia64; then
19972 # AIX 5 supports IA64
19973 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19974 shlibpath_var=LD_LIBRARY_PATH
19976 # With GCC up to 2.95.x, collect2 would create an import file
19977 # for dependence libraries. The import file would start with
19978 # the line `#! .'. This would cause the generated library to
19979 # depend on `.', always an invalid library. This was fixed in
19980 # development snapshots of GCC prior to 3.0.
19982 aix4 | aix4.[01] | aix4.[01].*)
19983 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19985 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19988 can_build_shared=no
19992 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19993 # soname into executable. Probably we can add versioning support to
19994 # collect2, so additional links can be useful in future.
19995 if test "$aix_use_runtimelinking" = yes; then
19996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19997 # instead of lib<name>.a to let people know that these are not
19998 # typical AIX shared libraries.
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20001 # We preserve .a as extension for shared libraries through AIX4.2
20002 # and later when we are not doing run time linking.
20003 library_names_spec='${libname}${release}.a $libname.a'
20004 soname_spec='${libname}${release}${shared_ext}$major'
20006 shlibpath_var=LIBPATH
20011 library_names_spec='$libname.ixlibrary $libname.a'
20012 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20013 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'
20017 library_names_spec='${libname}${shared_ext}'
20018 dynamic_linker="$host_os ld.so"
20019 shlibpath_var=LIBRARY_PATH
20025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20026 soname_spec='${libname}${release}${shared_ext}$major'
20027 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20028 shlibpath_var=LD_LIBRARY_PATH
20029 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20030 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20031 # the default ld.so.conf also contains /usr/contrib/lib and
20032 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20033 # libtool to hard-code these into programs
20036 cygwin* | mingw* | pw32*)
20037 version_type=windows
20042 case $GCC,$host_os in
20043 yes,cygwin* | yes,mingw* | yes,pw32*)
20044 library_names_spec='$libname.dll.a'
20045 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20046 postinstall_cmds='base_file=`basename \${file}`~
20047 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20048 dldir=$destdir/`dirname \$dlpath`~
20049 test -d \$dldir || mkdir -p \$dldir~
20050 $install_prog $dir/$dlname \$dldir/$dlname~
20051 chmod a+x \$dldir/$dlname'
20052 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20053 dlpath=$dir/\$dldll~
20055 shlibpath_overrides_runpath=yes
20059 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20060 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20061 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20064 # MinGW DLLs use traditional 'lib' prefix
20065 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20066 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20067 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20068 # It is most probably a Windows format PATH printed by
20069 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20070 # path with ; separators, and with drive letters. We can handle the
20071 # drive letters (cygwin fileutils understands them), so leave them,
20072 # especially as we might pass files found there to a mingw objdump,
20073 # which wouldn't understand a cygwinified path. Ahh.
20074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20080 # pw32 DLLs use 'pw' prefix rather than 'lib'
20081 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20090 dynamic_linker='Win32 ld.exe'
20091 # FIXME: first we should search . and the directory the executable is in
20095 darwin* | rhapsody*)
20096 dynamic_linker="$host_os dyld"
20097 version_type=darwin
20100 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20101 soname_spec='${libname}${release}${major}$shared_ext'
20102 shlibpath_overrides_runpath=yes
20103 shlibpath_var=DYLD_LIBRARY_PATH
20104 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20106 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20114 soname_spec='${libname}${release}${shared_ext}$major'
20115 shlibpath_var=LD_LIBRARY_PATH
20122 freebsd* | dragonfly*)
20123 # DragonFly does not have aout. When/if they implement a new
20124 # versioning mechanism, adjust this.
20125 if test -x /usr/bin/objformat; then
20126 objformat=`/usr/bin/objformat`
20129 freebsd[123]*) objformat=aout ;;
20130 *) objformat=elf ;;
20133 version_type=freebsd-$objformat
20134 case $version_type in
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20145 shlibpath_var=LD_LIBRARY_PATH
20148 shlibpath_overrides_runpath=yes
20150 freebsd3.[01]* | freebsdelf3.[01]*)
20151 shlibpath_overrides_runpath=yes
20152 hardcode_into_libs=yes
20154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20156 shlibpath_overrides_runpath=no
20157 hardcode_into_libs=yes
20159 *) # from 4.6 on, and DragonFly
20160 shlibpath_overrides_runpath=yes
20161 hardcode_into_libs=yes
20170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20171 soname_spec='${libname}${release}${shared_ext}$major'
20172 shlibpath_var=LD_LIBRARY_PATH
20173 hardcode_into_libs=yes
20176 hpux9* | hpux10* | hpux11*)
20177 # Give a soname corresponding to the major version so that dld.sl refuses to
20178 # link against other versions.
20185 hardcode_into_libs=yes
20186 dynamic_linker="$host_os dld.so"
20187 shlibpath_var=LD_LIBRARY_PATH
20188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 soname_spec='${libname}${release}${shared_ext}$major'
20191 if test "X$HPUX_IA64_MODE" = X32; then
20192 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20194 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20200 hardcode_into_libs=yes
20201 dynamic_linker="$host_os dld.sl"
20202 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20203 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20211 dynamic_linker="$host_os dld.sl"
20212 shlibpath_var=SHLIB_PATH
20213 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20215 soname_spec='${libname}${release}${shared_ext}$major'
20218 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20219 postinstall_cmds='chmod 555 $lib'
20226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20227 soname_spec='${libname}${release}${shared_ext}$major'
20228 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20229 shlibpath_var=LD_LIBRARY_PATH
20230 shlibpath_overrides_runpath=no
20231 hardcode_into_libs=yes
20234 irix5* | irix6* | nonstopux*)
20236 nonstopux*) version_type=nonstopux ;;
20238 if test "$lt_cv_prog_gnu_ld" = yes; then
20246 soname_spec='${libname}${release}${shared_ext}$major'
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20249 irix5* | nonstopux*)
20250 libsuff= shlibsuff=
20253 case $LD in # libtool.m4 will add one of these switches to LD
20254 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20255 libsuff= shlibsuff= libmagic=32-bit;;
20256 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20257 libsuff=32 shlibsuff=N32 libmagic=N32;;
20258 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20259 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20260 *) libsuff= shlibsuff= libmagic=never-match;;
20264 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20265 shlibpath_overrides_runpath=no
20266 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20267 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20268 hardcode_into_libs=yes
20271 # No shared lib support for Linux oldld, aout, or coff.
20272 linux*oldld* | linux*aout* | linux*coff*)
20276 # This must be Linux ELF.
20277 linux* | k*bsd*-gnu)
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=no
20286 # This implies no fast_install, which is unacceptable.
20287 # Some rework will be needed to allow for fast_install
20288 # before this can be enabled.
20289 hardcode_into_libs=yes
20291 # Append ld.so.conf contents to the search path
20292 if test -f /etc/ld.so.conf; then
20293 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20294 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20297 # We used to test for /lib/ld.so.1 and disable shared libraries on
20298 # powerpc, because MkLinux only supported shared libraries with the
20299 # GNU dynamic linker. Since this was broken with cross compilers,
20300 # most powerpc-linux boxes support dynamic linking these days and
20301 # people can always --disable-shared, the test was removed, and we
20302 # assume the GNU/Linux dynamic linker is in use.
20303 dynamic_linker='GNU/Linux ld.so'
20310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20313 dynamic_linker='NetBSD (a.out) ld.so'
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 dynamic_linker='NetBSD ld.elf_so'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes
20321 hardcode_into_libs=yes
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes
20335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 soname_spec='${libname}${release}${shared_ext}$major'
20337 shlibpath_var=LD_LIBRARY_PATH
20338 shlibpath_overrides_runpath=yes
20343 sys_lib_dlsearch_path_spec="/usr/lib"
20345 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20348 *) need_version=no ;;
20350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20352 shlibpath_var=LD_LIBRARY_PATH
20353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20355 openbsd2.[89] | openbsd2.[89].*)
20356 shlibpath_overrides_runpath=no
20359 shlibpath_overrides_runpath=yes
20363 shlibpath_overrides_runpath=yes
20368 libname_spec='$name'
20371 library_names_spec='$libname${shared_ext} $libname.a'
20372 dynamic_linker='OS/2 ld.exe'
20373 shlibpath_var=LIBPATH
20376 osf3* | osf4* | osf5*)
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20396 soname_spec='${libname}${release}${shared_ext}$major'
20397 shlibpath_var=LD_LIBRARY_PATH
20398 shlibpath_overrides_runpath=yes
20399 hardcode_into_libs=yes
20400 # ldd complains unless libraries are executable
20401 postinstall_cmds='chmod +x $lib'
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20408 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=yes
20410 if test "$with_gnu_ld" = yes; then
20418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419 soname_spec='${libname}${release}${shared_ext}$major'
20420 shlibpath_var=LD_LIBRARY_PATH
20421 case $host_vendor in
20423 shlibpath_overrides_runpath=no
20425 export_dynamic_flag_spec='${wl}-Blargedynsym'
20426 runpath_var=LD_RUN_PATH
20434 shlibpath_overrides_runpath=no
20435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20441 if test -d /usr/nec ;then
20443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20444 soname_spec='$libname${shared_ext}.$major'
20445 shlibpath_var=LD_LIBRARY_PATH
20449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20450 version_type=freebsd-elf
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20454 soname_spec='${libname}${release}${shared_ext}$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 hardcode_into_libs=yes
20457 if test "$with_gnu_ld" = yes; then
20458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20459 shlibpath_overrides_runpath=no
20461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20462 shlibpath_overrides_runpath=yes
20465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20469 sys_lib_dlsearch_path_spec='/usr/lib'
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20484 echo "${ECHO_T}$dynamic_linker" >&6; }
20485 test "$dynamic_linker" = no && can_build_shared=no
20487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20490 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20497 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20503 if test "$GCC" = yes; then
20504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20507 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20508 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20509 hardcode_action_GCJ=
20510 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20511 test -n "$runpath_var_GCJ" || \
20512 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20514 # We can hardcode non-existant directories.
20515 if test "$hardcode_direct_GCJ" != no &&
20516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20517 # have to relink, otherwise we might link with an installed library
20518 # when we should be linking with a yet-to-be-installed one
20519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20520 test "$hardcode_minus_L_GCJ" != no; then
20521 # Linking always hardcodes the temporary library directory.
20522 hardcode_action_GCJ=relink
20524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20525 hardcode_action_GCJ=immediate
20528 # We cannot hardcode anything, or else we can only hardcode existing
20530 hardcode_action_GCJ=unsupported
20532 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20533 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20535 if test "$hardcode_action_GCJ" = relink; then
20536 # Fast installation is not supported
20537 enable_fast_install=no
20538 elif test "$shlibpath_overrides_runpath" = yes ||
20539 test "$enable_shared" = no; then
20540 # Fast installation is not necessary
20541 enable_fast_install=needless
20545 # The else clause should only fire when bootstrapping the
20546 # libtool distribution, otherwise you forgot to ship ltmain.sh
20547 # with your package, and you will get complaints that there are
20548 # no rules to generate ltmain.sh.
20549 if test -f "$ltmain"; then
20550 # See if we are running on zsh, and set the options which allow our commands through
20551 # without removal of \ escapes.
20552 if test -n "${ZSH_VERSION+set}" ; then
20553 setopt NO_GLOB_SUBST
20555 # Now quote all the things that may contain metacharacters while being
20556 # careful not to overquote the AC_SUBSTed values. We take copies of the
20557 # variables and quote the copies for generation of the libtool script.
20558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20562 deplibs_check_method reload_flag reload_cmds need_locks \
20563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20564 lt_cv_sys_global_symbol_to_c_name_address \
20565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20566 old_postinstall_cmds old_postuninstall_cmds \
20570 lt_prog_compiler_wl_GCJ \
20571 lt_prog_compiler_pic_GCJ \
20572 lt_prog_compiler_static_GCJ \
20573 lt_prog_compiler_no_builtin_flag_GCJ \
20574 export_dynamic_flag_spec_GCJ \
20575 thread_safe_flag_spec_GCJ \
20576 whole_archive_flag_spec_GCJ \
20577 enable_shared_with_static_runtimes_GCJ \
20578 old_archive_cmds_GCJ \
20579 old_archive_from_new_cmds_GCJ \
20580 predep_objects_GCJ \
20581 postdep_objects_GCJ \
20584 compiler_lib_search_path_GCJ \
20585 compiler_lib_search_dirs_GCJ \
20587 archive_expsym_cmds_GCJ \
20588 postinstall_cmds_GCJ \
20589 postuninstall_cmds_GCJ \
20590 old_archive_from_expsyms_cmds_GCJ \
20591 allow_undefined_flag_GCJ \
20592 no_undefined_flag_GCJ \
20593 export_symbols_cmds_GCJ \
20594 hardcode_libdir_flag_spec_GCJ \
20595 hardcode_libdir_flag_spec_ld_GCJ \
20596 hardcode_libdir_separator_GCJ \
20597 hardcode_automatic_GCJ \
20599 module_expsym_cmds_GCJ \
20600 lt_cv_prog_compiler_c_o_GCJ \
20601 fix_srcfile_path_GCJ \
20602 exclude_expsyms_GCJ \
20603 include_expsyms_GCJ; do
20606 old_archive_cmds_GCJ | \
20607 old_archive_from_new_cmds_GCJ | \
20608 archive_cmds_GCJ | \
20609 archive_expsym_cmds_GCJ | \
20610 module_cmds_GCJ | \
20611 module_expsym_cmds_GCJ | \
20612 old_archive_from_expsyms_cmds_GCJ | \
20613 export_symbols_cmds_GCJ | \
20614 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20615 postinstall_cmds | postuninstall_cmds | \
20616 old_postinstall_cmds | old_postuninstall_cmds | \
20617 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20618 # Double-quote double-evaled strings.
20619 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20622 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20628 *'\$0 --fallback-echo"')
20629 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20635 cat <<__EOF__ >> "$cfgfile"
20636 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20640 # Shell to use when invoking shell scripts.
20643 # Whether or not to build shared libraries.
20644 build_libtool_libs=$enable_shared
20646 # Whether or not to build static libraries.
20647 build_old_libs=$enable_static
20649 # Whether or not to add -lc for building shared libraries.
20650 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20652 # Whether or not to disallow shared libs when runtime libs are static
20653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20655 # Whether or not to optimize for fast installation.
20656 fast_install=$enable_fast_install
20659 host_alias=$host_alias
20663 # The build system.
20664 build_alias=$build_alias
20668 # An echo program that does not interpret backslashes.
20673 AR_FLAGS=$lt_AR_FLAGS
20678 # LTCC compiler flags.
20679 LTCFLAGS=$lt_LTCFLAGS
20681 # A language-specific compiler.
20682 CC=$lt_compiler_GCJ
20684 # Is the compiler the GNU C compiler?
20690 # The linker used to build libraries.
20693 # Whether we need hard or soft links.
20696 # A BSD-compatible nm program.
20699 # A symbol stripping program
20702 # Used to examine libraries when file_magic_cmd begins "file"
20703 MAGIC_CMD=$MAGIC_CMD
20705 # Used on cygwin: DLL creation program.
20708 # Used on cygwin: object dumper.
20711 # Used on cygwin: assembler.
20714 # The name of the directory that contains temporary libtool files.
20717 # How to create reloadable object files.
20718 reload_flag=$lt_reload_flag
20719 reload_cmds=$lt_reload_cmds
20721 # How to pass a linker flag through the compiler.
20722 wl=$lt_lt_prog_compiler_wl_GCJ
20724 # Object file suffix (normally "o").
20725 objext="$ac_objext"
20727 # Old archive suffix (normally "a").
20730 # Shared library suffix (normally ".so").
20731 shrext_cmds='$shrext_cmds'
20733 # Executable file suffix (normally "").
20736 # Additional compiler flags for building library objects.
20737 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20740 # What is the maximum length of a command?
20741 max_cmd_len=$lt_cv_sys_max_cmd_len
20743 # Does compiler simultaneously support -c and -o options?
20744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20746 # Must we lock files when doing compilation?
20747 need_locks=$lt_need_locks
20749 # Do we need the lib prefix for modules?
20750 need_lib_prefix=$need_lib_prefix
20752 # Do we need a version for libraries?
20753 need_version=$need_version
20755 # Whether dlopen is supported.
20756 dlopen_support=$enable_dlopen
20758 # Whether dlopen of programs is supported.
20759 dlopen_self=$enable_dlopen_self
20761 # Whether dlopen of statically linked programs is supported.
20762 dlopen_self_static=$enable_dlopen_self_static
20764 # Compiler flag to prevent dynamic linking.
20765 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20767 # Compiler flag to turn off builtin functions.
20768 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20770 # Compiler flag to allow reflexive dlopens.
20771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20773 # Compiler flag to generate shared objects directly from archives.
20774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20776 # Compiler flag to generate thread-safe objects.
20777 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20779 # Library versioning type.
20780 version_type=$version_type
20782 # Format of library name prefix.
20783 libname_spec=$lt_libname_spec
20785 # List of archive names. First name is the real one, the rest are links.
20786 # The last name is the one that the linker finds with -lNAME.
20787 library_names_spec=$lt_library_names_spec
20789 # The coded name of the library, if different from the real name.
20790 soname_spec=$lt_soname_spec
20792 # Commands used to build and install an old-style archive.
20794 old_archive_cmds=$lt_old_archive_cmds_GCJ
20795 old_postinstall_cmds=$lt_old_postinstall_cmds
20796 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20798 # Create an old-style archive from a shared archive.
20799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20801 # Create a temporary old-style archive to link instead of a shared archive.
20802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20804 # Commands used to build and install a shared archive.
20805 archive_cmds=$lt_archive_cmds_GCJ
20806 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20807 postinstall_cmds=$lt_postinstall_cmds
20808 postuninstall_cmds=$lt_postuninstall_cmds
20810 # Commands used to build a loadable module (assumed same as above if empty)
20811 module_cmds=$lt_module_cmds_GCJ
20812 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20814 # Commands to strip libraries.
20815 old_striplib=$lt_old_striplib
20816 striplib=$lt_striplib
20818 # Dependencies to place before the objects being linked to create a
20820 predep_objects=$lt_predep_objects_GCJ
20822 # Dependencies to place after the objects being linked to create a
20824 postdep_objects=$lt_postdep_objects_GCJ
20826 # Dependencies to place before the objects being linked to create a
20828 predeps=$lt_predeps_GCJ
20830 # Dependencies to place after the objects being linked to create a
20832 postdeps=$lt_postdeps_GCJ
20834 # The directories searched by this compiler when creating a shared
20836 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
20838 # The library search path used internally by the compiler when linking
20839 # a shared library.
20840 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20842 # Method to check whether dependent libraries are shared objects.
20843 deplibs_check_method=$lt_deplibs_check_method
20845 # Command to use when deplibs_check_method == file_magic.
20846 file_magic_cmd=$lt_file_magic_cmd
20848 # Flag that allows shared libraries with undefined symbols to be built.
20849 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20851 # Flag that forces no undefined symbols.
20852 no_undefined_flag=$lt_no_undefined_flag_GCJ
20854 # Commands used to finish a libtool library installation in a directory.
20855 finish_cmds=$lt_finish_cmds
20857 # Same as above, but a single script fragment to be evaled but not shown.
20858 finish_eval=$lt_finish_eval
20860 # Take the output of nm and produce a listing of raw symbols and C names.
20861 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20863 # Transform the output of nm in a proper C declaration
20864 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20866 # Transform the output of nm in a C name address pair
20867 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20869 # This is the shared library runtime path variable.
20870 runpath_var=$runpath_var
20872 # This is the shared library path variable.
20873 shlibpath_var=$shlibpath_var
20875 # Is shlibpath searched before the hard-coded library search path?
20876 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20878 # How to hardcode a shared library path into an executable.
20879 hardcode_action=$hardcode_action_GCJ
20881 # Whether we should hardcode library paths into libraries.
20882 hardcode_into_libs=$hardcode_into_libs
20884 # Flag to hardcode \$libdir into a binary during linking.
20885 # This must work even if \$libdir does not exist.
20886 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20888 # If ld is used when linking, flag to hardcode \$libdir into
20889 # a binary during linking. This must work even if \$libdir does
20891 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20893 # Whether we need a single -rpath flag with a separated argument.
20894 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20896 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20897 # resulting binary.
20898 hardcode_direct=$hardcode_direct_GCJ
20900 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20901 # resulting binary.
20902 hardcode_minus_L=$hardcode_minus_L_GCJ
20904 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20905 # the resulting binary.
20906 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20908 # Set to yes if building a shared library automatically hardcodes DIR into the library
20909 # and all subsequent libraries and executables linked against it.
20910 hardcode_automatic=$hardcode_automatic_GCJ
20912 # Variables whose values should be saved in libtool wrapper scripts and
20913 # restored at relink time.
20914 variables_saved_for_relink="$variables_saved_for_relink"
20916 # Whether libtool must link a program against all its dependency libraries.
20917 link_all_deplibs=$link_all_deplibs_GCJ
20919 # Compile-time system search path for libraries
20920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20922 # Run-time system search path for libraries
20923 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20925 # Fix the shell variable \$srcfile for the compiler.
20926 fix_srcfile_path=$lt_fix_srcfile_path
20928 # Set to yes if exported symbols are required.
20929 always_export_symbols=$always_export_symbols_GCJ
20931 # The commands to list exported symbols.
20932 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20934 # The commands to extract the exported symbol list from a shared archive.
20935 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20937 # Symbols that should not be listed in the preloaded symbols.
20938 exclude_expsyms=$lt_exclude_expsyms_GCJ
20940 # Symbols that must always be exported.
20941 include_expsyms=$lt_include_expsyms_GCJ
20943 # ### END LIBTOOL TAG CONFIG: $tagname
20949 # If there is no Makefile yet, we rely on a make rule to execute
20950 # `config.status --recheck' to rerun these tests and create the
20951 # libtool script then.
20952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20953 if test -f "$ltmain_in"; then
20954 test -f Makefile && make "$ltmain"
20960 ac_cpp='$CPP $CPPFLAGS'
20961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20975 # Source file extension for RC test sources.
20978 # Object file extension for compiled RC test sources.
20982 # Code to be used in simple compile tests
20983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20985 # Code to be used in simple link tests
20986 lt_simple_link_test_code="$lt_simple_compile_test_code"
20988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20990 # If no C compiler was specified, use CC.
20993 # If no C compiler flags were specified, use CFLAGS.
20994 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20996 # Allow CC to be a program name with arguments.
21000 # save warnings/boilerplate of simple test code
21001 ac_outfile=conftest.$ac_objext
21002 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21003 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21004 _lt_compiler_boilerplate=`cat conftest.err`
21007 ac_outfile=conftest.$ac_objext
21008 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21009 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21010 _lt_linker_boilerplate=`cat conftest.err`
21014 # Allow CC to be a program name with arguments.
21019 for cc_temp in $compiler""; do
21021 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21022 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21027 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21029 lt_cv_prog_compiler_c_o_RC=yes
21031 # The else clause should only fire when bootstrapping the
21032 # libtool distribution, otherwise you forgot to ship ltmain.sh
21033 # with your package, and you will get complaints that there are
21034 # no rules to generate ltmain.sh.
21035 if test -f "$ltmain"; then
21036 # See if we are running on zsh, and set the options which allow our commands through
21037 # without removal of \ escapes.
21038 if test -n "${ZSH_VERSION+set}" ; then
21039 setopt NO_GLOB_SUBST
21041 # Now quote all the things that may contain metacharacters while being
21042 # careful not to overquote the AC_SUBSTed values. We take copies of the
21043 # variables and quote the copies for generation of the libtool script.
21044 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21048 deplibs_check_method reload_flag reload_cmds need_locks \
21049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21050 lt_cv_sys_global_symbol_to_c_name_address \
21051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21052 old_postinstall_cmds old_postuninstall_cmds \
21056 lt_prog_compiler_wl_RC \
21057 lt_prog_compiler_pic_RC \
21058 lt_prog_compiler_static_RC \
21059 lt_prog_compiler_no_builtin_flag_RC \
21060 export_dynamic_flag_spec_RC \
21061 thread_safe_flag_spec_RC \
21062 whole_archive_flag_spec_RC \
21063 enable_shared_with_static_runtimes_RC \
21064 old_archive_cmds_RC \
21065 old_archive_from_new_cmds_RC \
21066 predep_objects_RC \
21067 postdep_objects_RC \
21070 compiler_lib_search_path_RC \
21071 compiler_lib_search_dirs_RC \
21073 archive_expsym_cmds_RC \
21074 postinstall_cmds_RC \
21075 postuninstall_cmds_RC \
21076 old_archive_from_expsyms_cmds_RC \
21077 allow_undefined_flag_RC \
21078 no_undefined_flag_RC \
21079 export_symbols_cmds_RC \
21080 hardcode_libdir_flag_spec_RC \
21081 hardcode_libdir_flag_spec_ld_RC \
21082 hardcode_libdir_separator_RC \
21083 hardcode_automatic_RC \
21085 module_expsym_cmds_RC \
21086 lt_cv_prog_compiler_c_o_RC \
21087 fix_srcfile_path_RC \
21088 exclude_expsyms_RC \
21089 include_expsyms_RC; do
21092 old_archive_cmds_RC | \
21093 old_archive_from_new_cmds_RC | \
21094 archive_cmds_RC | \
21095 archive_expsym_cmds_RC | \
21097 module_expsym_cmds_RC | \
21098 old_archive_from_expsyms_cmds_RC | \
21099 export_symbols_cmds_RC | \
21100 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21101 postinstall_cmds | postuninstall_cmds | \
21102 old_postinstall_cmds | old_postuninstall_cmds | \
21103 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21104 # Double-quote double-evaled strings.
21105 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21108 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21114 *'\$0 --fallback-echo"')
21115 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21121 cat <<__EOF__ >> "$cfgfile"
21122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21126 # Shell to use when invoking shell scripts.
21129 # Whether or not to build shared libraries.
21130 build_libtool_libs=$enable_shared
21132 # Whether or not to build static libraries.
21133 build_old_libs=$enable_static
21135 # Whether or not to add -lc for building shared libraries.
21136 build_libtool_need_lc=$archive_cmds_need_lc_RC
21138 # Whether or not to disallow shared libs when runtime libs are static
21139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21141 # Whether or not to optimize for fast installation.
21142 fast_install=$enable_fast_install
21145 host_alias=$host_alias
21149 # The build system.
21150 build_alias=$build_alias
21154 # An echo program that does not interpret backslashes.
21159 AR_FLAGS=$lt_AR_FLAGS
21164 # LTCC compiler flags.
21165 LTCFLAGS=$lt_LTCFLAGS
21167 # A language-specific compiler.
21170 # Is the compiler the GNU C compiler?
21176 # The linker used to build libraries.
21179 # Whether we need hard or soft links.
21182 # A BSD-compatible nm program.
21185 # A symbol stripping program
21188 # Used to examine libraries when file_magic_cmd begins "file"
21189 MAGIC_CMD=$MAGIC_CMD
21191 # Used on cygwin: DLL creation program.
21194 # Used on cygwin: object dumper.
21197 # Used on cygwin: assembler.
21200 # The name of the directory that contains temporary libtool files.
21203 # How to create reloadable object files.
21204 reload_flag=$lt_reload_flag
21205 reload_cmds=$lt_reload_cmds
21207 # How to pass a linker flag through the compiler.
21208 wl=$lt_lt_prog_compiler_wl_RC
21210 # Object file suffix (normally "o").
21211 objext="$ac_objext"
21213 # Old archive suffix (normally "a").
21216 # Shared library suffix (normally ".so").
21217 shrext_cmds='$shrext_cmds'
21219 # Executable file suffix (normally "").
21222 # Additional compiler flags for building library objects.
21223 pic_flag=$lt_lt_prog_compiler_pic_RC
21226 # What is the maximum length of a command?
21227 max_cmd_len=$lt_cv_sys_max_cmd_len
21229 # Does compiler simultaneously support -c and -o options?
21230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21232 # Must we lock files when doing compilation?
21233 need_locks=$lt_need_locks
21235 # Do we need the lib prefix for modules?
21236 need_lib_prefix=$need_lib_prefix
21238 # Do we need a version for libraries?
21239 need_version=$need_version
21241 # Whether dlopen is supported.
21242 dlopen_support=$enable_dlopen
21244 # Whether dlopen of programs is supported.
21245 dlopen_self=$enable_dlopen_self
21247 # Whether dlopen of statically linked programs is supported.
21248 dlopen_self_static=$enable_dlopen_self_static
21250 # Compiler flag to prevent dynamic linking.
21251 link_static_flag=$lt_lt_prog_compiler_static_RC
21253 # Compiler flag to turn off builtin functions.
21254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21256 # Compiler flag to allow reflexive dlopens.
21257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21259 # Compiler flag to generate shared objects directly from archives.
21260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21262 # Compiler flag to generate thread-safe objects.
21263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21265 # Library versioning type.
21266 version_type=$version_type
21268 # Format of library name prefix.
21269 libname_spec=$lt_libname_spec
21271 # List of archive names. First name is the real one, the rest are links.
21272 # The last name is the one that the linker finds with -lNAME.
21273 library_names_spec=$lt_library_names_spec
21275 # The coded name of the library, if different from the real name.
21276 soname_spec=$lt_soname_spec
21278 # Commands used to build and install an old-style archive.
21280 old_archive_cmds=$lt_old_archive_cmds_RC
21281 old_postinstall_cmds=$lt_old_postinstall_cmds
21282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21284 # Create an old-style archive from a shared archive.
21285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21287 # Create a temporary old-style archive to link instead of a shared archive.
21288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21290 # Commands used to build and install a shared archive.
21291 archive_cmds=$lt_archive_cmds_RC
21292 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21293 postinstall_cmds=$lt_postinstall_cmds
21294 postuninstall_cmds=$lt_postuninstall_cmds
21296 # Commands used to build a loadable module (assumed same as above if empty)
21297 module_cmds=$lt_module_cmds_RC
21298 module_expsym_cmds=$lt_module_expsym_cmds_RC
21300 # Commands to strip libraries.
21301 old_striplib=$lt_old_striplib
21302 striplib=$lt_striplib
21304 # Dependencies to place before the objects being linked to create a
21306 predep_objects=$lt_predep_objects_RC
21308 # Dependencies to place after the objects being linked to create a
21310 postdep_objects=$lt_postdep_objects_RC
21312 # Dependencies to place before the objects being linked to create a
21314 predeps=$lt_predeps_RC
21316 # Dependencies to place after the objects being linked to create a
21318 postdeps=$lt_postdeps_RC
21320 # The directories searched by this compiler when creating a shared
21322 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21324 # The library search path used internally by the compiler when linking
21325 # a shared library.
21326 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21328 # Method to check whether dependent libraries are shared objects.
21329 deplibs_check_method=$lt_deplibs_check_method
21331 # Command to use when deplibs_check_method == file_magic.
21332 file_magic_cmd=$lt_file_magic_cmd
21334 # Flag that allows shared libraries with undefined symbols to be built.
21335 allow_undefined_flag=$lt_allow_undefined_flag_RC
21337 # Flag that forces no undefined symbols.
21338 no_undefined_flag=$lt_no_undefined_flag_RC
21340 # Commands used to finish a libtool library installation in a directory.
21341 finish_cmds=$lt_finish_cmds
21343 # Same as above, but a single script fragment to be evaled but not shown.
21344 finish_eval=$lt_finish_eval
21346 # Take the output of nm and produce a listing of raw symbols and C names.
21347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21349 # Transform the output of nm in a proper C declaration
21350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21352 # Transform the output of nm in a C name address pair
21353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21355 # This is the shared library runtime path variable.
21356 runpath_var=$runpath_var
21358 # This is the shared library path variable.
21359 shlibpath_var=$shlibpath_var
21361 # Is shlibpath searched before the hard-coded library search path?
21362 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21364 # How to hardcode a shared library path into an executable.
21365 hardcode_action=$hardcode_action_RC
21367 # Whether we should hardcode library paths into libraries.
21368 hardcode_into_libs=$hardcode_into_libs
21370 # Flag to hardcode \$libdir into a binary during linking.
21371 # This must work even if \$libdir does not exist.
21372 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21374 # If ld is used when linking, flag to hardcode \$libdir into
21375 # a binary during linking. This must work even if \$libdir does
21377 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21379 # Whether we need a single -rpath flag with a separated argument.
21380 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21382 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21383 # resulting binary.
21384 hardcode_direct=$hardcode_direct_RC
21386 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21387 # resulting binary.
21388 hardcode_minus_L=$hardcode_minus_L_RC
21390 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21391 # the resulting binary.
21392 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21394 # Set to yes if building a shared library automatically hardcodes DIR into the library
21395 # and all subsequent libraries and executables linked against it.
21396 hardcode_automatic=$hardcode_automatic_RC
21398 # Variables whose values should be saved in libtool wrapper scripts and
21399 # restored at relink time.
21400 variables_saved_for_relink="$variables_saved_for_relink"
21402 # Whether libtool must link a program against all its dependency libraries.
21403 link_all_deplibs=$link_all_deplibs_RC
21405 # Compile-time system search path for libraries
21406 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21408 # Run-time system search path for libraries
21409 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21411 # Fix the shell variable \$srcfile for the compiler.
21412 fix_srcfile_path=$lt_fix_srcfile_path
21414 # Set to yes if exported symbols are required.
21415 always_export_symbols=$always_export_symbols_RC
21417 # The commands to list exported symbols.
21418 export_symbols_cmds=$lt_export_symbols_cmds_RC
21420 # The commands to extract the exported symbol list from a shared archive.
21421 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21423 # Symbols that should not be listed in the preloaded symbols.
21424 exclude_expsyms=$lt_exclude_expsyms_RC
21426 # Symbols that must always be exported.
21427 include_expsyms=$lt_include_expsyms_RC
21429 # ### END LIBTOOL TAG CONFIG: $tagname
21435 # If there is no Makefile yet, we rely on a make rule to execute
21436 # `config.status --recheck' to rerun these tests and create the
21437 # libtool script then.
21438 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21439 if test -f "$ltmain_in"; then
21440 test -f Makefile && make "$ltmain"
21446 ac_cpp='$CPP $CPPFLAGS'
21447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21456 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21457 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21458 { (exit 1); exit 1; }; }
21462 # Append the new tag name to the list of available tags.
21463 if test -n "$tagname" ; then
21464 available_tags="$available_tags $tagname"
21470 # Now substitute the updated list of available tags.
21471 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21472 mv "${ofile}T" "$ofile"
21476 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21477 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21478 { (exit 1); exit 1; }; }
21484 # This can be used to rebuild libtool when needed
21485 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21487 # Always use our own libtool.
21488 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21490 # Prevent multiple expansion
21514 # -Wunreachable-code can't be used with library
21515 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
21517 # set -fgnu89-inline for GCC4 compilers
21518 if test -z "$ac_cv_prog_CC"; then
21519 configure_gcc="$CC"
21521 configure_gcc="$ac_cv_prog_CC"
21523 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
21524 CFLAGS="$CFLAGS -fgnu89-inline"
21531 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21532 if test -n "$ac_tool_prefix"; then
21533 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21534 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21537 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 case $PKG_CONFIG in
21542 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21549 test -z "$as_dir" && as_dir=.
21550 for ac_exec_ext in '' $ac_executable_extensions; do
21551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21552 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21563 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21564 if test -n "$PKG_CONFIG"; then
21565 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21566 echo "${ECHO_T}$PKG_CONFIG" >&6; }
21568 { echo "$as_me:$LINENO: result: no" >&5
21569 echo "${ECHO_T}no" >&6; }
21574 if test -z "$ac_cv_path_PKG_CONFIG"; then
21575 ac_pt_PKG_CONFIG=$PKG_CONFIG
21576 # Extract the first word of "pkg-config", so it can be a program name with args.
21577 set dummy pkg-config; ac_word=$2
21578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21580 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21583 case $ac_pt_PKG_CONFIG in
21585 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21589 for as_dir in $PATH
21592 test -z "$as_dir" && as_dir=.
21593 for ac_exec_ext in '' $ac_executable_extensions; do
21594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21595 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21606 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21607 if test -n "$ac_pt_PKG_CONFIG"; then
21608 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
21609 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
21611 { echo "$as_me:$LINENO: result: no" >&5
21612 echo "${ECHO_T}no" >&6; }
21615 if test "x$ac_pt_PKG_CONFIG" = x; then
21618 case $cross_compiling:$ac_tool_warned in
21620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21621 whose name does not start with the host triplet. If you think this
21622 configuration is useful to you, please write to autoconf@gnu.org." >&5
21623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21624 whose name does not start with the host triplet. If you think this
21625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21626 ac_tool_warned=yes ;;
21628 PKG_CONFIG=$ac_pt_PKG_CONFIG
21631 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21635 if test -n "$PKG_CONFIG"; then
21636 _pkg_min_version=0.9.0
21637 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
21638 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
21639 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21640 { echo "$as_me:$LINENO: result: yes" >&5
21641 echo "${ECHO_T}yes" >&6; }
21643 { echo "$as_me:$LINENO: result: no" >&5
21644 echo "${ECHO_T}no" >&6; }
21651 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
21652 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
21654 if test -n "$PKG_CONFIG"; then
21655 if test -n "$PACKAGE_CFLAGS"; then
21656 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
21658 if test -n "$PKG_CONFIG" && \
21659 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21660 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; then
21664 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21672 if test -n "$PKG_CONFIG"; then
21673 if test -n "$PACKAGE_LIBS"; then
21674 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
21676 if test -n "$PKG_CONFIG" && \
21677 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl\"") >&5
21678 ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl") 2>&5
21680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21681 (exit $ac_status); }; then
21682 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl" 2>/dev/null`
21693 if test $pkg_failed = yes; then
21695 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21696 _pkg_short_errors_supported=yes
21698 _pkg_short_errors_supported=no
21700 if test $_pkg_short_errors_supported = yes; then
21701 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21703 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl"`
21705 # Put the nasty error message in config.log where it belongs
21706 echo "$PACKAGE_PKG_ERRORS" >&5
21708 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21710 $PACKAGE_PKG_ERRORS
21712 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21713 installed software in a non-standard prefix.
21715 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21716 and PACKAGE_LIBS to avoid the need to call pkg-config.
21717 See the pkg-config man page for more details.
21719 echo "$as_me: error: Package requirements (glib-2.0 gtk+-2.0 libsharing conic libxml-2.0 libcurl) were not met:
21721 $PACKAGE_PKG_ERRORS
21723 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21724 installed software in a non-standard prefix.
21726 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21727 and PACKAGE_LIBS to avoid the need to call pkg-config.
21728 See the pkg-config man page for more details.
21730 { (exit 1); exit 1; }; }
21731 elif test $pkg_failed = untried; then
21732 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21733 is in your PATH or set the PKG_CONFIG environment variable to the full
21734 path to pkg-config.
21736 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21737 and PACKAGE_LIBS to avoid the need to call pkg-config.
21738 See the pkg-config man page for more details.
21740 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21741 See \`config.log' for more details." >&5
21742 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21743 is in your PATH or set the PKG_CONFIG environment variable to the full
21744 path to pkg-config.
21746 Alternatively, you may set the environment variables PACKAGE_CFLAGS
21747 and PACKAGE_LIBS to avoid the need to call pkg-config.
21748 See the pkg-config man page for more details.
21750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21751 See \`config.log' for more details." >&2;}
21752 { (exit 1); exit 1; }; }
21754 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
21755 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
21756 { echo "$as_me:$LINENO: result: yes" >&5
21757 echo "${ECHO_T}yes" >&6; }
21765 { echo "$as_me:$LINENO: checking for SHARING" >&5
21766 echo $ECHO_N "checking for SHARING... $ECHO_C" >&6; }
21768 if test -n "$PKG_CONFIG"; then
21769 if test -n "$SHARING_CFLAGS"; then
21770 pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
21772 if test -n "$PKG_CONFIG" && \
21773 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21774 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; then
21778 pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
21786 if test -n "$PKG_CONFIG"; then
21787 if test -n "$SHARING_LIBS"; then
21788 pkg_cv_SHARING_LIBS="$SHARING_LIBS"
21790 if test -n "$PKG_CONFIG" && \
21791 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsharing\"") >&5
21792 ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
21794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); }; then
21796 pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
21807 if test $pkg_failed = yes; then
21809 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21810 _pkg_short_errors_supported=yes
21812 _pkg_short_errors_supported=no
21814 if test $_pkg_short_errors_supported = yes; then
21815 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
21817 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
21819 # Put the nasty error message in config.log where it belongs
21820 echo "$SHARING_PKG_ERRORS" >&5
21822 { { echo "$as_me:$LINENO: error: Package requirements (libsharing) were not met:
21824 $SHARING_PKG_ERRORS
21826 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21827 installed software in a non-standard prefix.
21829 Alternatively, you may set the environment variables SHARING_CFLAGS
21830 and SHARING_LIBS to avoid the need to call pkg-config.
21831 See the pkg-config man page for more details.
21833 echo "$as_me: error: Package requirements (libsharing) were not met:
21835 $SHARING_PKG_ERRORS
21837 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21838 installed software in a non-standard prefix.
21840 Alternatively, you may set the environment variables SHARING_CFLAGS
21841 and SHARING_LIBS to avoid the need to call pkg-config.
21842 See the pkg-config man page for more details.
21844 { (exit 1); exit 1; }; }
21845 elif test $pkg_failed = untried; then
21846 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21847 is in your PATH or set the PKG_CONFIG environment variable to the full
21848 path to pkg-config.
21850 Alternatively, you may set the environment variables SHARING_CFLAGS
21851 and SHARING_LIBS to avoid the need to call pkg-config.
21852 See the pkg-config man page for more details.
21854 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21855 See \`config.log' for more details." >&5
21856 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21857 is in your PATH or set the PKG_CONFIG environment variable to the full
21858 path to pkg-config.
21860 Alternatively, you may set the environment variables SHARING_CFLAGS
21861 and SHARING_LIBS to avoid the need to call pkg-config.
21862 See the pkg-config man page for more details.
21864 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21865 See \`config.log' for more details." >&2;}
21866 { (exit 1); exit 1; }; }
21868 SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
21869 SHARING_LIBS=$pkg_cv_SHARING_LIBS
21870 { echo "$as_me:$LINENO: result: yes" >&5
21871 echo "${ECHO_T}yes" >&6; }
21877 { echo "$as_me:$LINENO: checking for XML" >&5
21878 echo $ECHO_N "checking for XML... $ECHO_C" >&6; }
21880 if test -n "$PKG_CONFIG"; then
21881 if test -n "$XML_CFLAGS"; then
21882 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
21884 if test -n "$PKG_CONFIG" && \
21885 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21886 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; then
21890 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
21898 if test -n "$PKG_CONFIG"; then
21899 if test -n "$XML_LIBS"; then
21900 pkg_cv_XML_LIBS="$XML_LIBS"
21902 if test -n "$PKG_CONFIG" && \
21903 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
21904 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; then
21908 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
21919 if test $pkg_failed = yes; then
21921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21922 _pkg_short_errors_supported=yes
21924 _pkg_short_errors_supported=no
21926 if test $_pkg_short_errors_supported = yes; then
21927 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
21929 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
21931 # Put the nasty error message in config.log where it belongs
21932 echo "$XML_PKG_ERRORS" >&5
21934 { { echo "$as_me:$LINENO: error: Package requirements (libxml-2.0) were not met:
21938 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21939 installed software in a non-standard prefix.
21941 Alternatively, you may set the environment variables XML_CFLAGS
21942 and XML_LIBS to avoid the need to call pkg-config.
21943 See the pkg-config man page for more details.
21945 echo "$as_me: error: Package requirements (libxml-2.0) were not met:
21949 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21950 installed software in a non-standard prefix.
21952 Alternatively, you may set the environment variables XML_CFLAGS
21953 and XML_LIBS to avoid the need to call pkg-config.
21954 See the pkg-config man page for more details.
21956 { (exit 1); exit 1; }; }
21957 elif test $pkg_failed = untried; then
21958 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
21959 is in your PATH or set the PKG_CONFIG environment variable to the full
21960 path to pkg-config.
21962 Alternatively, you may set the environment variables XML_CFLAGS
21963 and XML_LIBS to avoid the need to call pkg-config.
21964 See the pkg-config man page for more details.
21966 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21967 See \`config.log' for more details." >&5
21968 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
21969 is in your PATH or set the PKG_CONFIG environment variable to the full
21970 path to pkg-config.
21972 Alternatively, you may set the environment variables XML_CFLAGS
21973 and XML_LIBS to avoid the need to call pkg-config.
21974 See the pkg-config man page for more details.
21976 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21977 See \`config.log' for more details." >&2;}
21978 { (exit 1); exit 1; }; }
21980 XML_CFLAGS=$pkg_cv_XML_CFLAGS
21981 XML_LIBS=$pkg_cv_XML_LIBS
21982 { echo "$as_me:$LINENO: result: yes" >&5
21983 echo "${ECHO_T}yes" >&6; }
21989 { echo "$as_me:$LINENO: checking for CURL" >&5
21990 echo $ECHO_N "checking for CURL... $ECHO_C" >&6; }
21992 if test -n "$PKG_CONFIG"; then
21993 if test -n "$CURL_CFLAGS"; then
21994 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS"
21996 if test -n "$PKG_CONFIG" && \
21997 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
21998 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; then
22002 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
22010 if test -n "$PKG_CONFIG"; then
22011 if test -n "$CURL_LIBS"; then
22012 pkg_cv_CURL_LIBS="$CURL_LIBS"
22014 if test -n "$PKG_CONFIG" && \
22015 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcurl\"") >&5
22016 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; then
22020 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
22031 if test $pkg_failed = yes; then
22033 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22034 _pkg_short_errors_supported=yes
22036 _pkg_short_errors_supported=no
22038 if test $_pkg_short_errors_supported = yes; then
22039 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libcurl"`
22041 CURL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libcurl"`
22043 # Put the nasty error message in config.log where it belongs
22044 echo "$CURL_PKG_ERRORS" >&5
22046 { { echo "$as_me:$LINENO: error: Package requirements (libcurl) were not met:
22050 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22051 installed software in a non-standard prefix.
22053 Alternatively, you may set the environment variables CURL_CFLAGS
22054 and CURL_LIBS to avoid the need to call pkg-config.
22055 See the pkg-config man page for more details.
22057 echo "$as_me: error: Package requirements (libcurl) were not met:
22061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22062 installed software in a non-standard prefix.
22064 Alternatively, you may set the environment variables CURL_CFLAGS
22065 and CURL_LIBS to avoid the need to call pkg-config.
22066 See the pkg-config man page for more details.
22068 { (exit 1); exit 1; }; }
22069 elif test $pkg_failed = untried; then
22070 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
22071 is in your PATH or set the PKG_CONFIG environment variable to the full
22072 path to pkg-config.
22074 Alternatively, you may set the environment variables CURL_CFLAGS
22075 and CURL_LIBS to avoid the need to call pkg-config.
22076 See the pkg-config man page for more details.
22078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22079 See \`config.log' for more details." >&5
22080 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
22081 is in your PATH or set the PKG_CONFIG environment variable to the full
22082 path to pkg-config.
22084 Alternatively, you may set the environment variables CURL_CFLAGS
22085 and CURL_LIBS to avoid the need to call pkg-config.
22086 See the pkg-config man page for more details.
22088 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22089 See \`config.log' for more details." >&2;}
22090 { (exit 1); exit 1; }; }
22092 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS
22093 CURL_LIBS=$pkg_cv_CURL_LIBS
22094 { echo "$as_me:$LINENO: result: yes" >&5
22095 echo "${ECHO_T}yes" >&6; }
22102 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
22106 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22107 if test -n "$ac_tool_prefix"; then
22108 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22109 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22112 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22115 case $PKG_CONFIG in
22117 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22121 for as_dir in $PATH
22124 test -z "$as_dir" && as_dir=.
22125 for ac_exec_ext in '' $ac_executable_extensions; do
22126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22127 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22138 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22139 if test -n "$PKG_CONFIG"; then
22140 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22141 echo "${ECHO_T}$PKG_CONFIG" >&6; }
22143 { echo "$as_me:$LINENO: result: no" >&5
22144 echo "${ECHO_T}no" >&6; }
22149 if test -z "$ac_cv_path_PKG_CONFIG"; then
22150 ac_pt_PKG_CONFIG=$PKG_CONFIG
22151 # Extract the first word of "pkg-config", so it can be a program name with args.
22152 set dummy pkg-config; ac_word=$2
22153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22155 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 case $ac_pt_PKG_CONFIG in
22160 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22164 for as_dir in $PATH
22167 test -z "$as_dir" && as_dir=.
22168 for ac_exec_ext in '' $ac_executable_extensions; do
22169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22170 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22181 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22182 if test -n "$ac_pt_PKG_CONFIG"; then
22183 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22184 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22186 { echo "$as_me:$LINENO: result: no" >&5
22187 echo "${ECHO_T}no" >&6; }
22190 if test "x$ac_pt_PKG_CONFIG" = x; then
22193 case $cross_compiling:$ac_tool_warned in
22195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22196 whose name does not start with the host triplet. If you think this
22197 configuration is useful to you, please write to autoconf@gnu.org." >&5
22198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22199 whose name does not start with the host triplet. If you think this
22200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22201 ac_tool_warned=yes ;;
22203 PKG_CONFIG=$ac_pt_PKG_CONFIG
22206 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22210 if test -n "$PKG_CONFIG"; then
22211 _pkg_min_version=0.9.0
22212 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22213 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22214 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22215 { echo "$as_me:$LINENO: result: yes" >&5
22216 echo "${ECHO_T}yes" >&6; }
22218 { echo "$as_me:$LINENO: result: no" >&5
22219 echo "${ECHO_T}no" >&6; }
22224 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
22229 # Check whether --enable-debug was given.
22230 if test "${enable_debug+set}" = set; then
22231 enableval=$enable_debug; enable_debug=yes
22237 if test x$enable_debug = xyes; then
22238 DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
22244 DATADIRNAME="share"
22245 if test "x${prefix}" = "xNONE"; then
22247 cat >>confdefs.h <<_ACEOF
22248 @%:@define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
22253 cat >>confdefs.h <<_ACEOF
22254 @%:@define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
22262 ac_config_files="$ac_config_files Makefile data/Makefile data/yandexfotki.service.xml src/Makefile"
22264 cat >confcache <<\_ACEOF
22265 # This file is a shell script that caches the results of configure
22266 # tests run on this system so they can be shared between configure
22267 # scripts and configure runs, see configure's option --config-cache.
22268 # It is not useful on other systems. If it contains results you don't
22269 # want to keep, you may remove or edit it.
22271 # config.status only pays attention to the cache file if you give it
22272 # the --recheck option to rerun configure.
22274 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22275 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22276 # following values.
22280 # The following way of writing the cache mishandles newlines in values,
22281 # but we know of no workaround that is simple, portable, and efficient.
22282 # So, we kill variables containing newlines.
22283 # Ultrix sh set writes to stderr and can't be redirected directly,
22284 # and sets the high bit in the cache file unless we assign to the vars.
22286 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22287 eval ac_val=\$$ac_var
22291 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22292 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22295 _ | IFS | as_nl) ;; #(
22296 *) $as_unset $ac_var ;;
22302 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22303 *${as_nl}ac_space=\ *)
22304 # `set' does not quote correctly, so add quotes (double-quote
22305 # substitution turns \\\\ into \\, and sed turns \\ into \).
22308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22311 # `set' quotes correctly as required by POSIX, so do not add quotes.
22312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22321 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22323 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22325 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22326 if test -w "$cache_file"; then
22327 test "x$cache_file" != "x/dev/null" &&
22328 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22329 echo "$as_me: updating cache $cache_file" >&6;}
22330 cat confcache >$cache_file
22332 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22333 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22338 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22339 # Let make expand exec_prefix.
22340 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22342 DEFS=-DHAVE_CONFIG_H
22346 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
22347 # 1. Remove the extension, and $U if already installed.
22348 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22349 ac_i=`echo "$ac_i" | sed "$ac_script"`
22350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22351 # will be set to the directory where LIBOBJS objects are built.
22352 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22353 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22355 LIB@&t@OBJS=$ac_libobjs
22357 LTLIBOBJS=$ac_ltlibobjs
22360 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22361 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22362 Usually this means the macro was only invoked conditionally." >&5
22363 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22364 Usually this means the macro was only invoked conditionally." >&2;}
22365 { (exit 1); exit 1; }; }
22367 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22368 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22369 Usually this means the macro was only invoked conditionally." >&5
22370 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22371 Usually this means the macro was only invoked conditionally." >&2;}
22372 { (exit 1); exit 1; }; }
22374 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22375 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22376 Usually this means the macro was only invoked conditionally." >&5
22377 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22378 Usually this means the macro was only invoked conditionally." >&2;}
22379 { (exit 1); exit 1; }; }
22381 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22382 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22383 Usually this means the macro was only invoked conditionally." >&5
22384 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22385 Usually this means the macro was only invoked conditionally." >&2;}
22386 { (exit 1); exit 1; }; }
22388 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22389 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22390 Usually this means the macro was only invoked conditionally." >&5
22391 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22392 Usually this means the macro was only invoked conditionally." >&2;}
22393 { (exit 1); exit 1; }; }
22395 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22396 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22397 Usually this means the macro was only invoked conditionally." >&5
22398 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22399 Usually this means the macro was only invoked conditionally." >&2;}
22400 { (exit 1); exit 1; }; }
22403 : ${CONFIG_STATUS=./config.status}
22404 ac_clean_files_save=$ac_clean_files
22405 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22406 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22407 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22408 cat >$CONFIG_STATUS <<_ACEOF
22410 # Generated by $as_me.
22411 # Run this file to recreate the current configuration.
22412 # Compiler output produced by configure, useful for debugging
22413 # configure, is in config.log if it exists.
22416 ac_cs_recheck=false
22418 SHELL=\${CONFIG_SHELL-$SHELL}
22421 cat >>$CONFIG_STATUS <<\_ACEOF
22422 ## --------------------- ##
22423 ## M4sh Initialization. ##
22424 ## --------------------- ##
22426 # Be more Bourne compatible
22427 DUALCASE=1; export DUALCASE # for MKS sh
22428 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22431 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22432 # is contrary to our usage. Disable this feature.
22433 alias -g '${1+"$@"}'='"$@"'
22434 setopt NO_GLOB_SUBST
22436 case `(set -o) 2>/dev/null` in
22437 *posix*) set -o posix ;;
22446 # Avoid depending upon Character Ranges.
22447 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22448 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22449 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22450 as_cr_digits='0123456789'
22451 as_cr_alnum=$as_cr_Letters$as_cr_digits
22453 # The user is always right.
22454 if test "${PATH_SEPARATOR+set}" != set; then
22455 echo "#! /bin/sh" >conf$$.sh
22456 echo "exit 0" >>conf$$.sh
22458 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22466 # Support unset when possible.
22467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22475 # We need space, tab and new line, in precisely that order. Quoting is
22476 # there to prevent editors from complaining about space-tab.
22477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22478 # splitting by setting IFS to empty value.)
22483 # Find who we are. Look in the path if we contain no directory separator.
22485 *[\\/]* ) as_myself=$0 ;;
22486 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in $PATH
22490 test -z "$as_dir" && as_dir=.
22491 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22497 # We did not find ourselves, most probably we were run as `sh COMMAND'
22498 # in which case we are not to be found in the path.
22499 if test "x$as_myself" = x; then
22502 if test ! -f "$as_myself"; then
22503 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22504 { (exit 1); exit 1; }
22507 # Work around bugs in pre-3.0 UWIN ksh.
22508 for as_var in ENV MAIL MAILPATH
22509 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22517 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22518 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22519 LC_TELEPHONE LC_TIME
22521 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22522 eval $as_var=C; export $as_var
22524 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22528 # Required to use basename.
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22537 as_basename=basename
22543 # Name of the executable.
22544 as_me=`$as_basename -- "$0" ||
22545 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22546 X"$0" : 'X\(//\)$' \| \
22547 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22549 sed '/^.*\/\([^/][^/]*\)\/*$/{
22568 as_lineno_1=$LINENO
22569 as_lineno_2=$LINENO
22570 test "x$as_lineno_1" != "x$as_lineno_2" &&
22571 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22573 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22574 # uniformly replaced by the line number. The first 'sed' inserts a
22575 # line-number line after each line using $LINENO; the second 'sed'
22576 # does the real work. The second script uses 'N' to pair each
22577 # line-number line with the line containing $LINENO, and appends
22578 # trailing '-' during substitution so that $LINENO is not a special
22579 # case at line end.
22580 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22581 # scripts with optimization help from Paolo Bonzini. Blame Lee
22582 # E. McMahon (1931-1989) for sed's syntax. :-)
22594 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22597 ' >$as_me.lineno &&
22598 chmod +x "$as_me.lineno" ||
22599 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22600 { (exit 1); exit 1; }; }
22602 # Don't try to exec as it changes $[0], causing all sort of problems
22603 # (the dirname of $[0] is not the place where we might find the
22604 # original and so on. Autoconf is especially sensitive to this).
22605 . "./$as_me.lineno"
22606 # Exit status is that of the last command.
22611 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22617 ECHO_C= ECHO_N= ECHO_T=
22618 case `echo -n x` in
22620 case `echo 'x\c'` in
22621 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22628 if expr a : '\(a\)' >/dev/null 2>&1 &&
22629 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22635 rm -f conf$$ conf$$.exe conf$$.file
22636 if test -d conf$$.dir; then
22637 rm -f conf$$.dir/conf$$.file
22643 if ln -s conf$$.file conf$$ 2>/dev/null; then
22645 # ... but there are two gotchas:
22646 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22647 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22648 # In both cases, we have to default to `cp -p'.
22649 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22651 elif ln conf$$.file conf$$ 2>/dev/null; then
22656 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22657 rmdir conf$$.dir 2>/dev/null
22659 if mkdir -p . 2>/dev/null; then
22662 test -d ./-p && rmdir ./-p
22666 if test -x / >/dev/null 2>&1; then
22667 as_test_x='test -x'
22669 if ls -dL / >/dev/null 2>&1; then
22676 if test -d "$1"; then
22682 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22683 ???[sx]*):;;*)false;;esac;fi
22687 as_executable_p=$as_test_x
22689 # Sed expression to map a string onto a valid CPP name.
22690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22692 # Sed expression to map a string onto a valid variable name.
22693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22698 # Save the log message, to keep $[0] and so on meaningful, and to
22699 # report actual input values of CONFIG_FILES etc. instead of their
22700 # values after options handling.
22702 This file was extended by yandex-fotki-sharing-plugin $as_me 0.1, which was
22703 generated by GNU Autoconf 2.61. Invocation command line was
22705 CONFIG_FILES = $CONFIG_FILES
22706 CONFIG_HEADERS = $CONFIG_HEADERS
22707 CONFIG_LINKS = $CONFIG_LINKS
22708 CONFIG_COMMANDS = $CONFIG_COMMANDS
22711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22716 cat >>$CONFIG_STATUS <<_ACEOF
22717 # Files that config.status was made for.
22718 config_files="$ac_config_files"
22719 config_headers="$ac_config_headers"
22720 config_commands="$ac_config_commands"
22724 cat >>$CONFIG_STATUS <<\_ACEOF
22726 \`$as_me' instantiates files from templates according to the
22727 current configuration.
22729 Usage: $0 [OPTIONS] [FILE]...
22731 -h, --help print this help, then exit
22732 -V, --version print version number and configuration settings, then exit
22733 -q, --quiet do not print progress messages
22734 -d, --debug don't remove temporary files
22735 --recheck update $as_me by reconfiguring in the same conditions
22736 --file=FILE[:TEMPLATE]
22737 instantiate the configuration file FILE
22738 --header=FILE[:TEMPLATE]
22739 instantiate the configuration header FILE
22741 Configuration files:
22744 Configuration headers:
22747 Configuration commands:
22750 Report bugs to <bug-autoconf@gnu.org>."
22753 cat >>$CONFIG_STATUS <<_ACEOF
22755 yandex-fotki-sharing-plugin config.status 0.1
22756 configured by $0, generated by GNU Autoconf 2.61,
22757 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22759 Copyright (C) 2006 Free Software Foundation, Inc.
22760 This config.status script is free software; the Free Software Foundation
22761 gives unlimited permission to copy, distribute and modify it."
22768 cat >>$CONFIG_STATUS <<\_ACEOF
22769 # If no file are specified by the user, then we need to provide default
22770 # value. By we need to know if files were specified by the user.
22776 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22777 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22788 # Handling of the options.
22789 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22791 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22792 echo "$ac_cs_version"; exit ;;
22793 --debug | --debu | --deb | --de | --d | -d )
22795 --file | --fil | --fi | --f )
22797 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22798 ac_need_defaults=false;;
22799 --header | --heade | --head | --hea )
22801 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22802 ac_need_defaults=false;;
22804 # Conflict between --help and --header
22805 { echo "$as_me: error: ambiguous option: $1
22806 Try \`$0 --help' for more information." >&2
22807 { (exit 1); exit 1; }; };;
22808 --help | --hel | -h )
22809 echo "$ac_cs_usage"; exit ;;
22810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22814 # This is an error.
22815 -*) { echo "$as_me: error: unrecognized option: $1
22816 Try \`$0 --help' for more information." >&2
22817 { (exit 1); exit 1; }; } ;;
22819 *) ac_config_targets="$ac_config_targets $1"
22820 ac_need_defaults=false ;;
22826 ac_configure_extra_args=
22828 if $ac_cs_silent; then
22830 ac_configure_extra_args="$ac_configure_extra_args --silent"
22834 cat >>$CONFIG_STATUS <<_ACEOF
22835 if \$ac_cs_recheck; then
22836 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22837 CONFIG_SHELL=$SHELL
22838 export CONFIG_SHELL
22839 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22843 cat >>$CONFIG_STATUS <<\_ACEOF
22847 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
22848 @%:@@%:@ Running $as_me. @%:@@%:@
22854 cat >>$CONFIG_STATUS <<_ACEOF
22858 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22862 cat >>$CONFIG_STATUS <<\_ACEOF
22864 # Handling of arguments.
22865 for ac_config_target in $ac_config_targets
22867 case $ac_config_target in
22868 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22869 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22871 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22872 "data/yandexfotki.service.xml") CONFIG_FILES="$CONFIG_FILES data/yandexfotki.service.xml" ;;
22873 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22875 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22876 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22877 { (exit 1); exit 1; }; };;
22882 # If the user did not use the arguments to specify the items to instantiate,
22883 # then the envvar interface is used. Set only those that are not.
22884 # We use the long form for the default assignment because of an extremely
22885 # bizarre bug on SunOS 4.1.3.
22886 if $ac_need_defaults; then
22887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22892 # Have a temporary directory for convenience. Make it in the build tree
22893 # simply because there is no reason against having it here, and in addition,
22894 # creating and moving files from /tmp can sometimes cause problems.
22895 # Hook for its removal unless debugging.
22896 # Note that there is a small window in which the directory will not be cleaned:
22897 # after its creation but before its name has been assigned to `$tmp'.
22901 trap 'exit_status=$?
22902 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22904 trap '{ (exit 1); exit 1; }' 1 2 13 15
22906 # Create a (secure) tmp directory for tmp files.
22909 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22910 test -n "$tmp" && test -d "$tmp"
22913 tmp=./conf$$-$RANDOM
22914 (umask 077 && mkdir "$tmp")
22917 echo "$me: cannot create a temporary directory in ." >&2
22918 { (exit 1); exit 1; }
22922 # Set up the sed scripts for CONFIG_FILES section.
22925 # No need to generate the scripts if there are no CONFIG_FILES.
22926 # This happens for instance when ./config.status config.h
22927 if test -n "$CONFIG_FILES"; then
22934 for ac_last_try in false false false false false :; do
22935 cat >conf$$subs.sed <<_ACEOF
22936 SHELL!$SHELL$ac_delim
22937 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22938 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22939 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22940 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22941 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22942 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22943 exec_prefix!$exec_prefix$ac_delim
22944 prefix!$prefix$ac_delim
22945 program_transform_name!$program_transform_name$ac_delim
22946 bindir!$bindir$ac_delim
22947 sbindir!$sbindir$ac_delim
22948 libexecdir!$libexecdir$ac_delim
22949 datarootdir!$datarootdir$ac_delim
22950 datadir!$datadir$ac_delim
22951 sysconfdir!$sysconfdir$ac_delim
22952 sharedstatedir!$sharedstatedir$ac_delim
22953 localstatedir!$localstatedir$ac_delim
22954 includedir!$includedir$ac_delim
22955 oldincludedir!$oldincludedir$ac_delim
22956 docdir!$docdir$ac_delim
22957 infodir!$infodir$ac_delim
22958 htmldir!$htmldir$ac_delim
22959 dvidir!$dvidir$ac_delim
22960 pdfdir!$pdfdir$ac_delim
22961 psdir!$psdir$ac_delim
22962 libdir!$libdir$ac_delim
22963 localedir!$localedir$ac_delim
22964 mandir!$mandir$ac_delim
22965 DEFS!$DEFS$ac_delim
22966 ECHO_C!$ECHO_C$ac_delim
22967 ECHO_N!$ECHO_N$ac_delim
22968 ECHO_T!$ECHO_T$ac_delim
22969 LIBS!$LIBS$ac_delim
22970 build_alias!$build_alias$ac_delim
22971 host_alias!$host_alias$ac_delim
22972 target_alias!$target_alias$ac_delim
22973 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22974 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22975 INSTALL_DATA!$INSTALL_DATA$ac_delim
22976 CYGPATH_W!$CYGPATH_W$ac_delim
22977 PACKAGE!$PACKAGE$ac_delim
22978 VERSION!$VERSION$ac_delim
22979 ACLOCAL!$ACLOCAL$ac_delim
22980 AUTOCONF!$AUTOCONF$ac_delim
22981 AUTOMAKE!$AUTOMAKE$ac_delim
22982 AUTOHEADER!$AUTOHEADER$ac_delim
22983 MAKEINFO!$MAKEINFO$ac_delim
22984 AMTAR!$AMTAR$ac_delim
22985 install_sh!$install_sh$ac_delim
22986 STRIP!$STRIP$ac_delim
22987 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22988 mkdir_p!$mkdir_p$ac_delim
22990 SET_MAKE!$SET_MAKE$ac_delim
22991 am__leading_dot!$am__leading_dot$ac_delim
22992 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
22993 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
22994 MAINT!$MAINT$ac_delim
22996 CFLAGS!$CFLAGS$ac_delim
22997 LDFLAGS!$LDFLAGS$ac_delim
22998 CPPFLAGS!$CPPFLAGS$ac_delim
22999 ac_ct_CC!$ac_ct_CC$ac_delim
23000 EXEEXT!$EXEEXT$ac_delim
23001 OBJEXT!$OBJEXT$ac_delim
23002 DEPDIR!$DEPDIR$ac_delim
23003 am__include!$am__include$ac_delim
23004 am__quote!$am__quote$ac_delim
23005 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23006 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23007 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23008 CCDEPMODE!$CCDEPMODE$ac_delim
23009 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23010 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23012 CXXFLAGS!$CXXFLAGS$ac_delim
23013 ac_ct_CXX!$ac_ct_CXX$ac_delim
23014 CXXDEPMODE!$CXXDEPMODE$ac_delim
23015 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23016 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23018 GREP!$GREP$ac_delim
23019 EGREP!$EGREP$ac_delim
23020 LN_S!$LN_S$ac_delim
23021 build!$build$ac_delim
23022 build_cpu!$build_cpu$ac_delim
23023 build_vendor!$build_vendor$ac_delim
23024 build_os!$build_os$ac_delim
23025 host!$host$ac_delim
23026 host_cpu!$host_cpu$ac_delim
23027 host_vendor!$host_vendor$ac_delim
23028 host_os!$host_os$ac_delim
23030 ECHO!$ECHO$ac_delim
23032 RANLIB!$RANLIB$ac_delim
23035 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23037 elif $ac_last_try; then
23038 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23039 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23040 { (exit 1); exit 1; }; }
23042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23046 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23047 if test -n "$ac_eof"; then
23048 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23049 ac_eof=`expr $ac_eof + 1`
23052 cat >>$CONFIG_STATUS <<_ACEOF
23053 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23054 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23057 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23058 s/^/s,@/; s/!/@,|#_!!_#|/
23061 s/'"$ac_delim"'$/,g/; t
23063 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23064 ' >>$CONFIG_STATUS <conf$$subs.sed
23065 rm -f conf$$subs.sed
23066 cat >>$CONFIG_STATUS <<_ACEOF
23072 for ac_last_try in false false false false false :; do
23073 cat >conf$$subs.sed <<_ACEOF
23074 DSYMUTIL!$DSYMUTIL$ac_delim
23075 NMEDIT!$NMEDIT$ac_delim
23076 CXXCPP!$CXXCPP$ac_delim
23078 FFLAGS!$FFLAGS$ac_delim
23079 ac_ct_F77!$ac_ct_F77$ac_delim
23080 LIBTOOL!$LIBTOOL$ac_delim
23081 PKG_CONFIG!$PKG_CONFIG$ac_delim
23082 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
23083 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
23084 SHARING_CFLAGS!$SHARING_CFLAGS$ac_delim
23085 SHARING_LIBS!$SHARING_LIBS$ac_delim
23086 XML_CFLAGS!$XML_CFLAGS$ac_delim
23087 XML_LIBS!$XML_LIBS$ac_delim
23088 CURL_CFLAGS!$CURL_CFLAGS$ac_delim
23089 CURL_LIBS!$CURL_LIBS$ac_delim
23090 currentdir!$currentdir$ac_delim
23091 pluginsdir!$pluginsdir$ac_delim
23092 servicesdir!$servicesdir$ac_delim
23093 DEBUG_CFLAGS!$DEBUG_CFLAGS$ac_delim
23094 PACKAGE_LOCALE_DIR!$PACKAGE_LOCALE_DIR$ac_delim
23095 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
23096 LTLIBOBJS!$LTLIBOBJS$ac_delim
23099 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
23101 elif $ac_last_try; then
23102 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23103 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23104 { (exit 1); exit 1; }; }
23106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23110 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23111 if test -n "$ac_eof"; then
23112 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23113 ac_eof=`expr $ac_eof + 1`
23116 cat >>$CONFIG_STATUS <<_ACEOF
23117 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23121 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23122 s/^/s,@/; s/!/@,|#_!!_#|/
23125 s/'"$ac_delim"'$/,g/; t
23127 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23128 ' >>$CONFIG_STATUS <conf$$subs.sed
23129 rm -f conf$$subs.sed
23130 cat >>$CONFIG_STATUS <<_ACEOF
23137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23139 # trailing colons and then remove the whole line if VPATH becomes empty
23140 # (actually we leave an empty line to preserve line numbers).
23141 if test "x$srcdir" = x.; then
23142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23143 s/:*\$(srcdir):*/:/
23144 s/:*\${srcdir}:*/:/
23146 s/^\([^=]*=[ ]*\):*/\1/
23152 cat >>$CONFIG_STATUS <<\_ACEOF
23153 fi # test -n "$CONFIG_FILES"
23156 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23159 :[FHLC]) ac_mode=$ac_tag; continue;;
23161 case $ac_mode$ac_tag in
23163 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23164 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23165 { (exit 1); exit 1; }; };;
23166 :[FH]-) ac_tag=-:-;;
23167 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23184 -) ac_f="$tmp/stdin";;
23185 *) # Look for the file first in the build tree, then in the source tree
23186 # (if the path is not absolute). The absolute path cannot be DOS-style,
23187 # because $ac_f cannot contain `:'.
23191 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23193 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23194 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23195 { (exit 1); exit 1; }; };;
23197 ac_file_inputs="$ac_file_inputs $ac_f"
23200 # Let's still pretend it is `configure' which instantiates (i.e., don't
23201 # use $as_me), people would be surprised to read:
23202 # /* config.h. Generated by config.status. */
23203 configure_input="Generated from "`IFS=:
23204 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23205 if test x"$ac_file" != x-; then
23206 configure_input="$ac_file. $configure_input"
23207 { echo "$as_me:$LINENO: creating $ac_file" >&5
23208 echo "$as_me: creating $ac_file" >&6;}
23212 *:-:* | *:-) cat >"$tmp/stdin";;
23217 ac_dir=`$as_dirname -- "$ac_file" ||
23218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23219 X"$ac_file" : 'X\(//\)[^/]' \| \
23220 X"$ac_file" : 'X\(//\)$' \| \
23221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23227 /^X\(\/\/\)[^/].*/{
23242 -*) as_dir=./$as_dir;;
23244 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23248 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23249 *) as_qdir=$as_dir;;
23251 as_dirs="'$as_qdir' $as_dirs"
23252 as_dir=`$as_dirname -- "$as_dir" ||
23253 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23254 X"$as_dir" : 'X\(//\)[^/]' \| \
23255 X"$as_dir" : 'X\(//\)$' \| \
23256 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23262 /^X\(\/\/\)[^/].*/{
23275 test -d "$as_dir" && break
23277 test -z "$as_dirs" || eval "mkdir $as_dirs"
23278 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23279 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23280 { (exit 1); exit 1; }; }; }
23284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23286 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23287 # A ".." for each directory in $ac_dir_suffix.
23288 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23289 case $ac_top_builddir_sub in
23290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23294 ac_abs_top_builddir=$ac_pwd
23295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23296 # for backward compatibility:
23297 ac_top_builddir=$ac_top_build_prefix
23300 .) # We are building in place.
23302 ac_top_srcdir=$ac_top_builddir_sub
23303 ac_abs_top_srcdir=$ac_pwd ;;
23304 [\\/]* | ?:[\\/]* ) # Absolute name.
23305 ac_srcdir=$srcdir$ac_dir_suffix;
23306 ac_top_srcdir=$srcdir
23307 ac_abs_top_srcdir=$srcdir ;;
23308 *) # Relative name.
23309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23310 ac_top_srcdir=$ac_top_build_prefix$srcdir
23311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23328 cat >>$CONFIG_STATUS <<\_ACEOF
23329 # If the template does not know about datarootdir, expand it.
23330 # FIXME: This hack should be removed a few years after 2.60.
23331 ac_datarootdir_hack=; ac_datarootdir_seen=
23333 case `sed -n '/datarootdir/ {
23342 ' $ac_file_inputs` in
23343 *datarootdir*) ac_datarootdir_seen=yes;;
23344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23345 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23346 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23348 cat >>$CONFIG_STATUS <<_ACEOF
23349 ac_datarootdir_hack='
23350 s&@datadir@&$datadir&g
23351 s&@docdir@&$docdir&g
23352 s&@infodir@&$infodir&g
23353 s&@localedir@&$localedir&g
23354 s&@mandir@&$mandir&g
23355 s&\\\${datarootdir}&$datarootdir&g' ;;
23359 # Neutralize VPATH when `$srcdir' = `.'.
23360 # Shell code in configure.ac might set extrasub.
23361 # FIXME: do we really want to maintain this feature?
23362 cat >>$CONFIG_STATUS <<_ACEOF
23366 cat >>$CONFIG_STATUS <<\_ACEOF
23368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23369 s&@configure_input@&$configure_input&;t t
23370 s&@top_builddir@&$ac_top_builddir_sub&;t t
23371 s&@srcdir@&$ac_srcdir&;t t
23372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23373 s&@top_srcdir@&$ac_top_srcdir&;t t
23374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23375 s&@builddir@&$ac_builddir&;t t
23376 s&@abs_builddir@&$ac_abs_builddir&;t t
23377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23378 s&@INSTALL@&$ac_INSTALL&;t t
23379 $ac_datarootdir_hack
23380 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23382 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23383 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23384 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23385 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23386 which seems to be undefined. Please make sure it is defined." >&5
23387 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23388 which seems to be undefined. Please make sure it is defined." >&2;}
23392 -) cat "$tmp/out"; rm -f "$tmp/out";;
23393 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23402 # Transform confdefs.h into a sed script `conftest.defines', that
23403 # substitutes the proper values into config.h.in to produce config.h.
23404 rm -f conftest.defines conftest.tail
23405 # First, append a space to every undef/define line, to ease matching.
23406 echo 's/$/ /' >conftest.defines
23407 # Then, protect against being on the right side of a sed subst, or in
23408 # an unquoted here document, in config.status. If some macros were
23409 # called several times there might be several #defines for the same
23410 # symbol, which is useless. But do not sort them, since the last
23411 # AC_DEFINE must be honored.
23412 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23413 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23414 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23415 # PARAMS is the parameter list in the macro definition--in most cases, it's
23416 # just an empty string.
23417 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23418 ac_dB='\\)[ (].*,\\1define\\2'
23426 s/^[ ]*#[ ]*define[ ][ ]*//
23431 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23432 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23433 ' >>conftest.defines
23435 # Remove the space that was appended to ease matching.
23436 # Then replace #undef with comments. This is necessary, for
23437 # example, in the case of _POSIX_SOURCE, which is predefined and required
23438 # on some systems where configure will not decide to define it.
23439 # (The regexp can be short, since the line contains either #define or #undef.)
23441 s,^[ #]*u.*,/* & */,' >>conftest.defines
23443 # Break up conftest.defines:
23444 ac_max_sed_lines=50
23446 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23447 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23448 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23450 ac_in='$ac_file_inputs'
23451 ac_out='"$tmp/out1"'
23452 ac_nxt='"$tmp/out2"'
23456 # Write a here document:
23457 cat >>$CONFIG_STATUS <<_ACEOF
23458 # First, check the format of the line:
23459 cat >"\$tmp/defines.sed" <<\\CEOF
23460 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23461 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23465 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23467 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23468 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23469 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23470 grep . conftest.tail >/dev/null || break
23471 rm -f conftest.defines
23472 mv conftest.tail conftest.defines
23474 rm -f conftest.defines conftest.tail
23476 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23477 cat >>$CONFIG_STATUS <<\_ACEOF
23478 if test x"$ac_file" != x-; then
23479 echo "/* $configure_input */" >"$tmp/config.h"
23480 cat "$ac_result" >>"$tmp/config.h"
23481 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23482 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23483 echo "$as_me: $ac_file is unchanged" >&6;}
23486 mv "$tmp/config.h" $ac_file
23489 echo "/* $configure_input */"
23493 # Compute $ac_file's index in $config_headers.
23495 for _am_header in $config_headers :; do
23496 case $_am_header in
23497 $ac_file | $ac_file:* )
23500 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23503 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23504 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23505 X$ac_file : 'X\(//\)[^/]' \| \
23506 X$ac_file : 'X\(//\)$' \| \
23507 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23513 /^X\(\/\/\)[^/].*/{
23525 s/.*/./; q'`/stamp-h$_am_stamp_count
23528 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23529 echo "$as_me: executing $ac_file commands" >&6;}
23534 case $ac_file$ac_mode in
23535 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23536 # Strip MF so we end up with the name of the file.
23537 mf=`echo "$mf" | sed -e 's/:.*$//'`
23538 # Check whether this is an Automake generated Makefile or not.
23539 # We used to match only the files named `Makefile.in', but
23540 # some people rename them; so instead we look at the file content.
23541 # Grep'ing the first line is not enough: some people post-process
23542 # each Makefile.in and add a new line on top of each file to say so.
23543 # So let's grep whole file.
23544 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23545 dirpart=`$as_dirname -- "$mf" ||
23546 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23547 X"$mf" : 'X\(//\)[^/]' \| \
23548 X"$mf" : 'X\(//\)$' \| \
23549 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23555 /^X\(\/\/\)[^/].*/{
23571 grep '^DEP_FILES *= *[^ @%:@]' < "$mf" > /dev/null || continue
23572 # Extract the definition of DEP_FILES from the Makefile without
23574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23575 test -z "$DEPDIR" && continue
23576 # When using ansi2knr, U may be empty or an underscore; expand it
23577 U=`sed -n 's/^U = //p' < "$mf"`
23578 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23579 # We invoke sed twice because it is the simplest approach to
23580 # changing $(DEPDIR) to its actual value in the expansion.
23581 for file in `sed -n '
23582 /^DEP_FILES = .*\\\\$/ {
23591 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23592 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23593 # Make sure the directory exists.
23594 test -f "$dirpart/$file" && continue
23595 fdir=`$as_dirname -- "$file" ||
23596 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23597 X"$file" : 'X\(//\)[^/]' \| \
23598 X"$file" : 'X\(//\)$' \| \
23599 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23605 /^X\(\/\/\)[^/].*/{
23618 { as_dir=$dirpart/$fdir
23620 -*) as_dir=./$as_dir;;
23622 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23626 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23627 *) as_qdir=$as_dir;;
23629 as_dirs="'$as_qdir' $as_dirs"
23630 as_dir=`$as_dirname -- "$as_dir" ||
23631 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23632 X"$as_dir" : 'X\(//\)[^/]' \| \
23633 X"$as_dir" : 'X\(//\)$' \| \
23634 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23640 /^X\(\/\/\)[^/].*/{
23653 test -d "$as_dir" && break
23655 test -z "$as_dirs" || eval "mkdir $as_dirs"
23656 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23657 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23658 { (exit 1); exit 1; }; }; }
23659 # echo "creating $dirpart/$file"
23660 echo '# dummy' > "$dirpart/$file"
23669 { (exit 0); exit 0; }
23671 chmod +x $CONFIG_STATUS
23672 ac_clean_files=$ac_clean_files_save
23675 # configure is writing to config.log, and then calls config.status.
23676 # config.status does its own redirection, appending to config.log.
23677 # Unfortunately, on DOS this fails, as config.log is still kept open
23678 # by configure, so config.status won't be able to write to it; its
23679 # output is simply discarded. So we exec the FD to /dev/null,
23680 # effectively closing config.log, so it can be properly (re)opened and
23681 # appended to by config.status. When coming back to configure, we
23682 # need to make the FD available again.
23683 if test "$no_create" != yes; then
23685 ac_config_status_args=
23686 test "$silent" = yes &&
23687 ac_config_status_args="$ac_config_status_args --quiet"
23689 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23691 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23692 # would make configure fail if this is the last instruction.
23693 $ac_cs_success || { (exit 1); exit 1; }
23700 echo " $PACKAGE $VERSION"
23701 echo " ==================="
23703 echo " Debug messages: ${enable_debug}"
23704 echo " Plug-ins directory: ${pluginsdir}"
23705 echo " Services directory: ${servicesdir}"