| 5696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 5697 | $as_echo_n "checking for fgrep... " >&6; } |
| 5698 | if ${ac_cv_path_FGREP+:} false; then : |
| 5699 | $as_echo_n "(cached) " >&6 |
| 5700 | else |
| 5701 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 5702 | then ac_cv_path_FGREP="$GREP -F" |
| 5703 | else |
| 5704 | if test -z "$FGREP"; then |
| 5705 | ac_path_FGREP_found=false |
| 5706 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5708 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5709 | do |
| 5710 | IFS=$as_save_IFS |
| 5711 | test -z "$as_dir" && as_dir=. |
| 5712 | for ac_prog in fgrep; do |
| 5713 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5714 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5715 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 5716 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 5717 | # Check for GNU $ac_path_FGREP |
| 5718 | case `"$ac_path_FGREP" --version 2>&1` in |
| 5719 | *GNU*) |
| 5720 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 5721 | *) |
| 5722 | ac_count=0 |
| 5723 | $as_echo_n 0123456789 >"conftest.in" |
| 5724 | while : |
| 5725 | do |
| 5726 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5727 | mv "conftest.tmp" "conftest.in" |
| 5728 | cp "conftest.in" "conftest.nl" |
| 5729 | $as_echo 'FGREP' >> "conftest.nl" |
| 5730 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5731 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5732 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5733 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 5734 | # Best one so far, save it but keep looking for a better one |
| 5735 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 5736 | ac_path_FGREP_max=$ac_count |
| 5737 | fi |
| 5738 | # 10*(2^10) chars as input seems more than enough |
| 5739 | test $ac_count -gt 10 && break |
| 5740 | done |
| 5741 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5742 | esac |
| 5743 | |
| 5744 | $ac_path_FGREP_found && break 3 |
| 5745 | done |
| 5746 | done |
| 5747 | done |
| 5748 | IFS=$as_save_IFS |
| 5749 | if test -z "$ac_cv_path_FGREP"; then |
| 5750 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5751 | fi |
| 5752 | else |
| 5753 | ac_cv_path_FGREP=$FGREP |
| 5754 | fi |
| 5755 | |
| 5756 | fi |
| 5757 | fi |
| 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5759 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5760 | FGREP="$ac_cv_path_FGREP" |
| 5761 | |
| 5762 | |
| 5763 | test -z "$GREP" && GREP=grep |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | |
| 5775 | |
| 5776 | |
| 5777 | |
| 5778 | |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | # Check whether --with-gnu-ld was given. |
| 5784 | if test "${with_gnu_ld+set}" = set; then : |
| 5785 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 5786 | else |
| 5787 | with_gnu_ld=no |
| 5788 | fi |
| 5789 | |
| 5790 | ac_prog=ld |
| 5791 | if test yes = "$GCC"; then |
| 5792 | # Check if gcc -print-prog-name=ld gives a path. |
| 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5794 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5795 | case $host in |
| 5796 | *-*-mingw*) |
| 5797 | # gcc leaves a trailing carriage return, which upsets mingw |
| 5798 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5799 | *) |
| 5800 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5801 | esac |
| 5802 | case $ac_prog in |
| 5803 | # Accept absolute paths. |
| 5804 | [\\/]* | ?:[\\/]*) |
| 5805 | re_direlt='/[^/][^/]*/\.\./' |
| 5806 | # Canonicalize the pathname of ld |
| 5807 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5808 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5809 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5810 | done |
| 5811 | test -z "$LD" && LD=$ac_prog |
| 5812 | ;; |
| 5813 | "") |
| 5814 | # If it fails, then pretend we aren't using GCC. |
| 5815 | ac_prog=ld |
| 5816 | ;; |
| 5817 | *) |
| 5818 | # If it is relative, then search for the first ld in PATH. |
| 5819 | with_gnu_ld=unknown |
| 5820 | ;; |
| 5821 | esac |
| 5822 | elif test yes = "$with_gnu_ld"; then |
| 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5824 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5825 | else |
| 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5827 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5828 | fi |
| 5829 | if ${lt_cv_path_LD+:} false; then : |
| 5830 | $as_echo_n "(cached) " >&6 |
| 5831 | else |
| 5832 | if test -z "$LD"; then |
| 5833 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 5834 | for ac_dir in $PATH; do |
| 5835 | IFS=$lt_save_ifs |
| 5836 | test -z "$ac_dir" && ac_dir=. |
| 5837 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5838 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 5839 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5840 | # but apparently some variants of GNU ld only accept -v. |
| 5841 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5842 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5843 | *GNU* | *'with BFD'*) |
| 5844 | test no != "$with_gnu_ld" && break |
| 5845 | ;; |
| 5846 | *) |
| 5847 | test yes != "$with_gnu_ld" && break |
| 5848 | ;; |
| 5849 | esac |
| 5850 | fi |
| 5851 | done |
| 5852 | IFS=$lt_save_ifs |
| 5853 | else |
| 5854 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 5855 | fi |
| 5856 | fi |
| 5857 | |
| 5858 | LD=$lt_cv_path_LD |
| 5859 | if test -n "$LD"; then |
| 5860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5861 | $as_echo "$LD" >&6; } |
| 5862 | else |
| 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5864 | $as_echo "no" >&6; } |
| 5865 | fi |
| 5866 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5868 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5869 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5870 | $as_echo_n "(cached) " >&6 |
| 5871 | else |
| 5872 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5873 | case `$LD -v 2>&1 </dev/null` in |
| 5874 | *GNU* | *'with BFD'*) |
| 5875 | lt_cv_prog_gnu_ld=yes |
| 5876 | ;; |
| 5877 | *) |
| 5878 | lt_cv_prog_gnu_ld=no |
| 5879 | ;; |
| 5880 | esac |
| 5881 | fi |
| 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5883 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5884 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5885 | |
| 5886 | |
| 5887 | |
| 5888 | |
| 5889 | |
| 5890 | |
| 5891 | |
| 5892 | |
| 5893 | |
| 5894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5895 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5896 | if ${lt_cv_path_NM+:} false; then : |
| 5897 | $as_echo_n "(cached) " >&6 |
| 5898 | else |
| 5899 | if test -n "$NM"; then |
| 5900 | # Let the user override the test. |
| 5901 | lt_cv_path_NM=$NM |
| 5902 | else |
| 5903 | lt_nm_to_check=${ac_tool_prefix}nm |
| 5904 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5905 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5906 | fi |
| 5907 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5908 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 5909 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5910 | IFS=$lt_save_ifs |
| 5911 | test -z "$ac_dir" && ac_dir=. |
| 5912 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 5913 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 5914 | # Check to see if the nm accepts a BSD-compat flag. |
| 5915 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 5916 | # nm: unknown option "B" ignored |
| 5917 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5918 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 5919 | case $build_os in |
| 5920 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 5921 | *) lt_bad_file=/dev/null ;; |
| 5922 | esac |
| 5923 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 5924 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 5925 | lt_cv_path_NM="$tmp_nm -B" |
| 5926 | break 2 |
| 5927 | ;; |
| 5928 | *) |
| 5929 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5930 | */dev/null*) |
| 5931 | lt_cv_path_NM="$tmp_nm -p" |
| 5932 | break 2 |
| 5933 | ;; |
| 5934 | *) |
| 5935 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5936 | continue # so that we can try to find one that supports BSD flags |
| 5937 | ;; |
| 5938 | esac |
| 5939 | ;; |
| 5940 | esac |
| 5941 | fi |
| 5942 | done |
| 5943 | IFS=$lt_save_ifs |
| 5944 | done |
| 5945 | : ${lt_cv_path_NM=no} |
| 5946 | fi |
| 5947 | fi |
| 5948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5949 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5950 | if test no != "$lt_cv_path_NM"; then |
| 5951 | NM=$lt_cv_path_NM |
| 5952 | else |
| 5953 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5954 | if test -n "$DUMPBIN"; then : |
| 5955 | # Let the user override the test. |
| 5956 | else |
| 5957 | if test -n "$ac_tool_prefix"; then |
| 5958 | for ac_prog in dumpbin "link -dump" |
| 5959 | do |
| 5960 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5961 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5963 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5964 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5965 | $as_echo_n "(cached) " >&6 |
| 5966 | else |
| 5967 | if test -n "$DUMPBIN"; then |
| 5968 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5969 | else |
| 5970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5971 | for as_dir in $PATH |
| 5972 | do |
| 5973 | IFS=$as_save_IFS |
| 5974 | test -z "$as_dir" && as_dir=. |
| 5975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5977 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5979 | break 2 |
| 5980 | fi |
| 5981 | done |
| 5982 | done |
| 5983 | IFS=$as_save_IFS |
| 5984 | |
| 5985 | fi |
| 5986 | fi |
| 5987 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5988 | if test -n "$DUMPBIN"; then |
| 5989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5990 | $as_echo "$DUMPBIN" >&6; } |
| 5991 | else |
| 5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5993 | $as_echo "no" >&6; } |
| 5994 | fi |
| 5995 | |
| 5996 | |
| 5997 | test -n "$DUMPBIN" && break |
| 5998 | done |
| 5999 | fi |
| 6000 | if test -z "$DUMPBIN"; then |
| 6001 | ac_ct_DUMPBIN=$DUMPBIN |
| 6002 | for ac_prog in dumpbin "link -dump" |
| 6003 | do |
| 6004 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6005 | set dummy $ac_prog; ac_word=$2 |
| 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6007 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6008 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 6009 | $as_echo_n "(cached) " >&6 |
| 6010 | else |
| 6011 | if test -n "$ac_ct_DUMPBIN"; then |
| 6012 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 6013 | else |
| 6014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6015 | for as_dir in $PATH |
| 6016 | do |
| 6017 | IFS=$as_save_IFS |
| 6018 | test -z "$as_dir" && as_dir=. |
| 6019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6020 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6021 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 6022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6023 | break 2 |
| 6024 | fi |
| 6025 | done |
| 6026 | done |
| 6027 | IFS=$as_save_IFS |
| 6028 | |
| 6029 | fi |
| 6030 | fi |
| 6031 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 6032 | if test -n "$ac_ct_DUMPBIN"; then |
| 6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 6034 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 6035 | else |
| 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6037 | $as_echo "no" >&6; } |
| 6038 | fi |
| 6039 | |
| 6040 | |
| 6041 | test -n "$ac_ct_DUMPBIN" && break |
| 6042 | done |
| 6043 | |
| 6044 | if test "x$ac_ct_DUMPBIN" = x; then |
| 6045 | DUMPBIN=":" |
| 6046 | else |
| 6047 | case $cross_compiling:$ac_tool_warned in |
| 6048 | yes:) |
| 6049 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6050 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6051 | ac_tool_warned=yes ;; |
| 6052 | esac |
| 6053 | DUMPBIN=$ac_ct_DUMPBIN |
| 6054 | fi |
| 6055 | fi |
| 6056 | |
| 6057 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 6058 | *COFF*) |
| 6059 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 6060 | ;; |
| 6061 | *) |
| 6062 | DUMPBIN=: |
| 6063 | ;; |
| 6064 | esac |
| 6065 | fi |
| 6066 | |
| 6067 | if test : != "$DUMPBIN"; then |
| 6068 | NM=$DUMPBIN |
| 6069 | fi |
| 6070 | fi |
| 6071 | test -z "$NM" && NM=nm |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 6079 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 6080 | if ${lt_cv_nm_interface+:} false; then : |
| 6081 | $as_echo_n "(cached) " >&6 |
| 6082 | else |
| 6083 | lt_cv_nm_interface="BSD nm" |
| 6084 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 6085 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 6086 | (eval "$ac_compile" 2>conftest.err) |
| 6087 | cat conftest.err >&5 |
| 6088 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 6089 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 6090 | cat conftest.err >&5 |
| 6091 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 6092 | cat conftest.out >&5 |
| 6093 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 6094 | lt_cv_nm_interface="MS dumpbin" |
| 6095 | fi |
| 6096 | rm -f conftest* |
| 6097 | fi |
| 6098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 6099 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 6100 | |
| 6101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 6102 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 6103 | LN_S=$as_ln_s |
| 6104 | if test "$LN_S" = "ln -s"; then |
| 6105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6106 | $as_echo "yes" >&6; } |
| 6107 | else |
| 6108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 6109 | $as_echo "no, using $LN_S" >&6; } |
| 6110 | fi |
| 6111 | |
| 6112 | # find the maximum length of command line arguments |
| 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 6114 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 6115 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 6116 | $as_echo_n "(cached) " >&6 |
| 6117 | else |
| 6118 | i=0 |
| 6119 | teststring=ABCD |
| 6120 | |
| 6121 | case $build_os in |
| 6122 | msdosdjgpp*) |
| 6123 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6124 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6125 | # during glob expansion). Even if it were fixed, the result of this |
| 6126 | # check would be larger than it should be. |
| 6127 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6128 | ;; |
| 6129 | |
| 6130 | gnu*) |
| 6131 | # Under GNU Hurd, this test is not required because there is |
| 6132 | # no limit to the length of command line arguments. |
| 6133 | # Libtool will interpret -1 as no limit whatsoever |
| 6134 | lt_cv_sys_max_cmd_len=-1; |
| 6135 | ;; |
| 6136 | |
| 6137 | cygwin* | mingw* | cegcc*) |
| 6138 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6139 | # about 5 minutes as the teststring grows exponentially. |
| 6140 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6141 | # you end up with a "frozen" computer, even though with patience |
| 6142 | # the test eventually succeeds (with a max line length of 256k). |
| 6143 | # Instead, let's just punt: use the minimum linelength reported by |
| 6144 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6145 | lt_cv_sys_max_cmd_len=8192; |
| 6146 | ;; |
| 6147 | |
| 6148 | mint*) |
| 6149 | # On MiNT this can take a long time and run out of memory. |
| 6150 | lt_cv_sys_max_cmd_len=8192; |
| 6151 | ;; |
| 6152 | |
| 6153 | amigaos*) |
| 6154 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6155 | # So we just punt and use a minimum line length of 8192. |
| 6156 | lt_cv_sys_max_cmd_len=8192; |
| 6157 | ;; |
| 6158 | |
| 6159 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 6160 | # This has been around since 386BSD, at least. Likely further. |
| 6161 | if test -x /sbin/sysctl; then |
| 6162 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6163 | elif test -x /usr/sbin/sysctl; then |
| 6164 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6165 | else |
| 6166 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6167 | fi |
| 6168 | # And add a safety zone |
| 6169 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6170 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6171 | ;; |
| 6172 | |
| 6173 | interix*) |
| 6174 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6175 | lt_cv_sys_max_cmd_len=196608 |
| 6176 | ;; |
| 6177 | |
| 6178 | os2*) |
| 6179 | # The test takes a long time on OS/2. |
| 6180 | lt_cv_sys_max_cmd_len=8192 |
| 6181 | ;; |
| 6182 | |
| 6183 | osf*) |
| 6184 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6185 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6186 | # nice to cause kernel panics so lets avoid the loop below. |
| 6187 | # First set a reasonable default. |
| 6188 | lt_cv_sys_max_cmd_len=16384 |
| 6189 | # |
| 6190 | if test -x /sbin/sysconfig; then |
| 6191 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6192 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6193 | esac |
| 6194 | fi |
| 6195 | ;; |
| 6196 | sco3.2v5*) |
| 6197 | lt_cv_sys_max_cmd_len=102400 |
| 6198 | ;; |
| 6199 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6200 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6201 | if test -n "$kargmax"; then |
| 6202 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6203 | else |
| 6204 | lt_cv_sys_max_cmd_len=32768 |
| 6205 | fi |
| 6206 | ;; |
| 6207 | *) |
| 6208 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 6209 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 6210 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 6211 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6212 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6213 | else |
| 6214 | # Make teststring a little bigger before we do anything with it. |
| 6215 | # a 1K string should be a reasonable start. |
| 6216 | for i in 1 2 3 4 5 6 7 8; do |
| 6217 | teststring=$teststring$teststring |
| 6218 | done |
| 6219 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6220 | # If test is not a shell built-in, we'll probably end up computing a |
| 6221 | # maximum length that is only half of the actual maximum length, but |
| 6222 | # we can't tell. |
| 6223 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 6224 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 6225 | test 17 != "$i" # 1/2 MB should be enough |
| 6226 | do |
| 6227 | i=`expr $i + 1` |
| 6228 | teststring=$teststring$teststring |
| 6229 | done |
| 6230 | # Only check the string length outside the loop. |
| 6231 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 6232 | teststring= |
| 6233 | # Add a significant safety factor because C++ compilers can tack on |
| 6234 | # massive amounts of additional arguments before passing them to the |
| 6235 | # linker. It appears as though 1/2 is a usable value. |
| 6236 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6237 | fi |
| 6238 | ;; |
| 6239 | esac |
| 6240 | |
| 6241 | fi |
| 6242 | |
| 6243 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 6244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6245 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 6246 | else |
| 6247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 6248 | $as_echo "none" >&6; } |
| 6249 | fi |
| 6250 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 6251 | |
| 6252 | |
| 6253 | |
| 6254 | |
| 6255 | |
| 6256 | |
| 6257 | : ${CP="cp -f"} |
| 6258 | : ${MV="mv -f"} |
| 6259 | : ${RM="rm -f"} |
| 6260 | |
| 6261 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 6262 | lt_unset=unset |
| 6263 | else |
| 6264 | lt_unset=false |
| 6265 | fi |
| 6266 | |
| 6267 | |
| 6268 | |
| 6269 | |
| 6270 | |
| 6271 | # test EBCDIC or ASCII |
| 6272 | case `echo X|tr X '\101'` in |
| 6273 | A) # ASCII based system |
| 6274 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 6275 | lt_SP2NL='tr \040 \012' |
| 6276 | lt_NL2SP='tr \015\012 \040\040' |
| 6277 | ;; |
| 6278 | *) # EBCDIC based system |
| 6279 | lt_SP2NL='tr \100 \n' |
| 6280 | lt_NL2SP='tr \r\n \100\100' |
| 6281 | ;; |
| 6282 | esac |
| 6283 | |
| 6284 | |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 6293 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 6294 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 6295 | $as_echo_n "(cached) " >&6 |
| 6296 | else |
| 6297 | case $host in |
| 6298 | *-*-mingw* ) |
| 6299 | case $build in |
| 6300 | *-*-mingw* ) # actually msys |
| 6301 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 6302 | ;; |
| 6303 | *-*-cygwin* ) |
| 6304 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 6305 | ;; |
| 6306 | * ) # otherwise, assume *nix |
| 6307 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 6308 | ;; |
| 6309 | esac |
| 6310 | ;; |
| 6311 | *-*-cygwin* ) |
| 6312 | case $build in |
| 6313 | *-*-mingw* ) # actually msys |
| 6314 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 6315 | ;; |
| 6316 | *-*-cygwin* ) |
| 6317 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6318 | ;; |
| 6319 | * ) # otherwise, assume *nix |
| 6320 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 6321 | ;; |
| 6322 | esac |
| 6323 | ;; |
| 6324 | * ) # unhandled hosts (and "normal" native builds) |
| 6325 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 6326 | ;; |
| 6327 | esac |
| 6328 | |
| 6329 | fi |
| 6330 | |
| 6331 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 6333 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 6334 | |
| 6335 | |
| 6336 | |
| 6337 | |
| 6338 | |
| 6339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 6340 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 6341 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 6342 | $as_echo_n "(cached) " >&6 |
| 6343 | else |
| 6344 | #assume ordinary cross tools, or native build. |
| 6345 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 6346 | case $host in |
| 6347 | *-*-mingw* ) |
| 6348 | case $build in |
| 6349 | *-*-mingw* ) # actually msys |
| 6350 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 6351 | ;; |
| 6352 | esac |
| 6353 | ;; |
| 6354 | esac |
| 6355 | |
| 6356 | fi |
| 6357 | |
| 6358 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 6359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 6360 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 6367 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 6368 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 6369 | $as_echo_n "(cached) " >&6 |
| 6370 | else |
| 6371 | lt_cv_ld_reload_flag='-r' |
| 6372 | fi |
| 6373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 6374 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 6375 | reload_flag=$lt_cv_ld_reload_flag |
| 6376 | case $reload_flag in |
| 6377 | "" | " "*) ;; |
| 6378 | *) reload_flag=" $reload_flag" ;; |
| 6379 | esac |
| 6380 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6381 | case $host_os in |
| 6382 | cygwin* | mingw* | pw32* | cegcc*) |
| 6383 | if test yes != "$GCC"; then |
| 6384 | reload_cmds=false |
| 6385 | fi |
| 6386 | ;; |
| 6387 | darwin*) |
| 6388 | if test yes = "$GCC"; then |
| 6389 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 6390 | else |
| 6391 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 6392 | fi |
| 6393 | ;; |
| 6394 | esac |
| 6395 | |
| 6396 | |
| 6397 | |
| 6398 | |
| 6399 | |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
| 6404 | if test -n "$ac_tool_prefix"; then |
| 6405 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 6406 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6408 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6409 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 6410 | $as_echo_n "(cached) " >&6 |
| 6411 | else |
| 6412 | if test -n "$OBJDUMP"; then |
| 6413 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 6414 | else |
| 6415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6416 | for as_dir in $PATH |
| 6417 | do |
| 6418 | IFS=$as_save_IFS |
| 6419 | test -z "$as_dir" && as_dir=. |
| 6420 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6421 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6422 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 6423 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6424 | break 2 |
| 6425 | fi |
| 6426 | done |
| 6427 | done |
| 6428 | IFS=$as_save_IFS |
| 6429 | |
| 6430 | fi |
| 6431 | fi |
| 6432 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 6433 | if test -n "$OBJDUMP"; then |
| 6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 6435 | $as_echo "$OBJDUMP" >&6; } |
| 6436 | else |
| 6437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6438 | $as_echo "no" >&6; } |
| 6439 | fi |
| 6440 | |
| 6441 | |
| 6442 | fi |
| 6443 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 6444 | ac_ct_OBJDUMP=$OBJDUMP |
| 6445 | # Extract the first word of "objdump", so it can be a program name with args. |
| 6446 | set dummy objdump; ac_word=$2 |
| 6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6448 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6449 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 6450 | $as_echo_n "(cached) " >&6 |
| 6451 | else |
| 6452 | if test -n "$ac_ct_OBJDUMP"; then |
| 6453 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 6454 | else |
| 6455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6456 | for as_dir in $PATH |
| 6457 | do |
| 6458 | IFS=$as_save_IFS |
| 6459 | test -z "$as_dir" && as_dir=. |
| 6460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6461 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6462 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 6463 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6464 | break 2 |
| 6465 | fi |
| 6466 | done |
| 6467 | done |
| 6468 | IFS=$as_save_IFS |
| 6469 | |
| 6470 | fi |
| 6471 | fi |
| 6472 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 6473 | if test -n "$ac_ct_OBJDUMP"; then |
| 6474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 6475 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 6476 | else |
| 6477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6478 | $as_echo "no" >&6; } |
| 6479 | fi |
| 6480 | |
| 6481 | if test "x$ac_ct_OBJDUMP" = x; then |
| 6482 | OBJDUMP="false" |
| 6483 | else |
| 6484 | case $cross_compiling:$ac_tool_warned in |
| 6485 | yes:) |
| 6486 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6487 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6488 | ac_tool_warned=yes ;; |
| 6489 | esac |
| 6490 | OBJDUMP=$ac_ct_OBJDUMP |
| 6491 | fi |
| 6492 | else |
| 6493 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 6494 | fi |
| 6495 | |
| 6496 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 6497 | |
| 6498 | |
| 6499 | |
| 6500 | |
| 6501 | |
| 6502 | |
| 6503 | |
| 6504 | |
| 6505 | |
| 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 6507 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 6508 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 6509 | $as_echo_n "(cached) " >&6 |
| 6510 | else |
| 6511 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 6512 | lt_cv_file_magic_test_file= |
| 6513 | lt_cv_deplibs_check_method='unknown' |
| 6514 | # Need to set the preceding variable on all platforms that support |
| 6515 | # interlibrary dependencies. |
| 6516 | # 'none' -- dependencies not supported. |
| 6517 | # 'unknown' -- same as none, but documents that we really don't know. |
| 6518 | # 'pass_all' -- all dependencies passed with no checks. |
| 6519 | # 'test_compile' -- check by making test program. |
| 6520 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 6521 | # that responds to the $file_magic_cmd with a given extended regex. |
| 6522 | # If you have 'file' or equivalent on your system and you're not sure |
| 6523 | # whether 'pass_all' will *always* work, you probably want this one. |
| 6524 | |
| 6525 | case $host_os in |
| 6526 | aix[4-9]*) |
| 6527 | lt_cv_deplibs_check_method=pass_all |
| 6528 | ;; |
| 6529 | |
| 6530 | beos*) |
| 6531 | lt_cv_deplibs_check_method=pass_all |
| 6532 | ;; |
| 6533 | |
| 6534 | bsdi[45]*) |
| 6535 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 6536 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 6537 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 6538 | ;; |
| 6539 | |
| 6540 | cygwin*) |
| 6541 | # func_win32_libid is a shell function defined in ltmain.sh |
| 6542 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6543 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6544 | ;; |
| 6545 | |
| 6546 | mingw* | pw32*) |
| 6547 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 6548 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 6549 | # unless we find 'file', for example because we are cross-compiling. |
| 6550 | if ( file / ) >/dev/null 2>&1; then |
| 6551 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 6552 | lt_cv_file_magic_cmd='func_win32_libid' |
| 6553 | else |
| 6554 | # Keep this pattern in sync with the one in func_win32_libid. |
| 6555 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 6556 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6557 | fi |
| 6558 | ;; |
| 6559 | |
| 6560 | cegcc*) |
| 6561 | # use the weaker test based on 'objdump'. See mingw*. |
| 6562 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 6563 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 6564 | ;; |
| 6565 | |
| 6566 | darwin* | rhapsody*) |
| 6567 | lt_cv_deplibs_check_method=pass_all |
| 6568 | ;; |
| 6569 | |
| 6570 | freebsd* | dragonfly*) |
| 6571 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6572 | case $host_cpu in |
| 6573 | i*86 ) |
| 6574 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 6575 | # Let's accept both of them until this is cleared up. |
| 6576 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 6577 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6578 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 6579 | ;; |
| 6580 | esac |
| 6581 | else |
| 6582 | lt_cv_deplibs_check_method=pass_all |
| 6583 | fi |
| 6584 | ;; |
| 6585 | |
| 6586 | haiku*) |
| 6587 | lt_cv_deplibs_check_method=pass_all |
| 6588 | ;; |
| 6589 | |
| 6590 | hpux10.20* | hpux11*) |
| 6591 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6592 | case $host_cpu in |
| 6593 | ia64*) |
| 6594 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 6595 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 6596 | ;; |
| 6597 | hppa*64*) |
| 6598 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 6599 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 6600 | ;; |
| 6601 | *) |
| 6602 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 6603 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 6604 | ;; |
| 6605 | esac |
| 6606 | ;; |
| 6607 | |
| 6608 | interix[3-9]*) |
| 6609 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 6610 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 6611 | ;; |
| 6612 | |
| 6613 | irix5* | irix6* | nonstopux*) |
| 6614 | case $LD in |
| 6615 | *-32|*"-32 ") libmagic=32-bit;; |
| 6616 | *-n32|*"-n32 ") libmagic=N32;; |
| 6617 | *-64|*"-64 ") libmagic=64-bit;; |
| 6618 | *) libmagic=never-match;; |
| 6619 | esac |
| 6620 | lt_cv_deplibs_check_method=pass_all |
| 6621 | ;; |
| 6622 | |
| 6623 | # This must be glibc/ELF. |
| 6624 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 6625 | lt_cv_deplibs_check_method=pass_all |
| 6626 | ;; |
| 6627 | |
| 6628 | netbsd* | netbsdelf*-gnu) |
| 6629 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 6630 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6631 | else |
| 6632 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 6633 | fi |
| 6634 | ;; |
| 6635 | |
| 6636 | newos6*) |
| 6637 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 6638 | lt_cv_file_magic_cmd=/usr/bin/file |
| 6639 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 6640 | ;; |
| 6641 | |
| 6642 | *nto* | *qnx*) |
| 6643 | lt_cv_deplibs_check_method=pass_all |
| 6644 | ;; |
| 6645 | |
| 6646 | openbsd* | bitrig*) |
| 6647 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 6648 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 6649 | else |
| 6650 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 6651 | fi |
| 6652 | ;; |
| 6653 | |
| 6654 | osf3* | osf4* | osf5*) |
| 6655 | lt_cv_deplibs_check_method=pass_all |
| 6656 | ;; |
| 6657 | |
| 6658 | rdos*) |
| 6659 | lt_cv_deplibs_check_method=pass_all |
| 6660 | ;; |
| 6661 | |
| 6662 | solaris*) |
| 6663 | lt_cv_deplibs_check_method=pass_all |
| 6664 | ;; |
| 6665 | |
| 6666 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 6667 | lt_cv_deplibs_check_method=pass_all |
| 6668 | ;; |
| 6669 | |
| 6670 | sysv4 | sysv4.3*) |
| 6671 | case $host_vendor in |
| 6672 | motorola) |
| 6673 | 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]' |
| 6674 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 6675 | ;; |
| 6676 | ncr) |
| 6677 | lt_cv_deplibs_check_method=pass_all |
| 6678 | ;; |
| 6679 | sequent) |
| 6680 | lt_cv_file_magic_cmd='/bin/file' |
| 6681 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 6682 | ;; |
| 6683 | sni) |
| 6684 | lt_cv_file_magic_cmd='/bin/file' |
| 6685 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 6686 | lt_cv_file_magic_test_file=/lib/libc.so |
| 6687 | ;; |
| 6688 | siemens) |
| 6689 | lt_cv_deplibs_check_method=pass_all |
| 6690 | ;; |
| 6691 | pc) |
| 6692 | lt_cv_deplibs_check_method=pass_all |
| 6693 | ;; |
| 6694 | esac |
| 6695 | ;; |
| 6696 | |
| 6697 | tpf*) |
| 6698 | lt_cv_deplibs_check_method=pass_all |
| 6699 | ;; |
| 6700 | os2*) |
| 6701 | lt_cv_deplibs_check_method=pass_all |
| 6702 | ;; |
| 6703 | esac |
| 6704 | |
| 6705 | fi |
| 6706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 6707 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 6708 | |
| 6709 | file_magic_glob= |
| 6710 | want_nocaseglob=no |
| 6711 | if test "$build" = "$host"; then |
| 6712 | case $host_os in |
| 6713 | mingw* | pw32*) |
| 6714 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 6715 | want_nocaseglob=yes |
| 6716 | else |
| 6717 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 6718 | fi |
| 6719 | ;; |
| 6720 | esac |
| 6721 | fi |
| 6722 | |
| 6723 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 6724 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 6725 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 6726 | |
| 6727 | |
| 6728 | |
| 6729 | |
| 6730 | |
| 6731 | |
| 6732 | |
| 6733 | |
| 6734 | |
| 6735 | |
| 6736 | |
| 6737 | |
| 6738 | |
| 6739 | |
| 6740 | |
| 6741 | |
| 6742 | |
| 6743 | |
| 6744 | |
| 6745 | |
| 6746 | |
| 6747 | |
| 6748 | if test -n "$ac_tool_prefix"; then |
| 6749 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6750 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6752 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6753 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 6754 | $as_echo_n "(cached) " >&6 |
| 6755 | else |
| 6756 | if test -n "$DLLTOOL"; then |
| 6757 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6758 | else |
| 6759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6760 | for as_dir in $PATH |
| 6761 | do |
| 6762 | IFS=$as_save_IFS |
| 6763 | test -z "$as_dir" && as_dir=. |
| 6764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6766 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 6767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6768 | break 2 |
| 6769 | fi |
| 6770 | done |
| 6771 | done |
| 6772 | IFS=$as_save_IFS |
| 6773 | |
| 6774 | fi |
| 6775 | fi |
| 6776 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6777 | if test -n "$DLLTOOL"; then |
| 6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 6779 | $as_echo "$DLLTOOL" >&6; } |
| 6780 | else |
| 6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6782 | $as_echo "no" >&6; } |
| 6783 | fi |
| 6784 | |
| 6785 | |
| 6786 | fi |
| 6787 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6788 | ac_ct_DLLTOOL=$DLLTOOL |
| 6789 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6790 | set dummy dlltool; ac_word=$2 |
| 6791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6792 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6793 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 6794 | $as_echo_n "(cached) " >&6 |
| 6795 | else |
| 6796 | if test -n "$ac_ct_DLLTOOL"; then |
| 6797 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6798 | else |
| 6799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6800 | for as_dir in $PATH |
| 6801 | do |
| 6802 | IFS=$as_save_IFS |
| 6803 | test -z "$as_dir" && as_dir=. |
| 6804 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6805 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6806 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 6807 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6808 | break 2 |
| 6809 | fi |
| 6810 | done |
| 6811 | done |
| 6812 | IFS=$as_save_IFS |
| 6813 | |
| 6814 | fi |
| 6815 | fi |
| 6816 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6817 | if test -n "$ac_ct_DLLTOOL"; then |
| 6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 6819 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 6820 | else |
| 6821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6822 | $as_echo "no" >&6; } |
| 6823 | fi |
| 6824 | |
| 6825 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6826 | DLLTOOL="false" |
| 6827 | else |
| 6828 | case $cross_compiling:$ac_tool_warned in |
| 6829 | yes:) |
| 6830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6832 | ac_tool_warned=yes ;; |
| 6833 | esac |
| 6834 | DLLTOOL=$ac_ct_DLLTOOL |
| 6835 | fi |
| 6836 | else |
| 6837 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6838 | fi |
| 6839 | |
| 6840 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6841 | |
| 6842 | |
| 6843 | |
| 6844 | |
| 6845 | |
| 6846 | |
| 6847 | |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 6852 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 6853 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 6854 | $as_echo_n "(cached) " >&6 |
| 6855 | else |
| 6856 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 6857 | |
| 6858 | case $host_os in |
| 6859 | cygwin* | mingw* | pw32* | cegcc*) |
| 6860 | # two different shell functions defined in ltmain.sh; |
| 6861 | # decide which one to use based on capabilities of $DLLTOOL |
| 6862 | case `$DLLTOOL --help 2>&1` in |
| 6863 | *--identify-strict*) |
| 6864 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6865 | ;; |
| 6866 | *) |
| 6867 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 6868 | ;; |
| 6869 | esac |
| 6870 | ;; |
| 6871 | *) |
| 6872 | # fallback: assume linklib IS sharedlib |
| 6873 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 6874 | ;; |
| 6875 | esac |
| 6876 | |
| 6877 | fi |
| 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6879 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6880 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6881 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6882 | |
| 6883 | |
| 6884 | |
| 6885 | |
| 6886 | |
| 6887 | |
| 6888 | |
| 6889 | if test -n "$ac_tool_prefix"; then |
| 6890 | for ac_prog in ar |
| 6891 | do |
| 6892 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6893 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6895 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6896 | if ${ac_cv_prog_AR+:} false; then : |
| 6897 | $as_echo_n "(cached) " >&6 |
| 6898 | else |
| 6899 | if test -n "$AR"; then |
| 6900 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6901 | else |
| 6902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6903 | for as_dir in $PATH |
| 6904 | do |
| 6905 | IFS=$as_save_IFS |
| 6906 | test -z "$as_dir" && as_dir=. |
| 6907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6909 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6911 | break 2 |
| 6912 | fi |
| 6913 | done |
| 6914 | done |
| 6915 | IFS=$as_save_IFS |
| 6916 | |
| 6917 | fi |
| 6918 | fi |
| 6919 | AR=$ac_cv_prog_AR |
| 6920 | if test -n "$AR"; then |
| 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6922 | $as_echo "$AR" >&6; } |
| 6923 | else |
| 6924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6925 | $as_echo "no" >&6; } |
| 6926 | fi |
| 6927 | |
| 6928 | |
| 6929 | test -n "$AR" && break |
| 6930 | done |
| 6931 | fi |
| 6932 | if test -z "$AR"; then |
| 6933 | ac_ct_AR=$AR |
| 6934 | for ac_prog in ar |
| 6935 | do |
| 6936 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6937 | set dummy $ac_prog; ac_word=$2 |
| 6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6939 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6940 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6941 | $as_echo_n "(cached) " >&6 |
| 6942 | else |
| 6943 | if test -n "$ac_ct_AR"; then |
| 6944 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6945 | else |
| 6946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6947 | for as_dir in $PATH |
| 6948 | do |
| 6949 | IFS=$as_save_IFS |
| 6950 | test -z "$as_dir" && as_dir=. |
| 6951 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6953 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6955 | break 2 |
| 6956 | fi |
| 6957 | done |
| 6958 | done |
| 6959 | IFS=$as_save_IFS |
| 6960 | |
| 6961 | fi |
| 6962 | fi |
| 6963 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6964 | if test -n "$ac_ct_AR"; then |
| 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6966 | $as_echo "$ac_ct_AR" >&6; } |
| 6967 | else |
| 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6969 | $as_echo "no" >&6; } |
| 6970 | fi |
| 6971 | |
| 6972 | |
| 6973 | test -n "$ac_ct_AR" && break |
| 6974 | done |
| 6975 | |
| 6976 | if test "x$ac_ct_AR" = x; then |
| 6977 | AR="false" |
| 6978 | else |
| 6979 | case $cross_compiling:$ac_tool_warned in |
| 6980 | yes:) |
| 6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6982 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6983 | ac_tool_warned=yes ;; |
| 6984 | esac |
| 6985 | AR=$ac_ct_AR |
| 6986 | fi |
| 6987 | fi |
| 6988 | |
| 6989 | : ${AR=ar} |
| 6990 | : ${AR_FLAGS=cru} |
| 6991 | |
| 6992 | |
| 6993 | |
| 6994 | |
| 6995 | |
| 6996 | |
| 6997 | |
| 6998 | |
| 6999 | |
| 7000 | |
| 7001 | |
| 7002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 7003 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 7004 | if ${lt_cv_ar_at_file+:} false; then : |
| 7005 | $as_echo_n "(cached) " >&6 |
| 7006 | else |
| 7007 | lt_cv_ar_at_file=no |
| 7008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7009 | /* end confdefs.h. */ |
| 7010 | |
| 7011 | int |
| 7012 | main () |
| 7013 | { |
| 7014 | |
| 7015 | ; |
| 7016 | return 0; |
| 7017 | } |
| 7018 | _ACEOF |
| 7019 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7020 | echo conftest.$ac_objext > conftest.lst |
| 7021 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 7022 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7023 | (eval $lt_ar_try) 2>&5 |
| 7024 | ac_status=$? |
| 7025 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7026 | test $ac_status = 0; } |
| 7027 | if test 0 -eq "$ac_status"; then |
| 7028 | # Ensure the archiver fails upon bogus file names. |
| 7029 | rm -f conftest.$ac_objext libconftest.a |
| 7030 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 7031 | (eval $lt_ar_try) 2>&5 |
| 7032 | ac_status=$? |
| 7033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7034 | test $ac_status = 0; } |
| 7035 | if test 0 -ne "$ac_status"; then |
| 7036 | lt_cv_ar_at_file=@ |
| 7037 | fi |
| 7038 | fi |
| 7039 | rm -f conftest.* libconftest.a |
| 7040 | |
| 7041 | fi |
| 7042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7043 | |
| 7044 | fi |
| 7045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 7046 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 7047 | |
| 7048 | if test no = "$lt_cv_ar_at_file"; then |
| 7049 | archiver_list_spec= |
| 7050 | else |
| 7051 | archiver_list_spec=$lt_cv_ar_at_file |
| 7052 | fi |
| 7053 | |
| 7054 | |
| 7055 | |
| 7056 | |
| 7057 | |
| 7058 | |
| 7059 | |
| 7060 | if test -n "$ac_tool_prefix"; then |
| 7061 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 7062 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7064 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7065 | if ${ac_cv_prog_STRIP+:} false; then : |
| 7066 | $as_echo_n "(cached) " >&6 |
| 7067 | else |
| 7068 | if test -n "$STRIP"; then |
| 7069 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7070 | else |
| 7071 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7072 | for as_dir in $PATH |
| 7073 | do |
| 7074 | IFS=$as_save_IFS |
| 7075 | test -z "$as_dir" && as_dir=. |
| 7076 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7077 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7078 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 7079 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7080 | break 2 |
| 7081 | fi |
| 7082 | done |
| 7083 | done |
| 7084 | IFS=$as_save_IFS |
| 7085 | |
| 7086 | fi |
| 7087 | fi |
| 7088 | STRIP=$ac_cv_prog_STRIP |
| 7089 | if test -n "$STRIP"; then |
| 7090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7091 | $as_echo "$STRIP" >&6; } |
| 7092 | else |
| 7093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7094 | $as_echo "no" >&6; } |
| 7095 | fi |
| 7096 | |
| 7097 | |
| 7098 | fi |
| 7099 | if test -z "$ac_cv_prog_STRIP"; then |
| 7100 | ac_ct_STRIP=$STRIP |
| 7101 | # Extract the first word of "strip", so it can be a program name with args. |
| 7102 | set dummy strip; ac_word=$2 |
| 7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7104 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7105 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 7106 | $as_echo_n "(cached) " >&6 |
| 7107 | else |
| 7108 | if test -n "$ac_ct_STRIP"; then |
| 7109 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7110 | else |
| 7111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7112 | for as_dir in $PATH |
| 7113 | do |
| 7114 | IFS=$as_save_IFS |
| 7115 | test -z "$as_dir" && as_dir=. |
| 7116 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7118 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7120 | break 2 |
| 7121 | fi |
| 7122 | done |
| 7123 | done |
| 7124 | IFS=$as_save_IFS |
| 7125 | |
| 7126 | fi |
| 7127 | fi |
| 7128 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7129 | if test -n "$ac_ct_STRIP"; then |
| 7130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7131 | $as_echo "$ac_ct_STRIP" >&6; } |
| 7132 | else |
| 7133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7134 | $as_echo "no" >&6; } |
| 7135 | fi |
| 7136 | |
| 7137 | if test "x$ac_ct_STRIP" = x; then |
| 7138 | STRIP=":" |
| 7139 | else |
| 7140 | case $cross_compiling:$ac_tool_warned in |
| 7141 | yes:) |
| 7142 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7143 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7144 | ac_tool_warned=yes ;; |
| 7145 | esac |
| 7146 | STRIP=$ac_ct_STRIP |
| 7147 | fi |
| 7148 | else |
| 7149 | STRIP="$ac_cv_prog_STRIP" |
| 7150 | fi |
| 7151 | |
| 7152 | test -z "$STRIP" && STRIP=: |
| 7153 | |
| 7154 | |
| 7155 | |
| 7156 | |
| 7157 | |
| 7158 | |
| 7159 | if test -n "$ac_tool_prefix"; then |
| 7160 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7161 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7163 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7164 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 7165 | $as_echo_n "(cached) " >&6 |
| 7166 | else |
| 7167 | if test -n "$RANLIB"; then |
| 7168 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7169 | else |
| 7170 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7171 | for as_dir in $PATH |
| 7172 | do |
| 7173 | IFS=$as_save_IFS |
| 7174 | test -z "$as_dir" && as_dir=. |
| 7175 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7176 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7177 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7178 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7179 | break 2 |
| 7180 | fi |
| 7181 | done |
| 7182 | done |
| 7183 | IFS=$as_save_IFS |
| 7184 | |
| 7185 | fi |
| 7186 | fi |
| 7187 | RANLIB=$ac_cv_prog_RANLIB |
| 7188 | if test -n "$RANLIB"; then |
| 7189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7190 | $as_echo "$RANLIB" >&6; } |
| 7191 | else |
| 7192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7193 | $as_echo "no" >&6; } |
| 7194 | fi |
| 7195 | |
| 7196 | |
| 7197 | fi |
| 7198 | if test -z "$ac_cv_prog_RANLIB"; then |
| 7199 | ac_ct_RANLIB=$RANLIB |
| 7200 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 7201 | set dummy ranlib; ac_word=$2 |
| 7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7203 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7204 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 7205 | $as_echo_n "(cached) " >&6 |
| 7206 | else |
| 7207 | if test -n "$ac_ct_RANLIB"; then |
| 7208 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7209 | else |
| 7210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7211 | for as_dir in $PATH |
| 7212 | do |
| 7213 | IFS=$as_save_IFS |
| 7214 | test -z "$as_dir" && as_dir=. |
| 7215 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7216 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7217 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7219 | break 2 |
| 7220 | fi |
| 7221 | done |
| 7222 | done |
| 7223 | IFS=$as_save_IFS |
| 7224 | |
| 7225 | fi |
| 7226 | fi |
| 7227 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7228 | if test -n "$ac_ct_RANLIB"; then |
| 7229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7230 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 7231 | else |
| 7232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7233 | $as_echo "no" >&6; } |
| 7234 | fi |
| 7235 | |
| 7236 | if test "x$ac_ct_RANLIB" = x; then |
| 7237 | RANLIB=":" |
| 7238 | else |
| 7239 | case $cross_compiling:$ac_tool_warned in |
| 7240 | yes:) |
| 7241 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7242 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7243 | ac_tool_warned=yes ;; |
| 7244 | esac |
| 7245 | RANLIB=$ac_ct_RANLIB |
| 7246 | fi |
| 7247 | else |
| 7248 | RANLIB="$ac_cv_prog_RANLIB" |
| 7249 | fi |
| 7250 | |
| 7251 | test -z "$RANLIB" && RANLIB=: |
| 7252 | |
| 7253 | |
| 7254 | |
| 7255 | |
| 7256 | |
| 7257 | |
| 7258 | # Determine commands to create old-style static archives. |
| 7259 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 7260 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7261 | old_postuninstall_cmds= |
| 7262 | |
| 7263 | if test -n "$RANLIB"; then |
| 7264 | case $host_os in |
| 7265 | bitrig* | openbsd*) |
| 7266 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 7267 | ;; |
| 7268 | *) |
| 7269 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 7270 | ;; |
| 7271 | esac |
| 7272 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 7273 | fi |
| 7274 | |
| 7275 | case $host_os in |
| 7276 | darwin*) |
| 7277 | lock_old_archive_extraction=yes ;; |
| 7278 | *) |
| 7279 | lock_old_archive_extraction=no ;; |
| 7280 | esac |
| 7281 | |
| 7282 | |
| 7283 | |
| 7284 | |
| 7285 | |
| 7286 | |
| 7287 | |
| 7288 | |
| 7289 | |
| 7290 | |
| 7291 | |
| 7292 | |
| 7293 | |
| 7294 | |
| 7295 | |
| 7296 | |
| 7297 | |
| 7298 | |
| 7299 | |
| 7300 | |
| 7301 | |
| 7302 | |
| 7303 | |
| 7304 | |
| 7305 | |
| 7306 | |
| 7307 | |
| 7308 | |
| 7309 | |
| 7310 | |
| 7311 | |
| 7312 | |
| 7313 | |
| 7314 | |
| 7315 | |
| 7316 | |
| 7317 | |
| 7318 | |
| 7319 | |
| 7320 | # If no C compiler was specified, use CC. |
| 7321 | LTCC=${LTCC-"$CC"} |
| 7322 | |
| 7323 | # If no C compiler flags were specified, use CFLAGS. |
| 7324 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7325 | |
| 7326 | # Allow CC to be a program name with arguments. |
| 7327 | compiler=$CC |
| 7328 | |
| 7329 | |
| 7330 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 7332 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 7333 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 7334 | $as_echo_n "(cached) " >&6 |
| 7335 | else |
| 7336 | |
| 7337 | # These are sane defaults that work on at least a few old systems. |
| 7338 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 7339 | |
| 7340 | # Character class describing NM global symbol codes. |
| 7341 | symcode='[BCDEGRST]' |
| 7342 | |
| 7343 | # Regexp to match symbols that can be accessed directly from C. |
| 7344 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 7345 | |
| 7346 | # Define system-specific variables. |
| 7347 | case $host_os in |
| 7348 | aix*) |
| 7349 | symcode='[BCDT]' |
| 7350 | ;; |
| 7351 | cygwin* | mingw* | pw32* | cegcc*) |
| 7352 | symcode='[ABCDGISTW]' |
| 7353 | ;; |
| 7354 | hpux*) |
| 7355 | if test ia64 = "$host_cpu"; then |
| 7356 | symcode='[ABCDEGRST]' |
| 7357 | fi |
| 7358 | ;; |
| 7359 | irix* | nonstopux*) |
| 7360 | symcode='[BCDEGRST]' |
| 7361 | ;; |
| 7362 | osf*) |
| 7363 | symcode='[BCDEGQRST]' |
| 7364 | ;; |
| 7365 | solaris*) |
| 7366 | symcode='[BDRT]' |
| 7367 | ;; |
| 7368 | sco3.2v5*) |
| 7369 | symcode='[DT]' |
| 7370 | ;; |
| 7371 | sysv4.2uw2*) |
| 7372 | symcode='[DT]' |
| 7373 | ;; |
| 7374 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 7375 | symcode='[ABDT]' |
| 7376 | ;; |
| 7377 | sysv4) |
| 7378 | symcode='[DFNSTU]' |
| 7379 | ;; |
| 7380 | esac |
| 7381 | |
| 7382 | # If we're using GNU nm, then use its standard symbol codes. |
| 7383 | case `$NM -V 2>&1` in |
| 7384 | *GNU* | *'with BFD'*) |
| 7385 | symcode='[ABCDGIRSTW]' ;; |
| 7386 | esac |
| 7387 | |
| 7388 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7389 | # Gets list of data symbols to import. |
| 7390 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 7391 | # Adjust the below global symbol transforms to fixup imported variables. |
| 7392 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 7393 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 7394 | lt_c_name_lib_hook="\ |
| 7395 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 7396 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 7397 | else |
| 7398 | # Disable hooks by default. |
| 7399 | lt_cv_sys_global_symbol_to_import= |
| 7400 | lt_cdecl_hook= |
| 7401 | lt_c_name_hook= |
| 7402 | lt_c_name_lib_hook= |
| 7403 | fi |
| 7404 | |
| 7405 | # Transform an extracted symbol line into a proper C declaration. |
| 7406 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 7407 | # so use this general approach. |
| 7408 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 7409 | $lt_cdecl_hook\ |
| 7410 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 7411 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 7412 | |
| 7413 | # Transform an extracted symbol line into symbol name and symbol address |
| 7414 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 7415 | $lt_c_name_hook\ |
| 7416 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7417 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 7418 | |
| 7419 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 7420 | # symbol address. |
| 7421 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 7422 | $lt_c_name_lib_hook\ |
| 7423 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 7424 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 7425 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 7426 | |
| 7427 | # Handle CRLF in mingw tool chain |
| 7428 | opt_cr= |
| 7429 | case $build_os in |
| 7430 | mingw*) |
| 7431 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 7432 | ;; |
| 7433 | esac |
| 7434 | |
| 7435 | # Try without a prefix underscore, then with it. |
| 7436 | for ac_symprfx in "" "_"; do |
| 7437 | |
| 7438 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 7439 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 7440 | |
| 7441 | # Write the raw and C identifiers. |
| 7442 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7443 | # Fake it for dumpbin and say T for any non-static function, |
| 7444 | # D for any global variable and I for any imported variable. |
| 7445 | # Also find C++ and __fastcall symbols from MSVC++, |
| 7446 | # which start with @ or ?. |
| 7447 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 7448 | " {last_section=section; section=\$ 3};"\ |
| 7449 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 7450 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 7451 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 7452 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 7453 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 7454 | " \$ 0!~/External *\|/{next};"\ |
| 7455 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 7456 | " {if(hide[section]) next};"\ |
| 7457 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 7458 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 7459 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 7460 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 7461 | " ' prfx=^$ac_symprfx" |
| 7462 | else |
| 7463 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 7464 | fi |
| 7465 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 7466 | |
| 7467 | # Check to see that the pipe works correctly. |
| 7468 | pipe_works=no |
| 7469 | |
| 7470 | rm -f conftest* |
| 7471 | cat > conftest.$ac_ext <<_LT_EOF |
| 7472 | #ifdef __cplusplus |
| 7473 | extern "C" { |
| 7474 | #endif |
| 7475 | char nm_test_var; |
| 7476 | void nm_test_func(void); |
| 7477 | void nm_test_func(void){} |
| 7478 | #ifdef __cplusplus |
| 7479 | } |
| 7480 | #endif |
| 7481 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 7482 | _LT_EOF |
| 7483 | |
| 7484 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7485 | (eval $ac_compile) 2>&5 |
| 7486 | ac_status=$? |
| 7487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7488 | test $ac_status = 0; }; then |
| 7489 | # Now try to grab the symbols. |
| 7490 | nlist=conftest.nm |
| 7491 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 7492 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 7493 | ac_status=$? |
| 7494 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7495 | test $ac_status = 0; } && test -s "$nlist"; then |
| 7496 | # Try sorting and uniquifying the output. |
| 7497 | if sort "$nlist" | uniq > "$nlist"T; then |
| 7498 | mv -f "$nlist"T "$nlist" |
| 7499 | else |
| 7500 | rm -f "$nlist"T |
| 7501 | fi |
| 7502 | |
| 7503 | # Make sure that we snagged all the symbols we need. |
| 7504 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 7505 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 7506 | cat <<_LT_EOF > conftest.$ac_ext |
| 7507 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 7508 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 7509 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 7510 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 7511 | # define LT_DLSYM_CONST |
| 7512 | #elif defined __osf__ |
| 7513 | /* This system does not cope well with relocations in const data. */ |
| 7514 | # define LT_DLSYM_CONST |
| 7515 | #else |
| 7516 | # define LT_DLSYM_CONST const |
| 7517 | #endif |
| 7518 | |
| 7519 | #ifdef __cplusplus |
| 7520 | extern "C" { |
| 7521 | #endif |
| 7522 | |
| 7523 | _LT_EOF |
| 7524 | # Now generate the symbol file. |
| 7525 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 7526 | |
| 7527 | cat <<_LT_EOF >> conftest.$ac_ext |
| 7528 | |
| 7529 | /* The mapping between symbol names and symbols. */ |
| 7530 | LT_DLSYM_CONST struct { |
| 7531 | const char *name; |
| 7532 | void *address; |
| 7533 | } |
| 7534 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 7535 | { |
| 7536 | { "@PROGRAM@", (void *) 0 }, |
| 7537 | _LT_EOF |
| 7538 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 7539 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 7540 | {0, (void *) 0} |
| 7541 | }; |
| 7542 | |
| 7543 | /* This works around a problem in FreeBSD linker */ |
| 7544 | #ifdef FREEBSD_WORKAROUND |
| 7545 | static const void *lt_preloaded_setup() { |
| 7546 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 7547 | } |
| 7548 | #endif |
| 7549 | |
| 7550 | #ifdef __cplusplus |
| 7551 | } |
| 7552 | #endif |
| 7553 | _LT_EOF |
| 7554 | # Now try linking the two files. |
| 7555 | mv conftest.$ac_objext conftstm.$ac_objext |
| 7556 | lt_globsym_save_LIBS=$LIBS |
| 7557 | lt_globsym_save_CFLAGS=$CFLAGS |
| 7558 | LIBS=conftstm.$ac_objext |
| 7559 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 7560 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 7561 | (eval $ac_link) 2>&5 |
| 7562 | ac_status=$? |
| 7563 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7564 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 7565 | pipe_works=yes |
| 7566 | fi |
| 7567 | LIBS=$lt_globsym_save_LIBS |
| 7568 | CFLAGS=$lt_globsym_save_CFLAGS |
| 7569 | else |
| 7570 | echo "cannot find nm_test_func in $nlist" >&5 |
| 7571 | fi |
| 7572 | else |
| 7573 | echo "cannot find nm_test_var in $nlist" >&5 |
| 7574 | fi |
| 7575 | else |
| 7576 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 7577 | fi |
| 7578 | else |
| 7579 | echo "$progname: failed program was:" >&5 |
| 7580 | cat conftest.$ac_ext >&5 |
| 7581 | fi |
| 7582 | rm -rf conftest* conftst* |
| 7583 | |
| 7584 | # Do not use the global_symbol_pipe unless it works. |
| 7585 | if test yes = "$pipe_works"; then |
| 7586 | break |
| 7587 | else |
| 7588 | lt_cv_sys_global_symbol_pipe= |
| 7589 | fi |
| 7590 | done |
| 7591 | |
| 7592 | fi |
| 7593 | |
| 7594 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 7595 | lt_cv_sys_global_symbol_to_cdecl= |
| 7596 | fi |
| 7597 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 7598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 7599 | $as_echo "failed" >&6; } |
| 7600 | else |
| 7601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 7602 | $as_echo "ok" >&6; } |
| 7603 | fi |
| 7604 | |
| 7605 | # Response file support. |
| 7606 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 7607 | nm_file_list_spec='@' |
| 7608 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 7609 | nm_file_list_spec='@' |
| 7610 | fi |
| 7611 | |
| 7612 | |
| 7613 | |
| 7614 | |
| 7615 | |
| 7616 | |
| 7617 | |
| 7618 | |
| 7619 | |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | |
| 7631 | |
| 7632 | |
| 7633 | |
| 7634 | |
| 7635 | |
| 7636 | |
| 7637 | |
| 7638 | |
| 7639 | |
| 7640 | |
| 7641 | |
| 7642 | |
| 7643 | |
| 7644 | |
| 7645 | |
| 7646 | |
| 7647 | |
| 7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 7649 | $as_echo_n "checking for sysroot... " >&6; } |
| 7650 | |
| 7651 | # Check whether --with-sysroot was given. |
| 7652 | if test "${with_sysroot+set}" = set; then : |
| 7653 | withval=$with_sysroot; |
| 7654 | else |
| 7655 | with_sysroot=no |
| 7656 | fi |
| 7657 | |
| 7658 | |
| 7659 | lt_sysroot= |
| 7660 | case $with_sysroot in #( |
| 7661 | yes) |
| 7662 | if test yes = "$GCC"; then |
| 7663 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 7664 | fi |
| 7665 | ;; #( |
| 7666 | /*) |
| 7667 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 7668 | ;; #( |
| 7669 | no|'') |
| 7670 | ;; #( |
| 7671 | *) |
| 7672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 7673 | $as_echo "$with_sysroot" >&6; } |
| 7674 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 7675 | ;; |
| 7676 | esac |
| 7677 | |
| 7678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 7679 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 7680 | |
| 7681 | |
| 7682 | |
| 7683 | |
| 7684 | |
| 7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 7686 | $as_echo_n "checking for a working dd... " >&6; } |
| 7687 | if ${ac_cv_path_lt_DD+:} false; then : |
| 7688 | $as_echo_n "(cached) " >&6 |
| 7689 | else |
| 7690 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 7691 | cat conftest.i conftest.i >conftest2.i |
| 7692 | : ${lt_DD:=$DD} |
| 7693 | if test -z "$lt_DD"; then |
| 7694 | ac_path_lt_DD_found=false |
| 7695 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 7696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7697 | for as_dir in $PATH |
| 7698 | do |
| 7699 | IFS=$as_save_IFS |
| 7700 | test -z "$as_dir" && as_dir=. |
| 7701 | for ac_prog in dd; do |
| 7702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7703 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 7704 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 7705 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 7706 | cmp -s conftest.i conftest.out \ |
| 7707 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 7708 | fi |
| 7709 | $ac_path_lt_DD_found && break 3 |
| 7710 | done |
| 7711 | done |
| 7712 | done |
| 7713 | IFS=$as_save_IFS |
| 7714 | if test -z "$ac_cv_path_lt_DD"; then |
| 7715 | : |
| 7716 | fi |
| 7717 | else |
| 7718 | ac_cv_path_lt_DD=$lt_DD |
| 7719 | fi |
| 7720 | |
| 7721 | rm -f conftest.i conftest2.i conftest.out |
| 7722 | fi |
| 7723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 7724 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
| 7725 | |
| 7726 | |
| 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 7728 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 7729 | if ${lt_cv_truncate_bin+:} false; then : |
| 7730 | $as_echo_n "(cached) " >&6 |
| 7731 | else |
| 7732 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 7733 | cat conftest.i conftest.i >conftest2.i |
| 7734 | lt_cv_truncate_bin= |
| 7735 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 7736 | cmp -s conftest.i conftest.out \ |
| 7737 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 7738 | fi |
| 7739 | rm -f conftest.i conftest2.i conftest.out |
| 7740 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 7741 | fi |
| 7742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 7743 | $as_echo "$lt_cv_truncate_bin" >&6; } |
| 7744 | |
| 7745 | |
| 7746 | |
| 7747 | |
| 7748 | |
| 7749 | |
| 7750 | |
| 7751 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 7752 | func_cc_basename () |
| 7753 | { |
| 7754 | for cc_temp in $*""; do |
| 7755 | case $cc_temp in |
| 7756 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7757 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7758 | \-*) ;; |
| 7759 | *) break;; |
| 7760 | esac |
| 7761 | done |
| 7762 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 7763 | } |
| 7764 | |
| 7765 | # Check whether --enable-libtool-lock was given. |
| 7766 | if test "${enable_libtool_lock+set}" = set; then : |
| 7767 | enableval=$enable_libtool_lock; |
| 7768 | fi |
| 7769 | |
| 7770 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 7771 | |
| 7772 | # Some flags need to be propagated to the compiler or linker for good |
| 7773 | # libtool support. |
| 7774 | case $host in |
| 7775 | ia64-*-hpux*) |
| 7776 | # Find out what ABI is being produced by ac_compile, and set mode |
| 7777 | # options accordingly. |
| 7778 | echo 'int i;' > conftest.$ac_ext |
| 7779 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7780 | (eval $ac_compile) 2>&5 |
| 7781 | ac_status=$? |
| 7782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7783 | test $ac_status = 0; }; then |
| 7784 | case `/usr/bin/file conftest.$ac_objext` in |
| 7785 | *ELF-32*) |
| 7786 | HPUX_IA64_MODE=32 |
| 7787 | ;; |
| 7788 | *ELF-64*) |
| 7789 | HPUX_IA64_MODE=64 |
| 7790 | ;; |
| 7791 | esac |
| 7792 | fi |
| 7793 | rm -rf conftest* |
| 7794 | ;; |
| 7795 | *-*-irix6*) |
| 7796 | # Find out what ABI is being produced by ac_compile, and set linker |
| 7797 | # options accordingly. |
| 7798 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 7799 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7800 | (eval $ac_compile) 2>&5 |
| 7801 | ac_status=$? |
| 7802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7803 | test $ac_status = 0; }; then |
| 7804 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 7805 | case `/usr/bin/file conftest.$ac_objext` in |
| 7806 | *32-bit*) |
| 7807 | LD="${LD-ld} -melf32bsmip" |
| 7808 | ;; |
| 7809 | *N32*) |
| 7810 | LD="${LD-ld} -melf32bmipn32" |
| 7811 | ;; |
| 7812 | *64-bit*) |
| 7813 | LD="${LD-ld} -melf64bmip" |
| 7814 | ;; |
| 7815 | esac |
| 7816 | else |
| 7817 | case `/usr/bin/file conftest.$ac_objext` in |
| 7818 | *32-bit*) |
| 7819 | LD="${LD-ld} -32" |
| 7820 | ;; |
| 7821 | *N32*) |
| 7822 | LD="${LD-ld} -n32" |
| 7823 | ;; |
| 7824 | *64-bit*) |
| 7825 | LD="${LD-ld} -64" |
| 7826 | ;; |
| 7827 | esac |
| 7828 | fi |
| 7829 | fi |
| 7830 | rm -rf conftest* |
| 7831 | ;; |
| 7832 | |
| 7833 | mips64*-*linux*) |
| 7834 | # Find out what ABI is being produced by ac_compile, and set linker |
| 7835 | # options accordingly. |
| 7836 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 7837 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7838 | (eval $ac_compile) 2>&5 |
| 7839 | ac_status=$? |
| 7840 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7841 | test $ac_status = 0; }; then |
| 7842 | emul=elf |
| 7843 | case `/usr/bin/file conftest.$ac_objext` in |
| 7844 | *32-bit*) |
| 7845 | emul="${emul}32" |
| 7846 | ;; |
| 7847 | *64-bit*) |
| 7848 | emul="${emul}64" |
| 7849 | ;; |
| 7850 | esac |
| 7851 | case `/usr/bin/file conftest.$ac_objext` in |
| 7852 | *MSB*) |
| 7853 | emul="${emul}btsmip" |
| 7854 | ;; |
| 7855 | *LSB*) |
| 7856 | emul="${emul}ltsmip" |
| 7857 | ;; |
| 7858 | esac |
| 7859 | case `/usr/bin/file conftest.$ac_objext` in |
| 7860 | *N32*) |
| 7861 | emul="${emul}n32" |
| 7862 | ;; |
| 7863 | esac |
| 7864 | LD="${LD-ld} -m $emul" |
| 7865 | fi |
| 7866 | rm -rf conftest* |
| 7867 | ;; |
| 7868 | |
| 7869 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 7870 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 7871 | # Find out what ABI is being produced by ac_compile, and set linker |
| 7872 | # options accordingly. Note that the listed cases only cover the |
| 7873 | # situations where additional linker options are needed (such as when |
| 7874 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 7875 | # vice versa); the common cases where no linker options are needed do |
| 7876 | # not appear in the list. |
| 7877 | echo 'int i;' > conftest.$ac_ext |
| 7878 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7879 | (eval $ac_compile) 2>&5 |
| 7880 | ac_status=$? |
| 7881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7882 | test $ac_status = 0; }; then |
| 7883 | case `/usr/bin/file conftest.o` in |
| 7884 | *32-bit*) |
| 7885 | case $host in |
| 7886 | x86_64-*kfreebsd*-gnu) |
| 7887 | LD="${LD-ld} -m elf_i386_fbsd" |
| 7888 | ;; |
| 7889 | x86_64-*linux*) |
| 7890 | case `/usr/bin/file conftest.o` in |
| 7891 | *x86-64*) |
| 7892 | LD="${LD-ld} -m elf32_x86_64" |
| 7893 | ;; |
| 7894 | *) |
| 7895 | LD="${LD-ld} -m elf_i386" |
| 7896 | ;; |
| 7897 | esac |
| 7898 | ;; |
| 7899 | powerpc64le-*linux*) |
| 7900 | LD="${LD-ld} -m elf32lppclinux" |
| 7901 | ;; |
| 7902 | powerpc64-*linux*) |
| 7903 | LD="${LD-ld} -m elf32ppclinux" |
| 7904 | ;; |
| 7905 | s390x-*linux*) |
| 7906 | LD="${LD-ld} -m elf_s390" |
| 7907 | ;; |
| 7908 | sparc64-*linux*) |
| 7909 | LD="${LD-ld} -m elf32_sparc" |
| 7910 | ;; |
| 7911 | esac |
| 7912 | ;; |
| 7913 | *64-bit*) |
| 7914 | case $host in |
| 7915 | x86_64-*kfreebsd*-gnu) |
| 7916 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 7917 | ;; |
| 7918 | x86_64-*linux*) |
| 7919 | LD="${LD-ld} -m elf_x86_64" |
| 7920 | ;; |
| 7921 | powerpcle-*linux*) |
| 7922 | LD="${LD-ld} -m elf64lppc" |
| 7923 | ;; |
| 7924 | powerpc-*linux*) |
| 7925 | LD="${LD-ld} -m elf64ppc" |
| 7926 | ;; |
| 7927 | s390*-*linux*|s390*-*tpf*) |
| 7928 | LD="${LD-ld} -m elf64_s390" |
| 7929 | ;; |
| 7930 | sparc*-*linux*) |
| 7931 | LD="${LD-ld} -m elf64_sparc" |
| 7932 | ;; |
| 7933 | esac |
| 7934 | ;; |
| 7935 | esac |
| 7936 | fi |
| 7937 | rm -rf conftest* |
| 7938 | ;; |
| 7939 | |
| 7940 | *-*-sco3.2v5*) |
| 7941 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7942 | SAVE_CFLAGS=$CFLAGS |
| 7943 | CFLAGS="$CFLAGS -belf" |
| 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7945 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7946 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 7947 | $as_echo_n "(cached) " >&6 |
| 7948 | else |
| 7949 | ac_ext=c |
| 7950 | ac_cpp='$CPP $CPPFLAGS' |
| 7951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7954 | |
| 7955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7956 | /* end confdefs.h. */ |
| 7957 | |
| 7958 | int |
| 7959 | main () |
| 7960 | { |
| 7961 | |
| 7962 | ; |
| 7963 | return 0; |
| 7964 | } |
| 7965 | _ACEOF |
| 7966 | if ac_fn_c_try_link "$LINENO"; then : |
| 7967 | lt_cv_cc_needs_belf=yes |
| 7968 | else |
| 7969 | lt_cv_cc_needs_belf=no |
| 7970 | fi |
| 7971 | rm -f core conftest.err conftest.$ac_objext \ |
| 7972 | conftest$ac_exeext conftest.$ac_ext |
| 7973 | ac_ext=c |
| 7974 | ac_cpp='$CPP $CPPFLAGS' |
| 7975 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7976 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7977 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7978 | |
| 7979 | fi |
| 7980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7981 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7982 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 7983 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7984 | CFLAGS=$SAVE_CFLAGS |
| 7985 | fi |
| 7986 | ;; |
| 7987 | *-*solaris*) |
| 7988 | # Find out what ABI is being produced by ac_compile, and set linker |
| 7989 | # options accordingly. |
| 7990 | echo 'int i;' > conftest.$ac_ext |
| 7991 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7992 | (eval $ac_compile) 2>&5 |
| 7993 | ac_status=$? |
| 7994 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7995 | test $ac_status = 0; }; then |
| 7996 | case `/usr/bin/file conftest.o` in |
| 7997 | *64-bit*) |
| 7998 | case $lt_cv_prog_gnu_ld in |
| 7999 | yes*) |
| 8000 | case $host in |
| 8001 | i?86-*-solaris*|x86_64-*-solaris*) |
| 8002 | LD="${LD-ld} -m elf_x86_64" |
| 8003 | ;; |
| 8004 | sparc*-*-solaris*) |
| 8005 | LD="${LD-ld} -m elf64_sparc" |
| 8006 | ;; |
| 8007 | esac |
| 8008 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 8009 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 8010 | LD=${LD-ld}_sol2 |
| 8011 | fi |
| 8012 | ;; |
| 8013 | *) |
| 8014 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 8015 | LD="${LD-ld} -64" |
| 8016 | fi |
| 8017 | ;; |
| 8018 | esac |
| 8019 | ;; |
| 8020 | esac |
| 8021 | fi |
| 8022 | rm -rf conftest* |
| 8023 | ;; |
| 8024 | esac |
| 8025 | |
| 8026 | need_locks=$enable_libtool_lock |
| 8027 | |
| 8028 | if test -n "$ac_tool_prefix"; then |
| 8029 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 8030 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8032 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8033 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 8034 | $as_echo_n "(cached) " >&6 |
| 8035 | else |
| 8036 | if test -n "$MANIFEST_TOOL"; then |
| 8037 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 8038 | else |
| 8039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8040 | for as_dir in $PATH |
| 8041 | do |
| 8042 | IFS=$as_save_IFS |
| 8043 | test -z "$as_dir" && as_dir=. |
| 8044 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8046 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 8047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8048 | break 2 |
| 8049 | fi |
| 8050 | done |
| 8051 | done |
| 8052 | IFS=$as_save_IFS |
| 8053 | |
| 8054 | fi |
| 8055 | fi |
| 8056 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 8057 | if test -n "$MANIFEST_TOOL"; then |
| 8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 8059 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 8060 | else |
| 8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8062 | $as_echo "no" >&6; } |
| 8063 | fi |
| 8064 | |
| 8065 | |
| 8066 | fi |
| 8067 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 8068 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 8069 | # Extract the first word of "mt", so it can be a program name with args. |
| 8070 | set dummy mt; ac_word=$2 |
| 8071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8072 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8073 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 8074 | $as_echo_n "(cached) " >&6 |
| 8075 | else |
| 8076 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8077 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 8078 | else |
| 8079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8080 | for as_dir in $PATH |
| 8081 | do |
| 8082 | IFS=$as_save_IFS |
| 8083 | test -z "$as_dir" && as_dir=. |
| 8084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8086 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 8087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8088 | break 2 |
| 8089 | fi |
| 8090 | done |
| 8091 | done |
| 8092 | IFS=$as_save_IFS |
| 8093 | |
| 8094 | fi |
| 8095 | fi |
| 8096 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 8097 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 8098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 8099 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 8100 | else |
| 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8102 | $as_echo "no" >&6; } |
| 8103 | fi |
| 8104 | |
| 8105 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 8106 | MANIFEST_TOOL=":" |
| 8107 | else |
| 8108 | case $cross_compiling:$ac_tool_warned in |
| 8109 | yes:) |
| 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8112 | ac_tool_warned=yes ;; |
| 8113 | esac |
| 8114 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 8115 | fi |
| 8116 | else |
| 8117 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 8118 | fi |
| 8119 | |
| 8120 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 8121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 8122 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 8123 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 8124 | $as_echo_n "(cached) " >&6 |
| 8125 | else |
| 8126 | lt_cv_path_mainfest_tool=no |
| 8127 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 8128 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 8129 | cat conftest.err >&5 |
| 8130 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 8131 | lt_cv_path_mainfest_tool=yes |
| 8132 | fi |
| 8133 | rm -f conftest* |
| 8134 | fi |
| 8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 8136 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 8137 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 8138 | MANIFEST_TOOL=: |
| 8139 | fi |
| 8140 | |
| 8141 | |
| 8142 | |
| 8143 | |
| 8144 | |
| 8145 | |
| 8146 | case $host_os in |
| 8147 | rhapsody* | darwin*) |
| 8148 | if test -n "$ac_tool_prefix"; then |
| 8149 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 8150 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 8151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8152 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8153 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 8154 | $as_echo_n "(cached) " >&6 |
| 8155 | else |
| 8156 | if test -n "$DSYMUTIL"; then |
| 8157 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 8158 | else |
| 8159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8160 | for as_dir in $PATH |
| 8161 | do |
| 8162 | IFS=$as_save_IFS |
| 8163 | test -z "$as_dir" && as_dir=. |
| 8164 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8166 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 8167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8168 | break 2 |
| 8169 | fi |
| 8170 | done |
| 8171 | done |
| 8172 | IFS=$as_save_IFS |
| 8173 | |
| 8174 | fi |
| 8175 | fi |
| 8176 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 8177 | if test -n "$DSYMUTIL"; then |
| 8178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 8179 | $as_echo "$DSYMUTIL" >&6; } |
| 8180 | else |
| 8181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8182 | $as_echo "no" >&6; } |
| 8183 | fi |
| 8184 | |
| 8185 | |
| 8186 | fi |
| 8187 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 8188 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 8189 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 8190 | set dummy dsymutil; ac_word=$2 |
| 8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8192 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8193 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 8194 | $as_echo_n "(cached) " >&6 |
| 8195 | else |
| 8196 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8197 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 8198 | else |
| 8199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8200 | for as_dir in $PATH |
| 8201 | do |
| 8202 | IFS=$as_save_IFS |
| 8203 | test -z "$as_dir" && as_dir=. |
| 8204 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8205 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8206 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 8207 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8208 | break 2 |
| 8209 | fi |
| 8210 | done |
| 8211 | done |
| 8212 | IFS=$as_save_IFS |
| 8213 | |
| 8214 | fi |
| 8215 | fi |
| 8216 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 8217 | if test -n "$ac_ct_DSYMUTIL"; then |
| 8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 8219 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 8220 | else |
| 8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8222 | $as_echo "no" >&6; } |
| 8223 | fi |
| 8224 | |
| 8225 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 8226 | DSYMUTIL=":" |
| 8227 | else |
| 8228 | case $cross_compiling:$ac_tool_warned in |
| 8229 | yes:) |
| 8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8231 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8232 | ac_tool_warned=yes ;; |
| 8233 | esac |
| 8234 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 8235 | fi |
| 8236 | else |
| 8237 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 8238 | fi |
| 8239 | |
| 8240 | if test -n "$ac_tool_prefix"; then |
| 8241 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 8242 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8244 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8245 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 8246 | $as_echo_n "(cached) " >&6 |
| 8247 | else |
| 8248 | if test -n "$NMEDIT"; then |
| 8249 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 8250 | else |
| 8251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8252 | for as_dir in $PATH |
| 8253 | do |
| 8254 | IFS=$as_save_IFS |
| 8255 | test -z "$as_dir" && as_dir=. |
| 8256 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8258 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 8259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8260 | break 2 |
| 8261 | fi |
| 8262 | done |
| 8263 | done |
| 8264 | IFS=$as_save_IFS |
| 8265 | |
| 8266 | fi |
| 8267 | fi |
| 8268 | NMEDIT=$ac_cv_prog_NMEDIT |
| 8269 | if test -n "$NMEDIT"; then |
| 8270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 8271 | $as_echo "$NMEDIT" >&6; } |
| 8272 | else |
| 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8274 | $as_echo "no" >&6; } |
| 8275 | fi |
| 8276 | |
| 8277 | |
| 8278 | fi |
| 8279 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 8280 | ac_ct_NMEDIT=$NMEDIT |
| 8281 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 8282 | set dummy nmedit; ac_word=$2 |
| 8283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8284 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8285 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 8286 | $as_echo_n "(cached) " >&6 |
| 8287 | else |
| 8288 | if test -n "$ac_ct_NMEDIT"; then |
| 8289 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 8290 | else |
| 8291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8292 | for as_dir in $PATH |
| 8293 | do |
| 8294 | IFS=$as_save_IFS |
| 8295 | test -z "$as_dir" && as_dir=. |
| 8296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8298 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 8299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8300 | break 2 |
| 8301 | fi |
| 8302 | done |
| 8303 | done |
| 8304 | IFS=$as_save_IFS |
| 8305 | |
| 8306 | fi |
| 8307 | fi |
| 8308 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 8309 | if test -n "$ac_ct_NMEDIT"; then |
| 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 8311 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 8312 | else |
| 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8314 | $as_echo "no" >&6; } |
| 8315 | fi |
| 8316 | |
| 8317 | if test "x$ac_ct_NMEDIT" = x; then |
| 8318 | NMEDIT=":" |
| 8319 | else |
| 8320 | case $cross_compiling:$ac_tool_warned in |
| 8321 | yes:) |
| 8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8324 | ac_tool_warned=yes ;; |
| 8325 | esac |
| 8326 | NMEDIT=$ac_ct_NMEDIT |
| 8327 | fi |
| 8328 | else |
| 8329 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 8330 | fi |
| 8331 | |
| 8332 | if test -n "$ac_tool_prefix"; then |
| 8333 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 8334 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 8335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8336 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8337 | if ${ac_cv_prog_LIPO+:} false; then : |
| 8338 | $as_echo_n "(cached) " >&6 |
| 8339 | else |
| 8340 | if test -n "$LIPO"; then |
| 8341 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 8342 | else |
| 8343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8344 | for as_dir in $PATH |
| 8345 | do |
| 8346 | IFS=$as_save_IFS |
| 8347 | test -z "$as_dir" && as_dir=. |
| 8348 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8350 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 8351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8352 | break 2 |
| 8353 | fi |
| 8354 | done |
| 8355 | done |
| 8356 | IFS=$as_save_IFS |
| 8357 | |
| 8358 | fi |
| 8359 | fi |
| 8360 | LIPO=$ac_cv_prog_LIPO |
| 8361 | if test -n "$LIPO"; then |
| 8362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 8363 | $as_echo "$LIPO" >&6; } |
| 8364 | else |
| 8365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8366 | $as_echo "no" >&6; } |
| 8367 | fi |
| 8368 | |
| 8369 | |
| 8370 | fi |
| 8371 | if test -z "$ac_cv_prog_LIPO"; then |
| 8372 | ac_ct_LIPO=$LIPO |
| 8373 | # Extract the first word of "lipo", so it can be a program name with args. |
| 8374 | set dummy lipo; ac_word=$2 |
| 8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8376 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8377 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 8378 | $as_echo_n "(cached) " >&6 |
| 8379 | else |
| 8380 | if test -n "$ac_ct_LIPO"; then |
| 8381 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 8382 | else |
| 8383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8384 | for as_dir in $PATH |
| 8385 | do |
| 8386 | IFS=$as_save_IFS |
| 8387 | test -z "$as_dir" && as_dir=. |
| 8388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8390 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 8391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8392 | break 2 |
| 8393 | fi |
| 8394 | done |
| 8395 | done |
| 8396 | IFS=$as_save_IFS |
| 8397 | |
| 8398 | fi |
| 8399 | fi |
| 8400 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 8401 | if test -n "$ac_ct_LIPO"; then |
| 8402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 8403 | $as_echo "$ac_ct_LIPO" >&6; } |
| 8404 | else |
| 8405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8406 | $as_echo "no" >&6; } |
| 8407 | fi |
| 8408 | |
| 8409 | if test "x$ac_ct_LIPO" = x; then |
| 8410 | LIPO=":" |
| 8411 | else |
| 8412 | case $cross_compiling:$ac_tool_warned in |
| 8413 | yes:) |
| 8414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8416 | ac_tool_warned=yes ;; |
| 8417 | esac |
| 8418 | LIPO=$ac_ct_LIPO |
| 8419 | fi |
| 8420 | else |
| 8421 | LIPO="$ac_cv_prog_LIPO" |
| 8422 | fi |
| 8423 | |
| 8424 | if test -n "$ac_tool_prefix"; then |
| 8425 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 8426 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8428 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8429 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 8430 | $as_echo_n "(cached) " >&6 |
| 8431 | else |
| 8432 | if test -n "$OTOOL"; then |
| 8433 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 8434 | else |
| 8435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8436 | for as_dir in $PATH |
| 8437 | do |
| 8438 | IFS=$as_save_IFS |
| 8439 | test -z "$as_dir" && as_dir=. |
| 8440 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8442 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 8443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8444 | break 2 |
| 8445 | fi |
| 8446 | done |
| 8447 | done |
| 8448 | IFS=$as_save_IFS |
| 8449 | |
| 8450 | fi |
| 8451 | fi |
| 8452 | OTOOL=$ac_cv_prog_OTOOL |
| 8453 | if test -n "$OTOOL"; then |
| 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 8455 | $as_echo "$OTOOL" >&6; } |
| 8456 | else |
| 8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8458 | $as_echo "no" >&6; } |
| 8459 | fi |
| 8460 | |
| 8461 | |
| 8462 | fi |
| 8463 | if test -z "$ac_cv_prog_OTOOL"; then |
| 8464 | ac_ct_OTOOL=$OTOOL |
| 8465 | # Extract the first word of "otool", so it can be a program name with args. |
| 8466 | set dummy otool; ac_word=$2 |
| 8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8468 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8469 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 8470 | $as_echo_n "(cached) " >&6 |
| 8471 | else |
| 8472 | if test -n "$ac_ct_OTOOL"; then |
| 8473 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 8474 | else |
| 8475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8476 | for as_dir in $PATH |
| 8477 | do |
| 8478 | IFS=$as_save_IFS |
| 8479 | test -z "$as_dir" && as_dir=. |
| 8480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8482 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 8483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8484 | break 2 |
| 8485 | fi |
| 8486 | done |
| 8487 | done |
| 8488 | IFS=$as_save_IFS |
| 8489 | |
| 8490 | fi |
| 8491 | fi |
| 8492 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 8493 | if test -n "$ac_ct_OTOOL"; then |
| 8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 8495 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 8496 | else |
| 8497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8498 | $as_echo "no" >&6; } |
| 8499 | fi |
| 8500 | |
| 8501 | if test "x$ac_ct_OTOOL" = x; then |
| 8502 | OTOOL=":" |
| 8503 | else |
| 8504 | case $cross_compiling:$ac_tool_warned in |
| 8505 | yes:) |
| 8506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8507 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8508 | ac_tool_warned=yes ;; |
| 8509 | esac |
| 8510 | OTOOL=$ac_ct_OTOOL |
| 8511 | fi |
| 8512 | else |
| 8513 | OTOOL="$ac_cv_prog_OTOOL" |
| 8514 | fi |
| 8515 | |
| 8516 | if test -n "$ac_tool_prefix"; then |
| 8517 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 8518 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 8519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8520 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8521 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 8522 | $as_echo_n "(cached) " >&6 |
| 8523 | else |
| 8524 | if test -n "$OTOOL64"; then |
| 8525 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 8526 | else |
| 8527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8528 | for as_dir in $PATH |
| 8529 | do |
| 8530 | IFS=$as_save_IFS |
| 8531 | test -z "$as_dir" && as_dir=. |
| 8532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8534 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 8535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8536 | break 2 |
| 8537 | fi |
| 8538 | done |
| 8539 | done |
| 8540 | IFS=$as_save_IFS |
| 8541 | |
| 8542 | fi |
| 8543 | fi |
| 8544 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 8545 | if test -n "$OTOOL64"; then |
| 8546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 8547 | $as_echo "$OTOOL64" >&6; } |
| 8548 | else |
| 8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8550 | $as_echo "no" >&6; } |
| 8551 | fi |
| 8552 | |
| 8553 | |
| 8554 | fi |
| 8555 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 8556 | ac_ct_OTOOL64=$OTOOL64 |
| 8557 | # Extract the first word of "otool64", so it can be a program name with args. |
| 8558 | set dummy otool64; ac_word=$2 |
| 8559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8560 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8561 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 8562 | $as_echo_n "(cached) " >&6 |
| 8563 | else |
| 8564 | if test -n "$ac_ct_OTOOL64"; then |
| 8565 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 8566 | else |
| 8567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8568 | for as_dir in $PATH |
| 8569 | do |
| 8570 | IFS=$as_save_IFS |
| 8571 | test -z "$as_dir" && as_dir=. |
| 8572 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8573 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 8574 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 8575 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8576 | break 2 |
| 8577 | fi |
| 8578 | done |
| 8579 | done |
| 8580 | IFS=$as_save_IFS |
| 8581 | |
| 8582 | fi |
| 8583 | fi |
| 8584 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 8585 | if test -n "$ac_ct_OTOOL64"; then |
| 8586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 8587 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 8588 | else |
| 8589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8590 | $as_echo "no" >&6; } |
| 8591 | fi |
| 8592 | |
| 8593 | if test "x$ac_ct_OTOOL64" = x; then |
| 8594 | OTOOL64=":" |
| 8595 | else |
| 8596 | case $cross_compiling:$ac_tool_warned in |
| 8597 | yes:) |
| 8598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8599 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8600 | ac_tool_warned=yes ;; |
| 8601 | esac |
| 8602 | OTOOL64=$ac_ct_OTOOL64 |
| 8603 | fi |
| 8604 | else |
| 8605 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 8606 | fi |
| 8607 | |
| 8608 | |
| 8609 | |
| 8610 | |
| 8611 | |
| 8612 | |
| 8613 | |
| 8614 | |
| 8615 | |
| 8616 | |
| 8617 | |
| 8618 | |
| 8619 | |
| 8620 | |
| 8621 | |
| 8622 | |
| 8623 | |
| 8624 | |
| 8625 | |
| 8626 | |
| 8627 | |
| 8628 | |
| 8629 | |
| 8630 | |
| 8631 | |
| 8632 | |
| 8633 | |
| 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 8635 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 8636 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 8637 | $as_echo_n "(cached) " >&6 |
| 8638 | else |
| 8639 | lt_cv_apple_cc_single_mod=no |
| 8640 | if test -z "$LT_MULTI_MODULE"; then |
| 8641 | # By default we will add the -single_module flag. You can override |
| 8642 | # by either setting the environment variable LT_MULTI_MODULE |
| 8643 | # non-empty at configure time, or by adding -multi_module to the |
| 8644 | # link flags. |
| 8645 | rm -rf libconftest.dylib* |
| 8646 | echo "int foo(void){return 1;}" > conftest.c |
| 8647 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 8648 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 8649 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 8650 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 8651 | _lt_result=$? |
| 8652 | # If there is a non-empty error log, and "single_module" |
| 8653 | # appears in it, assume the flag caused a linker warning |
| 8654 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 8655 | cat conftest.err >&5 |
| 8656 | # Otherwise, if the output was created with a 0 exit code from |
| 8657 | # the compiler, it worked. |
| 8658 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 8659 | lt_cv_apple_cc_single_mod=yes |
| 8660 | else |
| 8661 | cat conftest.err >&5 |
| 8662 | fi |
| 8663 | rm -rf libconftest.dylib* |
| 8664 | rm -f conftest.* |
| 8665 | fi |
| 8666 | fi |
| 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 8668 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 8669 | |
| 8670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 8671 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 8672 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 8673 | $as_echo_n "(cached) " >&6 |
| 8674 | else |
| 8675 | lt_cv_ld_exported_symbols_list=no |
| 8676 | save_LDFLAGS=$LDFLAGS |
| 8677 | echo "_main" > conftest.sym |
| 8678 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 8679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8680 | /* end confdefs.h. */ |
| 8681 | |
| 8682 | int |
| 8683 | main () |
| 8684 | { |
| 8685 | |
| 8686 | ; |
| 8687 | return 0; |
| 8688 | } |
| 8689 | _ACEOF |
| 8690 | if ac_fn_c_try_link "$LINENO"; then : |
| 8691 | lt_cv_ld_exported_symbols_list=yes |
| 8692 | else |
| 8693 | lt_cv_ld_exported_symbols_list=no |
| 8694 | fi |
| 8695 | rm -f core conftest.err conftest.$ac_objext \ |
| 8696 | conftest$ac_exeext conftest.$ac_ext |
| 8697 | LDFLAGS=$save_LDFLAGS |
| 8698 | |
| 8699 | fi |
| 8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 8701 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 8702 | |
| 8703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 8704 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 8705 | if ${lt_cv_ld_force_load+:} false; then : |
| 8706 | $as_echo_n "(cached) " >&6 |
| 8707 | else |
| 8708 | lt_cv_ld_force_load=no |
| 8709 | cat > conftest.c << _LT_EOF |
| 8710 | int forced_loaded() { return 2;} |
| 8711 | _LT_EOF |
| 8712 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 8713 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 8714 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 8715 | $AR cru libconftest.a conftest.o 2>&5 |
| 8716 | echo "$RANLIB libconftest.a" >&5 |
| 8717 | $RANLIB libconftest.a 2>&5 |
| 8718 | cat > conftest.c << _LT_EOF |
| 8719 | int main() { return 0;} |
| 8720 | _LT_EOF |
| 8721 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 8722 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 8723 | _lt_result=$? |
| 8724 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 8725 | cat conftest.err >&5 |
| 8726 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 8727 | lt_cv_ld_force_load=yes |
| 8728 | else |
| 8729 | cat conftest.err >&5 |
| 8730 | fi |
| 8731 | rm -f conftest.err libconftest.a conftest conftest.c |
| 8732 | rm -rf conftest.dSYM |
| 8733 | |
| 8734 | fi |
| 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 8736 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 8737 | case $host_os in |
| 8738 | rhapsody* | darwin1.[012]) |
| 8739 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 8740 | darwin1.*) |
| 8741 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 8742 | darwin*) # darwin 5.x on |
| 8743 | # if running on 10.5 or later, the deployment target defaults |
| 8744 | # to the OS version, if on x86, and 10.4, the deployment |
| 8745 | # target defaults to 10.4. Don't you love it? |
| 8746 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 8747 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 8748 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 8749 | 10.[012][,.]*) |
| 8750 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 8751 | 10.*) |
| 8752 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 8753 | esac |
| 8754 | ;; |
| 8755 | esac |
| 8756 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 8757 | _lt_dar_single_mod='$single_module' |
| 8758 | fi |
| 8759 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 8760 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 8761 | else |
| 8762 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 8763 | fi |
| 8764 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 8765 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 8766 | else |
| 8767 | _lt_dsymutil= |
| 8768 | fi |
| 8769 | ;; |
| 8770 | esac |
| 8771 | |
| 8772 | # func_munge_path_list VARIABLE PATH |
| 8773 | # ----------------------------------- |
| 8774 | # VARIABLE is name of variable containing _space_ separated list of |
| 8775 | # directories to be munged by the contents of PATH, which is string |
| 8776 | # having a format: |
| 8777 | # "DIR[:DIR]:" |
| 8778 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 8779 | # ":DIR[:DIR]" |
| 8780 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 8781 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 8782 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 8783 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 8784 | # "DIR[:DIR]" |
| 8785 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 8786 | func_munge_path_list () |
| 8787 | { |
| 8788 | case x$2 in |
| 8789 | x) |
| 8790 | ;; |
| 8791 | *:) |
| 8792 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 8793 | ;; |
| 8794 | x:*) |
| 8795 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 8796 | ;; |
| 8797 | *::*) |
| 8798 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 8799 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 8800 | ;; |
| 8801 | *) |
| 8802 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 8803 | ;; |
| 8804 | esac |
| 8805 | } |
| 8806 | |
| 8807 | ac_ext=c |
| 8808 | ac_cpp='$CPP $CPPFLAGS' |
| 8809 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8810 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8811 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 8813 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 8814 | # On Suns, sometimes $CPP names a directory. |
| 8815 | if test -n "$CPP" && test -d "$CPP"; then |
| 8816 | CPP= |
| 8817 | fi |
| 8818 | if test -z "$CPP"; then |
| 8819 | if ${ac_cv_prog_CPP+:} false; then : |
| 8820 | $as_echo_n "(cached) " >&6 |
| 8821 | else |
| 8822 | # Double quotes because CPP needs to be expanded |
| 8823 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 8824 | do |
| 8825 | ac_preproc_ok=false |
| 8826 | for ac_c_preproc_warn_flag in '' yes |
| 8827 | do |
| 8828 | # Use a header file that comes with gcc, so configuring glibc |
| 8829 | # with a fresh cross-compiler works. |
| 8830 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8831 | # <limits.h> exists even on freestanding compilers. |
| 8832 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 8833 | # not just through cpp. "Syntax error" is here to catch this case. |
| 8834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8835 | /* end confdefs.h. */ |
| 8836 | #ifdef __STDC__ |
| 8837 | # include <limits.h> |
| 8838 | #else |
| 8839 | # include <assert.h> |
| 8840 | #endif |
| 8841 | Syntax error |
| 8842 | _ACEOF |
| 8843 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8844 | |
| 8845 | else |
| 8846 | # Broken: fails on valid input. |
| 8847 | continue |
| 8848 | fi |
| 8849 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8850 | |
| 8851 | # OK, works on sane cases. Now check whether nonexistent headers |
| 8852 | # can be detected and how. |
| 8853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8854 | /* end confdefs.h. */ |
| 8855 | #include <ac_nonexistent.h> |
| 8856 | _ACEOF |
| 8857 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8858 | # Broken: success on invalid input. |
| 8859 | continue |
| 8860 | else |
| 8861 | # Passes both tests. |
| 8862 | ac_preproc_ok=: |
| 8863 | break |
| 8864 | fi |
| 8865 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8866 | |
| 8867 | done |
| 8868 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 8869 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 8870 | if $ac_preproc_ok; then : |
| 8871 | break |
| 8872 | fi |
| 8873 | |
| 8874 | done |
| 8875 | ac_cv_prog_CPP=$CPP |
| 8876 | |
| 8877 | fi |
| 8878 | CPP=$ac_cv_prog_CPP |
| 8879 | else |
| 8880 | ac_cv_prog_CPP=$CPP |
| 8881 | fi |
| 8882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 8883 | $as_echo "$CPP" >&6; } |
| 8884 | ac_preproc_ok=false |
| 8885 | for ac_c_preproc_warn_flag in '' yes |
| 8886 | do |
| 8887 | # Use a header file that comes with gcc, so configuring glibc |
| 8888 | # with a fresh cross-compiler works. |
| 8889 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8890 | # <limits.h> exists even on freestanding compilers. |
| 8891 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 8892 | # not just through cpp. "Syntax error" is here to catch this case. |
| 8893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8894 | /* end confdefs.h. */ |
| 8895 | #ifdef __STDC__ |
| 8896 | # include <limits.h> |
| 8897 | #else |
| 8898 | # include <assert.h> |
| 8899 | #endif |
| 8900 | Syntax error |
| 8901 | _ACEOF |
| 8902 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8903 | |
| 8904 | else |
| 8905 | # Broken: fails on valid input. |
| 8906 | continue |
| 8907 | fi |
| 8908 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8909 | |
| 8910 | # OK, works on sane cases. Now check whether nonexistent headers |
| 8911 | # can be detected and how. |
| 8912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8913 | /* end confdefs.h. */ |
| 8914 | #include <ac_nonexistent.h> |
| 8915 | _ACEOF |
| 8916 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 8917 | # Broken: success on invalid input. |
| 8918 | continue |
| 8919 | else |
| 8920 | # Passes both tests. |
| 8921 | ac_preproc_ok=: |
| 8922 | break |
| 8923 | fi |
| 8924 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 8925 | |
| 8926 | done |
| 8927 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 8928 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 8929 | if $ac_preproc_ok; then : |
| 8930 | |
| 8931 | else |
| 8932 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 8933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 8934 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 8935 | See \`config.log' for more details" "$LINENO" 5; } |
| 8936 | fi |
| 8937 | |
| 8938 | ac_ext=c |
| 8939 | ac_cpp='$CPP $CPPFLAGS' |
| 8940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8943 | |
| 8944 | |
| 9074 | for ac_header in dlfcn.h |
| 9075 | do : |
| 9076 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 9077 | " |
| 9078 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 9079 | cat >>confdefs.h <<_ACEOF |
| 9080 | #define HAVE_DLFCN_H 1 |
| 9081 | _ACEOF |
| 9082 | |
| 9083 | fi |
| 9084 | |
| 9085 | done |
| 9086 | |
| 9087 | |
| 9088 | |
| 9089 | |
| 9090 | func_stripname_cnf () |
| 9091 | { |
| 9092 | case $2 in |
| 9093 | .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; |
| 9094 | *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; |
| 9095 | esac |
| 9096 | } # func_stripname_cnf |
| 9097 | |
| 9098 | |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | # Set options |
| 9103 | |
| 9104 | |
| 9105 | |
| 9106 | enable_dlopen=no |
| 9107 | |
| 9108 | |
| 9109 | enable_win32_dll=no |
| 9110 | |
| 9111 | |
| 9112 | # Check whether --enable-shared was given. |
| 9113 | if test "${enable_shared+set}" = set; then : |
| 9114 | enableval=$enable_shared; p=${PACKAGE-default} |
| 9115 | case $enableval in |
| 9116 | yes) enable_shared=yes ;; |
| 9117 | no) enable_shared=no ;; |
| 9118 | *) |
| 9119 | enable_shared=no |
| 9120 | # Look at the argument we got. We use all the common list separators. |
| 9121 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9122 | for pkg in $enableval; do |
| 9123 | IFS=$lt_save_ifs |
| 9124 | if test "X$pkg" = "X$p"; then |
| 9125 | enable_shared=yes |
| 9126 | fi |
| 9127 | done |
| 9128 | IFS=$lt_save_ifs |
| 9129 | ;; |
| 9130 | esac |
| 9131 | else |
| 9132 | enable_shared=yes |
| 9133 | fi |
| 9134 | |
| 9135 | |
| 9136 | |
| 9137 | |
| 9138 | |
| 9139 | |
| 9140 | |
| 9141 | |
| 9142 | |
| 9143 | # Check whether --enable-static was given. |
| 9144 | if test "${enable_static+set}" = set; then : |
| 9145 | enableval=$enable_static; p=${PACKAGE-default} |
| 9146 | case $enableval in |
| 9147 | yes) enable_static=yes ;; |
| 9148 | no) enable_static=no ;; |
| 9149 | *) |
| 9150 | enable_static=no |
| 9151 | # Look at the argument we got. We use all the common list separators. |
| 9152 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9153 | for pkg in $enableval; do |
| 9154 | IFS=$lt_save_ifs |
| 9155 | if test "X$pkg" = "X$p"; then |
| 9156 | enable_static=yes |
| 9157 | fi |
| 9158 | done |
| 9159 | IFS=$lt_save_ifs |
| 9160 | ;; |
| 9161 | esac |
| 9162 | else |
| 9163 | enable_static=yes |
| 9164 | fi |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | |
| 9175 | # Check whether --with-pic was given. |
| 9176 | if test "${with_pic+set}" = set; then : |
| 9177 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 9178 | case $withval in |
| 9179 | yes|no) pic_mode=$withval ;; |
| 9180 | *) |
| 9181 | pic_mode=default |
| 9182 | # Look at the argument we got. We use all the common list separators. |
| 9183 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9184 | for lt_pkg in $withval; do |
| 9185 | IFS=$lt_save_ifs |
| 9186 | if test "X$lt_pkg" = "X$lt_p"; then |
| 9187 | pic_mode=yes |
| 9188 | fi |
| 9189 | done |
| 9190 | IFS=$lt_save_ifs |
| 9191 | ;; |
| 9192 | esac |
| 9193 | else |
| 9194 | pic_mode=default |
| 9195 | fi |
| 9196 | |
| 9197 | |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | # Check whether --enable-fast-install was given. |
| 9205 | if test "${enable_fast_install+set}" = set; then : |
| 9206 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 9207 | case $enableval in |
| 9208 | yes) enable_fast_install=yes ;; |
| 9209 | no) enable_fast_install=no ;; |
| 9210 | *) |
| 9211 | enable_fast_install=no |
| 9212 | # Look at the argument we got. We use all the common list separators. |
| 9213 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 9214 | for pkg in $enableval; do |
| 9215 | IFS=$lt_save_ifs |
| 9216 | if test "X$pkg" = "X$p"; then |
| 9217 | enable_fast_install=yes |
| 9218 | fi |
| 9219 | done |
| 9220 | IFS=$lt_save_ifs |
| 9221 | ;; |
| 9222 | esac |
| 9223 | else |
| 9224 | enable_fast_install=yes |
| 9225 | fi |
| 9226 | |
| 9227 | |
| 9228 | |
| 9229 | |
| 9230 | |
| 9231 | |
| 9232 | |
| 9233 | |
| 9234 | shared_archive_member_spec= |
| 9235 | case $host,$enable_shared in |
| 9236 | power*-*-aix[5-9]*,yes) |
| 9237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 9238 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 9239 | |
| 9240 | # Check whether --with-aix-soname was given. |
| 9241 | if test "${with_aix_soname+set}" = set; then : |
| 9242 | withval=$with_aix_soname; case $withval in |
| 9243 | aix|svr4|both) |
| 9244 | ;; |
| 9245 | *) |
| 9246 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 9247 | ;; |
| 9248 | esac |
| 9249 | lt_cv_with_aix_soname=$with_aix_soname |
| 9250 | else |
| 9251 | if ${lt_cv_with_aix_soname+:} false; then : |
| 9252 | $as_echo_n "(cached) " >&6 |
| 9253 | else |
| 9254 | lt_cv_with_aix_soname=aix |
| 9255 | fi |
| 9256 | |
| 9257 | with_aix_soname=$lt_cv_with_aix_soname |
| 9258 | fi |
| 9259 | |
| 9260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 9261 | $as_echo "$with_aix_soname" >&6; } |
| 9262 | if test aix != "$with_aix_soname"; then |
| 9263 | # For the AIX way of multilib, we name the shared archive member |
| 9264 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 9265 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 9266 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 9267 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 9268 | if test 64 = "${OBJECT_MODE-32}"; then |
| 9269 | shared_archive_member_spec=shr_64 |
| 9270 | else |
| 9271 | shared_archive_member_spec=shr |
| 9272 | fi |
| 9273 | fi |
| 9274 | ;; |
| 9275 | *) |
| 9276 | with_aix_soname=aix |
| 9277 | ;; |
| 9278 | esac |
| 9279 | |
| 9280 | |
| 9281 | |
| 9282 | |
| 9283 | |
| 9284 | |
| 9285 | |
| 9286 | |
| 9287 | |
| 9288 | |
| 9289 | # This can be used to rebuild libtool when needed |
| 9290 | LIBTOOL_DEPS=$ltmain |
| 9291 | |
| 9292 | # Always use our own libtool. |
| 9293 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 9294 | |
| 9295 | |
| 9296 | |
| 9297 | |
| 9298 | |
| 9299 | |
| 9300 | |
| 9301 | |
| 9302 | |
| 9303 | |
| 9304 | |
| 9305 | |
| 9306 | |
| 9307 | |
| 9308 | |
| 9309 | |
| 9310 | |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 | |
| 9316 | |
| 9317 | |
| 9318 | |
| 9319 | |
| 9320 | |
| 9321 | |
| 9322 | |
| 9323 | |
| 9324 | test -z "$LN_S" && LN_S="ln -s" |
| 9325 | |
| 9326 | |
| 9327 | |
| 9328 | |
| 9329 | |
| 9330 | |
| 9331 | |
| 9332 | |
| 9333 | |
| 9334 | |
| 9335 | |
| 9336 | |
| 9337 | |
| 9338 | |
| 9339 | if test -n "${ZSH_VERSION+set}"; then |
| 9340 | setopt NO_GLOB_SUBST |
| 9341 | fi |
| 9342 | |
| 9343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 9344 | $as_echo_n "checking for objdir... " >&6; } |
| 9345 | if ${lt_cv_objdir+:} false; then : |
| 9346 | $as_echo_n "(cached) " >&6 |
| 9347 | else |
| 9348 | rm -f .libs 2>/dev/null |
| 9349 | mkdir .libs 2>/dev/null |
| 9350 | if test -d .libs; then |
| 9351 | lt_cv_objdir=.libs |
| 9352 | else |
| 9353 | # MS-DOS does not allow filenames that begin with a dot. |
| 9354 | lt_cv_objdir=_libs |
| 9355 | fi |
| 9356 | rmdir .libs 2>/dev/null |
| 9357 | fi |
| 9358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 9359 | $as_echo "$lt_cv_objdir" >&6; } |
| 9360 | objdir=$lt_cv_objdir |
| 9361 | |
| 9362 | |
| 9363 | |
| 9364 | |
| 9365 | |
| 9366 | cat >>confdefs.h <<_ACEOF |
| 9367 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 9368 | _ACEOF |
| 9369 | |
| 9370 | |
| 9371 | |
| 9372 | |
| 9373 | case $host_os in |
| 9374 | aix3*) |
| 9375 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 9376 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 9377 | # vanish in a puff of smoke. |
| 9378 | if test set != "${COLLECT_NAMES+set}"; then |
| 9379 | COLLECT_NAMES= |
| 9380 | export COLLECT_NAMES |
| 9381 | fi |
| 9382 | ;; |
| 9383 | esac |
| 9384 | |
| 9385 | # Global variables: |
| 9386 | ofile=libtool |
| 9387 | can_build_shared=yes |
| 9388 | |
| 9389 | # All known linkers require a '.a' archive for static linking (except MSVC, |
| 9390 | # which needs '.lib'). |
| 9391 | libext=a |
| 9392 | |
| 9393 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 9394 | |
| 9395 | old_CC=$CC |
| 9396 | old_CFLAGS=$CFLAGS |
| 9397 | |
| 9398 | # Set sane defaults for various variables |
| 9399 | test -z "$CC" && CC=cc |
| 9400 | test -z "$LTCC" && LTCC=$CC |
| 9401 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 9402 | test -z "$LD" && LD=ld |
| 9403 | test -z "$ac_objext" && ac_objext=o |
| 9404 | |
| 9405 | func_cc_basename $compiler |
| 9406 | cc_basename=$func_cc_basename_result |
| 9407 | |
| 9408 | |
| 9409 | # Only perform the check for file, if the check method requires it |
| 9410 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 9411 | case $deplibs_check_method in |
| 9412 | file_magic*) |
| 9413 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 9414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 9415 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 9416 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 9417 | $as_echo_n "(cached) " >&6 |
| 9418 | else |
| 9419 | case $MAGIC_CMD in |
| 9420 | [\\/*] | ?:[\\/]*) |
| 9421 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 9422 | ;; |
| 9423 | *) |
| 9424 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 9425 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 9426 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9427 | for ac_dir in $ac_dummy; do |
| 9428 | IFS=$lt_save_ifs |
| 9429 | test -z "$ac_dir" && ac_dir=. |
| 9430 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 9431 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 9432 | if test -n "$file_magic_test_file"; then |
| 9433 | case $deplibs_check_method in |
| 9434 | "file_magic "*) |
| 9435 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9436 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9437 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9438 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9439 | : |
| 9440 | else |
| 9441 | cat <<_LT_EOF 1>&2 |
| 9442 | |
| 9443 | *** Warning: the command libtool uses to detect shared libraries, |
| 9444 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9445 | *** The result is that libtool may fail to recognize shared libraries |
| 9446 | *** as such. This will affect the creation of libtool libraries that |
| 9447 | *** depend on shared libraries, but programs linked with such libtool |
| 9448 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9449 | *** may want to report the problem to your system manager and/or to |
| 9450 | *** bug-libtool@gnu.org |
| 9451 | |
| 9452 | _LT_EOF |
| 9453 | fi ;; |
| 9454 | esac |
| 9455 | fi |
| 9456 | break |
| 9457 | fi |
| 9458 | done |
| 9459 | IFS=$lt_save_ifs |
| 9460 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 9461 | ;; |
| 9462 | esac |
| 9463 | fi |
| 9464 | |
| 9465 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9466 | if test -n "$MAGIC_CMD"; then |
| 9467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9468 | $as_echo "$MAGIC_CMD" >&6; } |
| 9469 | else |
| 9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9471 | $as_echo "no" >&6; } |
| 9472 | fi |
| 9473 | |
| 9474 | |
| 9475 | |
| 9476 | |
| 9477 | |
| 9478 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 9479 | if test -n "$ac_tool_prefix"; then |
| 9480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 9481 | $as_echo_n "checking for file... " >&6; } |
| 9482 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 9483 | $as_echo_n "(cached) " >&6 |
| 9484 | else |
| 9485 | case $MAGIC_CMD in |
| 9486 | [\\/*] | ?:[\\/]*) |
| 9487 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 9488 | ;; |
| 9489 | *) |
| 9490 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 9491 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 9492 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 9493 | for ac_dir in $ac_dummy; do |
| 9494 | IFS=$lt_save_ifs |
| 9495 | test -z "$ac_dir" && ac_dir=. |
| 9496 | if test -f "$ac_dir/file"; then |
| 9497 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 9498 | if test -n "$file_magic_test_file"; then |
| 9499 | case $deplibs_check_method in |
| 9500 | "file_magic "*) |
| 9501 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 9502 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9503 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 9504 | $EGREP "$file_magic_regex" > /dev/null; then |
| 9505 | : |
| 9506 | else |
| 9507 | cat <<_LT_EOF 1>&2 |
| 9508 | |
| 9509 | *** Warning: the command libtool uses to detect shared libraries, |
| 9510 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 9511 | *** The result is that libtool may fail to recognize shared libraries |
| 9512 | *** as such. This will affect the creation of libtool libraries that |
| 9513 | *** depend on shared libraries, but programs linked with such libtool |
| 9514 | *** libraries will work regardless of this problem. Nevertheless, you |
| 9515 | *** may want to report the problem to your system manager and/or to |
| 9516 | *** bug-libtool@gnu.org |
| 9517 | |
| 9518 | _LT_EOF |
| 9519 | fi ;; |
| 9520 | esac |
| 9521 | fi |
| 9522 | break |
| 9523 | fi |
| 9524 | done |
| 9525 | IFS=$lt_save_ifs |
| 9526 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 9527 | ;; |
| 9528 | esac |
| 9529 | fi |
| 9530 | |
| 9531 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 9532 | if test -n "$MAGIC_CMD"; then |
| 9533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 9534 | $as_echo "$MAGIC_CMD" >&6; } |
| 9535 | else |
| 9536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9537 | $as_echo "no" >&6; } |
| 9538 | fi |
| 9539 | |
| 9540 | |
| 9541 | else |
| 9542 | MAGIC_CMD=: |
| 9543 | fi |
| 9544 | fi |
| 9545 | |
| 9546 | fi |
| 9547 | ;; |
| 9548 | esac |
| 9549 | |
| 9550 | # Use C for the default configuration in the libtool script |
| 9551 | |
| 9552 | lt_save_CC=$CC |
| 9553 | ac_ext=c |
| 9554 | ac_cpp='$CPP $CPPFLAGS' |
| 9555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 9556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 9557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 9558 | |
| 9559 | |
| 9560 | # Source file extension for C test sources. |
| 9561 | ac_ext=c |
| 9562 | |
| 9563 | # Object file extension for compiled C test sources. |
| 9564 | objext=o |
| 9565 | objext=$objext |
| 9566 | |
| 9567 | # Code to be used in simple compile tests |
| 9568 | lt_simple_compile_test_code="int some_variable = 0;" |
| 9569 | |
| 9570 | # Code to be used in simple link tests |
| 9571 | lt_simple_link_test_code='int main(){return(0);}' |
| 9572 | |
| 9573 | |
| 9574 | |
| 9575 | |
| 9576 | |
| 9577 | |
| 9578 | |
| 9579 | # If no C compiler was specified, use CC. |
| 9580 | LTCC=${LTCC-"$CC"} |
| 9581 | |
| 9582 | # If no C compiler flags were specified, use CFLAGS. |
| 9583 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 9584 | |
| 9585 | # Allow CC to be a program name with arguments. |
| 9586 | compiler=$CC |
| 9587 | |
| 9588 | # Save the default compiler, since it gets overwritten when the other |
| 9589 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 9590 | compiler_DEFAULT=$CC |
| 9591 | |
| 9592 | # save warnings/boilerplate of simple test code |
| 9593 | ac_outfile=conftest.$ac_objext |
| 9594 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 9595 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9596 | _lt_compiler_boilerplate=`cat conftest.err` |
| 9597 | $RM conftest* |
| 9598 | |
| 9599 | ac_outfile=conftest.$ac_objext |
| 9600 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 9601 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 9602 | _lt_linker_boilerplate=`cat conftest.err` |
| 9603 | $RM -r conftest* |
| 9604 | |
| 9605 | |
| 9606 | ## CAVEAT EMPTOR: |
| 9607 | ## There is no encapsulation within the following macros, do not change |
| 9608 | ## the running order or otherwise move them around unless you know exactly |
| 9609 | ## what you are doing... |
| 9610 | if test -n "$compiler"; then |
| 9611 | |
| 9612 | lt_prog_compiler_no_builtin_flag= |
| 9613 | |
| 9614 | if test yes = "$GCC"; then |
| 9615 | case $cc_basename in |
| 9616 | nvcc*) |
| 9617 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 9618 | *) |
| 9619 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 9620 | esac |
| 9621 | |
| 9622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 9623 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 9624 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 9625 | $as_echo_n "(cached) " >&6 |
| 9626 | else |
| 9627 | lt_cv_prog_compiler_rtti_exceptions=no |
| 9628 | ac_outfile=conftest.$ac_objext |
| 9629 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9630 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 9631 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9632 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9633 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9634 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9635 | # The option is referenced via a variable to avoid confusing sed. |
| 9636 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9637 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9638 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9639 | -e 's:$: $lt_compiler_flag:'` |
| 9640 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9641 | (eval "$lt_compile" 2>conftest.err) |
| 9642 | ac_status=$? |
| 9643 | cat conftest.err >&5 |
| 9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9645 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9646 | # The compiler can only warn and ignore the option if not recognized |
| 9647 | # So say no if there are warnings other than the usual output. |
| 9648 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9649 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9650 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9651 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 9652 | fi |
| 9653 | fi |
| 9654 | $RM conftest* |
| 9655 | |
| 9656 | fi |
| 9657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 9658 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 9659 | |
| 9660 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 9661 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 9662 | else |
| 9663 | : |
| 9664 | fi |
| 9665 | |
| 9666 | fi |
| 9667 | |
| 9668 | |
| 9669 | |
| 9670 | |
| 9671 | |
| 9672 | |
| 9673 | lt_prog_compiler_wl= |
| 9674 | lt_prog_compiler_pic= |
| 9675 | lt_prog_compiler_static= |
| 9676 | |
| 9677 | |
| 9678 | if test yes = "$GCC"; then |
| 9679 | lt_prog_compiler_wl='-Wl,' |
| 9680 | lt_prog_compiler_static='-static' |
| 9681 | |
| 9682 | case $host_os in |
| 9683 | aix*) |
| 9684 | # All AIX code is PIC. |
| 9685 | if test ia64 = "$host_cpu"; then |
| 9686 | # AIX 5 now supports IA64 processor |
| 9687 | lt_prog_compiler_static='-Bstatic' |
| 9688 | fi |
| 9689 | lt_prog_compiler_pic='-fPIC' |
| 9690 | ;; |
| 9691 | |
| 9692 | amigaos*) |
| 9693 | case $host_cpu in |
| 9694 | powerpc) |
| 9695 | # see comment about AmigaOS4 .so support |
| 9696 | lt_prog_compiler_pic='-fPIC' |
| 9697 | ;; |
| 9698 | m68k) |
| 9699 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 9700 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 9701 | # like '-m68040'. |
| 9702 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 9703 | ;; |
| 9704 | esac |
| 9705 | ;; |
| 9706 | |
| 9707 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 9708 | # PIC is the default for these OSes. |
| 9709 | ;; |
| 9710 | |
| 9711 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 9712 | # This hack is so that the source file can tell whether it is being |
| 9713 | # built for inclusion in a dll (and should export symbols for example). |
| 9714 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 9715 | # (--disable-auto-import) libraries |
| 9716 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 9717 | case $host_os in |
| 9718 | os2*) |
| 9719 | lt_prog_compiler_static='$wl-static' |
| 9720 | ;; |
| 9721 | esac |
| 9722 | ;; |
| 9723 | |
| 9724 | darwin* | rhapsody*) |
| 9725 | # PIC is the default on this platform |
| 9726 | # Common symbols not allowed in MH_DYLIB files |
| 9727 | lt_prog_compiler_pic='-fno-common' |
| 9728 | ;; |
| 9729 | |
| 9730 | haiku*) |
| 9731 | # PIC is the default for Haiku. |
| 9732 | # The "-static" flag exists, but is broken. |
| 9733 | lt_prog_compiler_static= |
| 9734 | ;; |
| 9735 | |
| 9736 | hpux*) |
| 9737 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 9738 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 9739 | # sets the default TLS model and affects inlining. |
| 9740 | case $host_cpu in |
| 9741 | hppa*64*) |
| 9742 | # +Z the default |
| 9743 | ;; |
| 9744 | *) |
| 9745 | lt_prog_compiler_pic='-fPIC' |
| 9746 | ;; |
| 9747 | esac |
| 9748 | ;; |
| 9749 | |
| 9750 | interix[3-9]*) |
| 9751 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 9752 | # Instead, we relocate shared libraries at runtime. |
| 9753 | ;; |
| 9754 | |
| 9755 | msdosdjgpp*) |
| 9756 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 9757 | # on systems that don't support them. |
| 9758 | lt_prog_compiler_can_build_shared=no |
| 9759 | enable_shared=no |
| 9760 | ;; |
| 9761 | |
| 9762 | *nto* | *qnx*) |
| 9763 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 9764 | # it will coredump. |
| 9765 | lt_prog_compiler_pic='-fPIC -shared' |
| 9766 | ;; |
| 9767 | |
| 9768 | sysv4*MP*) |
| 9769 | if test -d /usr/nec; then |
| 9770 | lt_prog_compiler_pic=-Kconform_pic |
| 9771 | fi |
| 9772 | ;; |
| 9773 | |
| 9774 | *) |
| 9775 | lt_prog_compiler_pic='-fPIC' |
| 9776 | ;; |
| 9777 | esac |
| 9778 | |
| 9779 | case $cc_basename in |
| 9780 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9781 | lt_prog_compiler_wl='-Xlinker ' |
| 9782 | if test -n "$lt_prog_compiler_pic"; then |
| 9783 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 9784 | fi |
| 9785 | ;; |
| 9786 | esac |
| 9787 | else |
| 9788 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 9789 | case $host_os in |
| 9790 | aix*) |
| 9791 | lt_prog_compiler_wl='-Wl,' |
| 9792 | if test ia64 = "$host_cpu"; then |
| 9793 | # AIX 5 now supports IA64 processor |
| 9794 | lt_prog_compiler_static='-Bstatic' |
| 9795 | else |
| 9796 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 9797 | fi |
| 9798 | ;; |
| 9799 | |
| 9800 | darwin* | rhapsody*) |
| 9801 | # PIC is the default on this platform |
| 9802 | # Common symbols not allowed in MH_DYLIB files |
| 9803 | lt_prog_compiler_pic='-fno-common' |
| 9804 | case $cc_basename in |
| 9805 | nagfor*) |
| 9806 | # NAG Fortran compiler |
| 9807 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 9808 | lt_prog_compiler_pic='-PIC' |
| 9809 | lt_prog_compiler_static='-Bstatic' |
| 9810 | ;; |
| 9811 | esac |
| 9812 | ;; |
| 9813 | |
| 9814 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 9815 | # This hack is so that the source file can tell whether it is being |
| 9816 | # built for inclusion in a dll (and should export symbols for example). |
| 9817 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 9818 | case $host_os in |
| 9819 | os2*) |
| 9820 | lt_prog_compiler_static='$wl-static' |
| 9821 | ;; |
| 9822 | esac |
| 9823 | ;; |
| 9824 | |
| 9825 | hpux9* | hpux10* | hpux11*) |
| 9826 | lt_prog_compiler_wl='-Wl,' |
| 9827 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 9828 | # not for PA HP-UX. |
| 9829 | case $host_cpu in |
| 9830 | hppa*64*|ia64*) |
| 9831 | # +Z the default |
| 9832 | ;; |
| 9833 | *) |
| 9834 | lt_prog_compiler_pic='+Z' |
| 9835 | ;; |
| 9836 | esac |
| 9837 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 9838 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 9839 | ;; |
| 9840 | |
| 9841 | irix5* | irix6* | nonstopux*) |
| 9842 | lt_prog_compiler_wl='-Wl,' |
| 9843 | # PIC (with -KPIC) is the default. |
| 9844 | lt_prog_compiler_static='-non_shared' |
| 9845 | ;; |
| 9846 | |
| 9847 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 9848 | case $cc_basename in |
| 9849 | # old Intel for x86_64, which still supported -KPIC. |
| 9850 | ecc*) |
| 9851 | lt_prog_compiler_wl='-Wl,' |
| 9852 | lt_prog_compiler_pic='-KPIC' |
| 9853 | lt_prog_compiler_static='-static' |
| 9854 | ;; |
| 9855 | # icc used to be incompatible with GCC. |
| 9856 | # ICC 10 doesn't accept -KPIC any more. |
| 9857 | icc* | ifort*) |
| 9858 | lt_prog_compiler_wl='-Wl,' |
| 9859 | lt_prog_compiler_pic='-fPIC' |
| 9860 | lt_prog_compiler_static='-static' |
| 9861 | ;; |
| 9862 | # Lahey Fortran 8.1. |
| 9863 | lf95*) |
| 9864 | lt_prog_compiler_wl='-Wl,' |
| 9865 | lt_prog_compiler_pic='--shared' |
| 9866 | lt_prog_compiler_static='--static' |
| 9867 | ;; |
| 9868 | nagfor*) |
| 9869 | # NAG Fortran compiler |
| 9870 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 9871 | lt_prog_compiler_pic='-PIC' |
| 9872 | lt_prog_compiler_static='-Bstatic' |
| 9873 | ;; |
| 9874 | tcc*) |
| 9875 | # Fabrice Bellard et al's Tiny C Compiler |
| 9876 | lt_prog_compiler_wl='-Wl,' |
| 9877 | lt_prog_compiler_pic='-fPIC' |
| 9878 | lt_prog_compiler_static='-static' |
| 9879 | ;; |
| 9880 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9881 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 9882 | # which looks to be a dead project) |
| 9883 | lt_prog_compiler_wl='-Wl,' |
| 9884 | lt_prog_compiler_pic='-fpic' |
| 9885 | lt_prog_compiler_static='-Bstatic' |
| 9886 | ;; |
| 9887 | ccc*) |
| 9888 | lt_prog_compiler_wl='-Wl,' |
| 9889 | # All Alpha code is PIC. |
| 9890 | lt_prog_compiler_static='-non_shared' |
| 9891 | ;; |
| 9892 | xl* | bgxl* | bgf* | mpixl*) |
| 9893 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 9894 | lt_prog_compiler_wl='-Wl,' |
| 9895 | lt_prog_compiler_pic='-qpic' |
| 9896 | lt_prog_compiler_static='-qstaticlink' |
| 9897 | ;; |
| 9898 | *) |
| 9899 | case `$CC -V 2>&1 | sed 5q` in |
| 9900 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 9901 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 9902 | lt_prog_compiler_pic='-KPIC' |
| 9903 | lt_prog_compiler_static='-Bstatic' |
| 9904 | lt_prog_compiler_wl='' |
| 9905 | ;; |
| 9906 | *Sun\ F* | *Sun*Fortran*) |
| 9907 | lt_prog_compiler_pic='-KPIC' |
| 9908 | lt_prog_compiler_static='-Bstatic' |
| 9909 | lt_prog_compiler_wl='-Qoption ld ' |
| 9910 | ;; |
| 9911 | *Sun\ C*) |
| 9912 | # Sun C 5.9 |
| 9913 | lt_prog_compiler_pic='-KPIC' |
| 9914 | lt_prog_compiler_static='-Bstatic' |
| 9915 | lt_prog_compiler_wl='-Wl,' |
| 9916 | ;; |
| 9917 | *Intel*\ [CF]*Compiler*) |
| 9918 | lt_prog_compiler_wl='-Wl,' |
| 9919 | lt_prog_compiler_pic='-fPIC' |
| 9920 | lt_prog_compiler_static='-static' |
| 9921 | ;; |
| 9922 | *Portland\ Group*) |
| 9923 | lt_prog_compiler_wl='-Wl,' |
| 9924 | lt_prog_compiler_pic='-fpic' |
| 9925 | lt_prog_compiler_static='-Bstatic' |
| 9926 | ;; |
| 9927 | esac |
| 9928 | ;; |
| 9929 | esac |
| 9930 | ;; |
| 9931 | |
| 9932 | newsos6) |
| 9933 | lt_prog_compiler_pic='-KPIC' |
| 9934 | lt_prog_compiler_static='-Bstatic' |
| 9935 | ;; |
| 9936 | |
| 9937 | *nto* | *qnx*) |
| 9938 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 9939 | # it will coredump. |
| 9940 | lt_prog_compiler_pic='-fPIC -shared' |
| 9941 | ;; |
| 9942 | |
| 9943 | osf3* | osf4* | osf5*) |
| 9944 | lt_prog_compiler_wl='-Wl,' |
| 9945 | # All OSF/1 code is PIC. |
| 9946 | lt_prog_compiler_static='-non_shared' |
| 9947 | ;; |
| 9948 | |
| 9949 | rdos*) |
| 9950 | lt_prog_compiler_static='-non_shared' |
| 9951 | ;; |
| 9952 | |
| 9953 | solaris*) |
| 9954 | lt_prog_compiler_pic='-KPIC' |
| 9955 | lt_prog_compiler_static='-Bstatic' |
| 9956 | case $cc_basename in |
| 9957 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 9958 | lt_prog_compiler_wl='-Qoption ld ';; |
| 9959 | *) |
| 9960 | lt_prog_compiler_wl='-Wl,';; |
| 9961 | esac |
| 9962 | ;; |
| 9963 | |
| 9964 | sunos4*) |
| 9965 | lt_prog_compiler_wl='-Qoption ld ' |
| 9966 | lt_prog_compiler_pic='-PIC' |
| 9967 | lt_prog_compiler_static='-Bstatic' |
| 9968 | ;; |
| 9969 | |
| 9970 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 9971 | lt_prog_compiler_wl='-Wl,' |
| 9972 | lt_prog_compiler_pic='-KPIC' |
| 9973 | lt_prog_compiler_static='-Bstatic' |
| 9974 | ;; |
| 9975 | |
| 9976 | sysv4*MP*) |
| 9977 | if test -d /usr/nec; then |
| 9978 | lt_prog_compiler_pic='-Kconform_pic' |
| 9979 | lt_prog_compiler_static='-Bstatic' |
| 9980 | fi |
| 9981 | ;; |
| 9982 | |
| 9983 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 9984 | lt_prog_compiler_wl='-Wl,' |
| 9985 | lt_prog_compiler_pic='-KPIC' |
| 9986 | lt_prog_compiler_static='-Bstatic' |
| 9987 | ;; |
| 9988 | |
| 9989 | unicos*) |
| 9990 | lt_prog_compiler_wl='-Wl,' |
| 9991 | lt_prog_compiler_can_build_shared=no |
| 9992 | ;; |
| 9993 | |
| 9994 | uts4*) |
| 9995 | lt_prog_compiler_pic='-pic' |
| 9996 | lt_prog_compiler_static='-Bstatic' |
| 9997 | ;; |
| 9998 | |
| 9999 | *) |
| 10000 | lt_prog_compiler_can_build_shared=no |
| 10001 | ;; |
| 10002 | esac |
| 10003 | fi |
| 10004 | |
| 10005 | case $host_os in |
| 10006 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 10007 | *djgpp*) |
| 10008 | lt_prog_compiler_pic= |
| 10009 | ;; |
| 10010 | *) |
| 10011 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 10012 | ;; |
| 10013 | esac |
| 10014 | |
| 10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 10016 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 10017 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 10018 | $as_echo_n "(cached) " >&6 |
| 10019 | else |
| 10020 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 10021 | fi |
| 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 10023 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 10024 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 10025 | |
| 10026 | # |
| 10027 | # Check to make sure the PIC flag actually works. |
| 10028 | # |
| 10029 | if test -n "$lt_prog_compiler_pic"; then |
| 10030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 10031 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 10032 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 10033 | $as_echo_n "(cached) " >&6 |
| 10034 | else |
| 10035 | lt_cv_prog_compiler_pic_works=no |
| 10036 | ac_outfile=conftest.$ac_objext |
| 10037 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10038 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 10039 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10040 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10041 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10042 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10043 | # The option is referenced via a variable to avoid confusing sed. |
| 10044 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10045 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10046 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10047 | -e 's:$: $lt_compiler_flag:'` |
| 10048 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10049 | (eval "$lt_compile" 2>conftest.err) |
| 10050 | ac_status=$? |
| 10051 | cat conftest.err >&5 |
| 10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10053 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 10054 | # The compiler can only warn and ignore the option if not recognized |
| 10055 | # So say no if there are warnings other than the usual output. |
| 10056 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 10057 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10058 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 10059 | lt_cv_prog_compiler_pic_works=yes |
| 10060 | fi |
| 10061 | fi |
| 10062 | $RM conftest* |
| 10063 | |
| 10064 | fi |
| 10065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 10066 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 10067 | |
| 10068 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 10069 | case $lt_prog_compiler_pic in |
| 10070 | "" | " "*) ;; |
| 10071 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 10072 | esac |
| 10073 | else |
| 10074 | lt_prog_compiler_pic= |
| 10075 | lt_prog_compiler_can_build_shared=no |
| 10076 | fi |
| 10077 | |
| 10078 | fi |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | # |
| 10091 | # Check to make sure the static flag actually works. |
| 10092 | # |
| 10093 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 10095 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 10096 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 10097 | $as_echo_n "(cached) " >&6 |
| 10098 | else |
| 10099 | lt_cv_prog_compiler_static_works=no |
| 10100 | save_LDFLAGS=$LDFLAGS |
| 10101 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 10102 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10103 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10104 | # The linker can only warn and ignore the option if not recognized |
| 10105 | # So say no if there are warnings |
| 10106 | if test -s conftest.err; then |
| 10107 | # Append any errors to the config.log. |
| 10108 | cat conftest.err 1>&5 |
| 10109 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10110 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10111 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10112 | lt_cv_prog_compiler_static_works=yes |
| 10113 | fi |
| 10114 | else |
| 10115 | lt_cv_prog_compiler_static_works=yes |
| 10116 | fi |
| 10117 | fi |
| 10118 | $RM -r conftest* |
| 10119 | LDFLAGS=$save_LDFLAGS |
| 10120 | |
| 10121 | fi |
| 10122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 10123 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 10124 | |
| 10125 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 10126 | : |
| 10127 | else |
| 10128 | lt_prog_compiler_static= |
| 10129 | fi |
| 10130 | |
| 10131 | |
| 10132 | |
| 10133 | |
| 10134 | |
| 10135 | |
| 10136 | |
| 10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10138 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10139 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10140 | $as_echo_n "(cached) " >&6 |
| 10141 | else |
| 10142 | lt_cv_prog_compiler_c_o=no |
| 10143 | $RM -r conftest 2>/dev/null |
| 10144 | mkdir conftest |
| 10145 | cd conftest |
| 10146 | mkdir out |
| 10147 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10148 | |
| 10149 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10150 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10151 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10152 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10153 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10154 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10155 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10156 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10157 | -e 's:$: $lt_compiler_flag:'` |
| 10158 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10159 | (eval "$lt_compile" 2>out/conftest.err) |
| 10160 | ac_status=$? |
| 10161 | cat out/conftest.err >&5 |
| 10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10163 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10164 | then |
| 10165 | # The compiler can only warn and ignore the option if not recognized |
| 10166 | # So say no if there are warnings |
| 10167 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10168 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10169 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10170 | lt_cv_prog_compiler_c_o=yes |
| 10171 | fi |
| 10172 | fi |
| 10173 | chmod u+w . 2>&5 |
| 10174 | $RM conftest* |
| 10175 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10176 | # template instantiation |
| 10177 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10178 | $RM out/* && rmdir out |
| 10179 | cd .. |
| 10180 | $RM -r conftest |
| 10181 | $RM conftest* |
| 10182 | |
| 10183 | fi |
| 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10185 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 10186 | |
| 10187 | |
| 10188 | |
| 10189 | |
| 10190 | |
| 10191 | |
| 10192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 10193 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 10194 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 10195 | $as_echo_n "(cached) " >&6 |
| 10196 | else |
| 10197 | lt_cv_prog_compiler_c_o=no |
| 10198 | $RM -r conftest 2>/dev/null |
| 10199 | mkdir conftest |
| 10200 | cd conftest |
| 10201 | mkdir out |
| 10202 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10203 | |
| 10204 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 10205 | # Insert the option either (1) after the last *FLAGS variable, or |
| 10206 | # (2) before a word containing "conftest.", or (3) at the end. |
| 10207 | # Note that $ac_compile itself does not contain backslashes and begins |
| 10208 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 10209 | lt_compile=`echo "$ac_compile" | $SED \ |
| 10210 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 10211 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 10212 | -e 's:$: $lt_compiler_flag:'` |
| 10213 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 10214 | (eval "$lt_compile" 2>out/conftest.err) |
| 10215 | ac_status=$? |
| 10216 | cat out/conftest.err >&5 |
| 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10218 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 10219 | then |
| 10220 | # The compiler can only warn and ignore the option if not recognized |
| 10221 | # So say no if there are warnings |
| 10222 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 10223 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 10224 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 10225 | lt_cv_prog_compiler_c_o=yes |
| 10226 | fi |
| 10227 | fi |
| 10228 | chmod u+w . 2>&5 |
| 10229 | $RM conftest* |
| 10230 | # SGI C++ compiler will create directory out/ii_files/ for |
| 10231 | # template instantiation |
| 10232 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 10233 | $RM out/* && rmdir out |
| 10234 | cd .. |
| 10235 | $RM -r conftest |
| 10236 | $RM conftest* |
| 10237 | |
| 10238 | fi |
| 10239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 10240 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 10241 | |
| 10242 | |
| 10243 | |
| 10244 | |
| 10245 | hard_links=nottested |
| 10246 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 10247 | # do not overwrite the value of need_locks provided by the user |
| 10248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 10249 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 10250 | hard_links=yes |
| 10251 | $RM conftest* |
| 10252 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10253 | touch conftest.a |
| 10254 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 10255 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 10256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 10257 | $as_echo "$hard_links" >&6; } |
| 10258 | if test no = "$hard_links"; then |
| 10259 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 10260 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 10261 | need_locks=warn |
| 10262 | fi |
| 10263 | else |
| 10264 | need_locks=no |
| 10265 | fi |
| 10266 | |
| 10267 | |
| 10268 | |
| 10269 | |
| 10270 | |
| 10271 | |
| 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 10273 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 10274 | |
| 10275 | runpath_var= |
| 10276 | allow_undefined_flag= |
| 10277 | always_export_symbols=no |
| 10278 | archive_cmds= |
| 10279 | archive_expsym_cmds= |
| 10280 | compiler_needs_object=no |
| 10281 | enable_shared_with_static_runtimes=no |
| 10282 | export_dynamic_flag_spec= |
| 10283 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 10284 | hardcode_automatic=no |
| 10285 | hardcode_direct=no |
| 10286 | hardcode_direct_absolute=no |
| 10287 | hardcode_libdir_flag_spec= |
| 10288 | hardcode_libdir_separator= |
| 10289 | hardcode_minus_L=no |
| 10290 | hardcode_shlibpath_var=unsupported |
| 10291 | inherit_rpath=no |
| 10292 | link_all_deplibs=unknown |
| 10293 | module_cmds= |
| 10294 | module_expsym_cmds= |
| 10295 | old_archive_from_new_cmds= |
| 10296 | old_archive_from_expsyms_cmds= |
| 10297 | thread_safe_flag_spec= |
| 10298 | whole_archive_flag_spec= |
| 10299 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 10300 | # included in the symbol list |
| 10301 | include_expsyms= |
| 10302 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 10303 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 10304 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 10305 | # as well as any symbol that contains 'd'. |
| 10306 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 10307 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 10308 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 10309 | # the symbol is explicitly referenced. Since portable code cannot |
| 10310 | # rely on this symbol name, it's probably fine to never include it in |
| 10311 | # preloaded symbol tables. |
| 10312 | # Exclude shared library initialization/finalization symbols. |
| 10313 | extract_expsyms_cmds= |
| 10314 | |
| 10315 | case $host_os in |
| 10316 | cygwin* | mingw* | pw32* | cegcc*) |
| 10317 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 10318 | # When not using gcc, we currently assume that we are using |
| 10319 | # Microsoft Visual C++. |
| 10320 | if test yes != "$GCC"; then |
| 10321 | with_gnu_ld=no |
| 10322 | fi |
| 10323 | ;; |
| 10324 | interix*) |
| 10325 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 10326 | with_gnu_ld=yes |
| 10327 | ;; |
| 10328 | openbsd* | bitrig*) |
| 10329 | with_gnu_ld=no |
| 10330 | ;; |
| 10331 | linux* | k*bsd*-gnu | gnu*) |
| 10332 | link_all_deplibs=no |
| 10333 | ;; |
| 10334 | esac |
| 10335 | |
| 10336 | ld_shlibs=yes |
| 10337 | |
| 10338 | # On some targets, GNU ld is compatible enough with the native linker |
| 10339 | # that we're better off using the native interface for both. |
| 10340 | lt_use_gnu_ld_interface=no |
| 10341 | if test yes = "$with_gnu_ld"; then |
| 10342 | case $host_os in |
| 10343 | aix*) |
| 10344 | # The AIX port of GNU ld has always aspired to compatibility |
| 10345 | # with the native linker. However, as the warning in the GNU ld |
| 10346 | # block says, versions before 2.19.5* couldn't really create working |
| 10347 | # shared libraries, regardless of the interface used. |
| 10348 | case `$LD -v 2>&1` in |
| 10349 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 10350 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 10351 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 10352 | *) |
| 10353 | lt_use_gnu_ld_interface=yes |
| 10354 | ;; |
| 10355 | esac |
| 10356 | ;; |
| 10357 | *) |
| 10358 | lt_use_gnu_ld_interface=yes |
| 10359 | ;; |
| 10360 | esac |
| 10361 | fi |
| 10362 | |
| 10363 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 10364 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 10365 | wlarc='$wl' |
| 10366 | |
| 10367 | # Set some defaults for GNU ld with shared library support. These |
| 10368 | # are reset later if shared libraries are not supported. Putting them |
| 10369 | # here allows them to be overridden if necessary. |
| 10370 | runpath_var=LD_RUN_PATH |
| 10371 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10372 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 10373 | # ancient GNU ld didn't support --whole-archive et. al. |
| 10374 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 10375 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 10376 | else |
| 10377 | whole_archive_flag_spec= |
| 10378 | fi |
| 10379 | supports_anon_versioning=no |
| 10380 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 10381 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 10382 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 10383 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 10384 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 10385 | *\ 2.11.*) ;; # other 2.11 versions |
| 10386 | *) supports_anon_versioning=yes ;; |
| 10387 | esac |
| 10388 | |
| 10389 | # See if GNU ld supports shared libraries. |
| 10390 | case $host_os in |
| 10391 | aix[3-9]*) |
| 10392 | # On AIX/PPC, the GNU linker is very broken |
| 10393 | if test ia64 != "$host_cpu"; then |
| 10394 | ld_shlibs=no |
| 10395 | cat <<_LT_EOF 1>&2 |
| 10396 | |
| 10397 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 10398 | *** to be unable to reliably create shared libraries on AIX. |
| 10399 | *** Therefore, libtool is disabling shared libraries support. If you |
| 10400 | *** really care for shared libraries, you may want to install binutils |
| 10401 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 10402 | *** You will then need to restart the configuration process. |
| 10403 | |
| 10404 | _LT_EOF |
| 10405 | fi |
| 10406 | ;; |
| 10407 | |
| 10408 | amigaos*) |
| 10409 | case $host_cpu in |
| 10410 | powerpc) |
| 10411 | # see comment about AmigaOS4 .so support |
| 10412 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10413 | archive_expsym_cmds='' |
| 10414 | ;; |
| 10415 | m68k) |
| 10416 | 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)' |
| 10417 | hardcode_libdir_flag_spec='-L$libdir' |
| 10418 | hardcode_minus_L=yes |
| 10419 | ;; |
| 10420 | esac |
| 10421 | ;; |
| 10422 | |
| 10423 | beos*) |
| 10424 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10425 | allow_undefined_flag=unsupported |
| 10426 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 10427 | # support --undefined. This deserves some investigation. FIXME |
| 10428 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10429 | else |
| 10430 | ld_shlibs=no |
| 10431 | fi |
| 10432 | ;; |
| 10433 | |
| 10434 | cygwin* | mingw* | pw32* | cegcc*) |
| 10435 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 10436 | # as there is no search path for DLLs. |
| 10437 | hardcode_libdir_flag_spec='-L$libdir' |
| 10438 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 10439 | allow_undefined_flag=unsupported |
| 10440 | always_export_symbols=no |
| 10441 | enable_shared_with_static_runtimes=yes |
| 10442 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 10443 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 10444 | |
| 10445 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 10446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10447 | # If the export-symbols file already is a .def file, use it as |
| 10448 | # is; otherwise, prepend EXPORTS... |
| 10449 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 10450 | cp $export_symbols $output_objdir/$soname.def; |
| 10451 | else |
| 10452 | echo EXPORTS > $output_objdir/$soname.def; |
| 10453 | cat $export_symbols >> $output_objdir/$soname.def; |
| 10454 | fi~ |
| 10455 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 10456 | else |
| 10457 | ld_shlibs=no |
| 10458 | fi |
| 10459 | ;; |
| 10460 | |
| 10461 | haiku*) |
| 10462 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10463 | link_all_deplibs=yes |
| 10464 | ;; |
| 10465 | |
| 10466 | os2*) |
| 10467 | hardcode_libdir_flag_spec='-L$libdir' |
| 10468 | hardcode_minus_L=yes |
| 10469 | allow_undefined_flag=unsupported |
| 10470 | shrext_cmds=.dll |
| 10471 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10472 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10473 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10474 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10475 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 10476 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10477 | emximp -o $lib $output_objdir/$libname.def' |
| 10478 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 10479 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 10480 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 10481 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 10482 | prefix_cmds="$SED"~ |
| 10483 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 10484 | prefix_cmds="$prefix_cmds -e 1d"; |
| 10485 | fi~ |
| 10486 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 10487 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 10488 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 10489 | emximp -o $lib $output_objdir/$libname.def' |
| 10490 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 10491 | enable_shared_with_static_runtimes=yes |
| 10492 | ;; |
| 10493 | |
| 10494 | interix[3-9]*) |
| 10495 | hardcode_direct=no |
| 10496 | hardcode_shlibpath_var=no |
| 10497 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 10498 | export_dynamic_flag_spec='$wl-E' |
| 10499 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 10500 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 10501 | # default) and relocated if they conflict, which is a slow very memory |
| 10502 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 10503 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 10504 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 10505 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 10506 | 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' |
| 10507 | ;; |
| 10508 | |
| 10509 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 10510 | tmp_diet=no |
| 10511 | if test linux-dietlibc = "$host_os"; then |
| 10512 | case $cc_basename in |
| 10513 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 10514 | esac |
| 10515 | fi |
| 10516 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 10517 | && test no = "$tmp_diet" |
| 10518 | then |
| 10519 | tmp_addflag=' $pic_flag' |
| 10520 | tmp_sharedflag='-shared' |
| 10521 | case $cc_basename,$host_cpu in |
| 10522 | pgcc*) # Portland Group C compiler |
| 10523 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 10524 | tmp_addflag=' $pic_flag' |
| 10525 | ;; |
| 10526 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 10527 | # Portland Group f77 and f90 compilers |
| 10528 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 10529 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 10530 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 10531 | tmp_addflag=' -i_dynamic' ;; |
| 10532 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 10533 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 10534 | ifc* | ifort*) # Intel Fortran compiler |
| 10535 | tmp_addflag=' -nofor_main' ;; |
| 10536 | lf95*) # Lahey Fortran 8.1 |
| 10537 | whole_archive_flag_spec= |
| 10538 | tmp_sharedflag='--shared' ;; |
| 10539 | nagfor*) # NAGFOR 5.3 |
| 10540 | tmp_sharedflag='-Wl,-shared' ;; |
| 10541 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 10542 | tmp_sharedflag='-qmkshrobj' |
| 10543 | tmp_addflag= ;; |
| 10544 | nvcc*) # Cuda Compiler Driver 2.2 |
| 10545 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 10546 | compiler_needs_object=yes |
| 10547 | ;; |
| 10548 | esac |
| 10549 | case `$CC -V 2>&1 | sed 5q` in |
| 10550 | *Sun\ C*) # Sun C 5.9 |
| 10551 | whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 10552 | compiler_needs_object=yes |
| 10553 | tmp_sharedflag='-G' ;; |
| 10554 | *Sun\ F*) # Sun Fortran 8.3 |
| 10555 | tmp_sharedflag='-G' ;; |
| 10556 | esac |
| 10557 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10558 | |
| 10559 | if test yes = "$supports_anon_versioning"; then |
| 10560 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10561 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10562 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10563 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 10564 | fi |
| 10565 | |
| 10566 | case $cc_basename in |
| 10567 | tcc*) |
| 10568 | export_dynamic_flag_spec='-rdynamic' |
| 10569 | ;; |
| 10570 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 10571 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 10572 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 10573 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10574 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 10575 | if test yes = "$supports_anon_versioning"; then |
| 10576 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 10577 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 10578 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 10579 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 10580 | fi |
| 10581 | ;; |
| 10582 | esac |
| 10583 | else |
| 10584 | ld_shlibs=no |
| 10585 | fi |
| 10586 | ;; |
| 10587 | |
| 10588 | netbsd* | netbsdelf*-gnu) |
| 10589 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10590 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 10591 | wlarc= |
| 10592 | else |
| 10593 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10594 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10595 | fi |
| 10596 | ;; |
| 10597 | |
| 10598 | solaris*) |
| 10599 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 10600 | ld_shlibs=no |
| 10601 | cat <<_LT_EOF 1>&2 |
| 10602 | |
| 10603 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 10604 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 10605 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10606 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 10607 | *** your PATH or compiler configuration so that the native linker is |
| 10608 | *** used, and then restart. |
| 10609 | |
| 10610 | _LT_EOF |
| 10611 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10612 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10613 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10614 | else |
| 10615 | ld_shlibs=no |
| 10616 | fi |
| 10617 | ;; |
| 10618 | |
| 10619 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 10620 | case `$LD -v 2>&1` in |
| 10621 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 10622 | ld_shlibs=no |
| 10623 | cat <<_LT_EOF 1>&2 |
| 10624 | |
| 10625 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 10626 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 10627 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 10628 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 10629 | *** your PATH or compiler configuration so that the native linker is |
| 10630 | *** used, and then restart. |
| 10631 | |
| 10632 | _LT_EOF |
| 10633 | ;; |
| 10634 | *) |
| 10635 | # For security reasons, it is highly recommended that you always |
| 10636 | # use absolute paths for naming shared libraries, and exclude the |
| 10637 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 10638 | # requires that you compile everything twice, which is a pain. |
| 10639 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10640 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 10641 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10642 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10643 | else |
| 10644 | ld_shlibs=no |
| 10645 | fi |
| 10646 | ;; |
| 10647 | esac |
| 10648 | ;; |
| 10649 | |
| 10650 | sunos4*) |
| 10651 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10652 | wlarc= |
| 10653 | hardcode_direct=yes |
| 10654 | hardcode_shlibpath_var=no |
| 10655 | ;; |
| 10656 | |
| 10657 | *) |
| 10658 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 10659 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10660 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 10661 | else |
| 10662 | ld_shlibs=no |
| 10663 | fi |
| 10664 | ;; |
| 10665 | esac |
| 10666 | |
| 10667 | if test no = "$ld_shlibs"; then |
| 10668 | runpath_var= |
| 10669 | hardcode_libdir_flag_spec= |
| 10670 | export_dynamic_flag_spec= |
| 10671 | whole_archive_flag_spec= |
| 10672 | fi |
| 10673 | else |
| 10674 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 10675 | case $host_os in |
| 10676 | aix3*) |
| 10677 | allow_undefined_flag=unsupported |
| 10678 | always_export_symbols=yes |
| 10679 | 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' |
| 10680 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 10681 | # are no directories specified by -L. |
| 10682 | hardcode_minus_L=yes |
| 10683 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 10684 | # Neither direct hardcoding nor static linking is supported with a |
| 10685 | # broken collect2. |
| 10686 | hardcode_direct=unsupported |
| 10687 | fi |
| 10688 | ;; |
| 10689 | |
| 10690 | aix[4-9]*) |
| 10691 | if test ia64 = "$host_cpu"; then |
| 10692 | # On IA64, the linker does run time linking by default, so we don't |
| 10693 | # have to do anything special. |
| 10694 | aix_use_runtimelinking=no |
| 10695 | exp_sym_flag='-Bexport' |
| 10696 | no_entry_flag= |
| 10697 | else |
| 10698 | # If we're using GNU nm, then we don't want the "-C" option. |
| 10699 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 10700 | # Without the "-l" option, or with the "-B" option, AIX nm treats |
| 10701 | # weak defined symbols like other global defined symbols, whereas |
| 10702 | # GNU nm marks them as "W". |
| 10703 | # While the 'weak' keyword is ignored in the Export File, we need |
| 10704 | # it in the Import File for the 'aix-soname' feature, so we have |
| 10705 | # to replace the "-B" option with "-P" for AIX nm. |
| 10706 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 10707 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 10708 | else |
| 10709 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 10710 | fi |
| 10711 | aix_use_runtimelinking=no |
| 10712 | |
| 10713 | # Test if we are trying to use run time linking or normal |
| 10714 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 10715 | # have runtime linking enabled, and use it for executables. |
| 10716 | # For shared libraries, we enable/disable runtime linking |
| 10717 | # depending on the kind of the shared library created - |
| 10718 | # when "with_aix_soname,aix_use_runtimelinking" is: |
| 10719 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 10720 | # "aix,yes" lib.so shared, rtl:yes, for executables |
| 10721 | # lib.a static archive |
| 10722 | # "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 10723 | # lib.a(lib.so.V) shared, rtl:no, for executables |
| 10724 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 10725 | # lib.a(lib.so.V) shared, rtl:no |
| 10726 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 10727 | # lib.a static archive |
| 10728 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 10729 | for ld_flag in $LDFLAGS; do |
| 10730 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 10731 | aix_use_runtimelinking=yes |
| 10732 | break |
| 10733 | fi |
| 10734 | done |
| 10735 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 10736 | # With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 10737 | # so we don't have lib.a shared libs to link our executables. |
| 10738 | # We have to force runtime linking in this case. |
| 10739 | aix_use_runtimelinking=yes |
| 10740 | LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 10741 | fi |
| 10742 | ;; |
| 10743 | esac |
| 10744 | |
| 10745 | exp_sym_flag='-bexport' |
| 10746 | no_entry_flag='-bnoentry' |
| 10747 | fi |
| 10748 | |
| 10749 | # When large executables or shared objects are built, AIX ld can |
| 10750 | # have problems creating the table of contents. If linking a library |
| 10751 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 10752 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 10753 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 10754 | |
| 10755 | archive_cmds='' |
| 10756 | hardcode_direct=yes |
| 10757 | hardcode_direct_absolute=yes |
| 10758 | hardcode_libdir_separator=':' |
| 10759 | link_all_deplibs=yes |
| 10760 | file_list_spec='$wl-f,' |
| 10761 | case $with_aix_soname,$aix_use_runtimelinking in |
| 10762 | aix,*) ;; # traditional, no import file |
| 10763 | svr4,* | *,yes) # use import file |
| 10764 | # The Import File defines what to hardcode. |
| 10765 | hardcode_direct=no |
| 10766 | hardcode_direct_absolute=no |
| 10767 | ;; |
| 10768 | esac |
| 10769 | |
| 10770 | if test yes = "$GCC"; then |
| 10771 | case $host_os in aix4.[012]|aix4.[012].*) |
| 10772 | # We only want to do this on AIX 4.2 and lower, the check |
| 10773 | # below for broken collect2 doesn't work under 4.3+ |
| 10774 | collect2name=`$CC -print-prog-name=collect2` |
| 10775 | if test -f "$collect2name" && |
| 10776 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 10777 | then |
| 10778 | # We have reworked collect2 |
| 10779 | : |
| 10780 | else |
| 10781 | # We have old collect2 |
| 10782 | hardcode_direct=unsupported |
| 10783 | # It fails to find uninstalled libraries when the uninstalled |
| 10784 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 10785 | # to unsupported forces relinking |
| 10786 | hardcode_minus_L=yes |
| 10787 | hardcode_libdir_flag_spec='-L$libdir' |
| 10788 | hardcode_libdir_separator= |
| 10789 | fi |
| 10790 | ;; |
| 10791 | esac |
| 10792 | shared_flag='-shared' |
| 10793 | if test yes = "$aix_use_runtimelinking"; then |
| 10794 | shared_flag="$shared_flag "'$wl-G' |
| 10795 | fi |
| 10796 | # Need to ensure runtime linking is disabled for the traditional |
| 10797 | # shared library, or the linker may eventually find shared libraries |
| 10798 | # /with/ Import File - we do not want to mix them. |
| 10799 | shared_flag_aix='-shared' |
| 10800 | shared_flag_svr4='-shared $wl-G' |
| 10801 | else |
| 10802 | # not using gcc |
| 10803 | if test ia64 = "$host_cpu"; then |
| 10804 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 10805 | # chokes on -Wl,-G. The following line is correct: |
| 10806 | shared_flag='-G' |
| 10807 | else |
| 10808 | if test yes = "$aix_use_runtimelinking"; then |
| 10809 | shared_flag='$wl-G' |
| 10810 | else |
| 10811 | shared_flag='$wl-bM:SRE' |
| 10812 | fi |
| 10813 | shared_flag_aix='$wl-bM:SRE' |
| 10814 | shared_flag_svr4='$wl-G' |
| 10815 | fi |
| 10816 | fi |
| 10817 | |
| 10818 | export_dynamic_flag_spec='$wl-bexpall' |
| 10819 | # It seems that -bexpall does not export symbols beginning with |
| 10820 | # underscore (_), so it is better to generate a list of symbols to export. |
| 10821 | always_export_symbols=yes |
| 10822 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 10823 | # Warning - without using the other runtime loading flags (-brtl), |
| 10824 | # -berok will link without error, but may produce a broken library. |
| 10825 | allow_undefined_flag='-berok' |
| 10826 | # Determine the default libpath from the value encoded in an |
| 10827 | # empty executable. |
| 10828 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 10829 | aix_libpath=$lt_cv_aix_libpath |
| 10830 | else |
| 10831 | if ${lt_cv_aix_libpath_+:} false; then : |
| 10832 | $as_echo_n "(cached) " >&6 |
| 10833 | else |
| 10834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10835 | /* end confdefs.h. */ |
| 10836 | |
| 10837 | int |
| 10838 | main () |
| 10839 | { |
| 10840 | |
| 10841 | ; |
| 10842 | return 0; |
| 10843 | } |
| 10844 | _ACEOF |
| 10845 | if ac_fn_c_try_link "$LINENO"; then : |
| 10846 | |
| 10847 | lt_aix_libpath_sed=' |
| 10848 | /Import File Strings/,/^$/ { |
| 10849 | /^0/ { |
| 10850 | s/^0 *\([^ ]*\) *$/\1/ |
| 10851 | p |
| 10852 | } |
| 10853 | }' |
| 10854 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 10855 | # Check for a 64-bit object if we didn't find anything. |
| 10856 | if test -z "$lt_cv_aix_libpath_"; then |
| 10857 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 10858 | fi |
| 10859 | fi |
| 10860 | rm -f core conftest.err conftest.$ac_objext \ |
| 10861 | conftest$ac_exeext conftest.$ac_ext |
| 10862 | if test -z "$lt_cv_aix_libpath_"; then |
| 10863 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 10864 | fi |
| 10865 | |
| 10866 | fi |
| 10867 | |
| 10868 | aix_libpath=$lt_cv_aix_libpath_ |
| 10869 | fi |
| 10870 | |
| 10871 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10872 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 10873 | else |
| 10874 | if test ia64 = "$host_cpu"; then |
| 10875 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 10876 | allow_undefined_flag="-z nodefs" |
| 10877 | 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" |
| 10878 | else |
| 10879 | # Determine the default libpath from the value encoded in an |
| 10880 | # empty executable. |
| 10881 | if test set = "${lt_cv_aix_libpath+set}"; then |
| 10882 | aix_libpath=$lt_cv_aix_libpath |
| 10883 | else |
| 10884 | if ${lt_cv_aix_libpath_+:} false; then : |
| 10885 | $as_echo_n "(cached) " >&6 |
| 10886 | else |
| 10887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10888 | /* end confdefs.h. */ |
| 10889 | |
| 10890 | int |
| 10891 | main () |
| 10892 | { |
| 10893 | |
| 10894 | ; |
| 10895 | return 0; |
| 10896 | } |
| 10897 | _ACEOF |
| 10898 | if ac_fn_c_try_link "$LINENO"; then : |
| 10899 | |
| 10900 | lt_aix_libpath_sed=' |
| 10901 | /Import File Strings/,/^$/ { |
| 10902 | /^0/ { |
| 10903 | s/^0 *\([^ ]*\) *$/\1/ |
| 10904 | p |
| 10905 | } |
| 10906 | }' |
| 10907 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 10908 | # Check for a 64-bit object if we didn't find anything. |
| 10909 | if test -z "$lt_cv_aix_libpath_"; then |
| 10910 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 10911 | fi |
| 10912 | fi |
| 10913 | rm -f core conftest.err conftest.$ac_objext \ |
| 10914 | conftest$ac_exeext conftest.$ac_ext |
| 10915 | if test -z "$lt_cv_aix_libpath_"; then |
| 10916 | lt_cv_aix_libpath_=/usr/lib:/lib |
| 10917 | fi |
| 10918 | |
| 10919 | fi |
| 10920 | |
| 10921 | aix_libpath=$lt_cv_aix_libpath_ |
| 10922 | fi |
| 10923 | |
| 10924 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 10925 | # Warning - without using the other run time loading flags, |
| 10926 | # -berok will link without error, but may produce a broken library. |
| 10927 | no_undefined_flag=' $wl-bernotok' |
| 10928 | allow_undefined_flag=' $wl-berok' |
| 10929 | if test yes = "$with_gnu_ld"; then |
| 10930 | # We only use this code for GNU lds that support --whole-archive. |
| 10931 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 10932 | else |
| 10933 | # Exported symbols can be pulled into shared objects from archives |
| 10934 | whole_archive_flag_spec='$convenience' |
| 10935 | fi |
| 10936 | archive_cmds_need_lc=yes |
| 10937 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 10938 | # -brtl affects multiple linker settings, -berok does not and is overridden later |
| 10939 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 10940 | if test svr4 != "$with_aix_soname"; then |
| 10941 | # This is similar to how AIX traditionally builds its shared libraries. |
| 10942 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 10943 | fi |
| 10944 | if test aix != "$with_aix_soname"; then |
| 10945 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 10946 | else |
| 10947 | # used by -dlpreopen to get the symbols |
| 10948 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 10949 | fi |
| 10950 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 10951 | fi |
| 10952 | fi |
| 10953 | ;; |
| 10954 | |
| 10955 | amigaos*) |
| 10956 | case $host_cpu in |
| 10957 | powerpc) |
| 10958 | # see comment about AmigaOS4 .so support |
| 10959 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 10960 | archive_expsym_cmds='' |
| 10961 | ;; |
| 10962 | m68k) |
| 10963 | 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)' |
| 10964 | hardcode_libdir_flag_spec='-L$libdir' |
| 10965 | hardcode_minus_L=yes |
| 10966 | ;; |
| 10967 | esac |
| 10968 | ;; |
| 10969 | |
| 10970 | bsdi[45]*) |
| 10971 | export_dynamic_flag_spec=-rdynamic |
| 10972 | ;; |
| 10973 | |
| 10974 | cygwin* | mingw* | pw32* | cegcc*) |
| 10975 | # When not using gcc, we currently assume that we are using |
| 10976 | # Microsoft Visual C++. |
| 10977 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 10978 | # no search path for DLLs. |
| 10979 | case $cc_basename in |
| 10980 | cl*) |
| 10981 | # Native MSVC |
| 10982 | hardcode_libdir_flag_spec=' ' |
| 10983 | allow_undefined_flag=unsupported |
| 10984 | always_export_symbols=yes |
| 10985 | file_list_spec='@' |
| 10986 | # Tell ltmain to make .lib files, not .a files. |
| 10987 | libext=lib |
| 10988 | # Tell ltmain to make .dll files, not .so files. |
| 10989 | shrext_cmds=.dll |
| 10990 | # FIXME: Setting linknames here is a bad hack. |
| 10991 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 10992 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 10993 | cp "$export_symbols" "$output_objdir/$soname.def"; |
| 10994 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 10995 | else |
| 10996 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 10997 | fi~ |
| 10998 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 10999 | linknames=' |
| 11000 | # The linker will not automatically build a static lib if we build a DLL. |
| 11001 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 11002 | enable_shared_with_static_runtimes=yes |
| 11003 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 11004 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 11005 | # Don't use ranlib |
| 11006 | old_postinstall_cmds='chmod 644 $oldlib' |
| 11007 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 11008 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 11009 | case $lt_outputfile in |
| 11010 | *.exe|*.EXE) ;; |
| 11011 | *) |
| 11012 | lt_outputfile=$lt_outputfile.exe |
| 11013 | lt_tool_outputfile=$lt_tool_outputfile.exe |
| 11014 | ;; |
| 11015 | esac~ |
| 11016 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 11017 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 11018 | $RM "$lt_outputfile.manifest"; |
| 11019 | fi' |
| 11020 | ;; |
| 11021 | *) |
| 11022 | # Assume MSVC wrapper |
| 11023 | hardcode_libdir_flag_spec=' ' |
| 11024 | allow_undefined_flag=unsupported |
| 11025 | # Tell ltmain to make .lib files, not .a files. |
| 11026 | libext=lib |
| 11027 | # Tell ltmain to make .dll files, not .so files. |
| 11028 | shrext_cmds=.dll |
| 11029 | # FIXME: Setting linknames here is a bad hack. |
| 11030 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 11031 | # The linker will automatically build a .lib file if we build a DLL. |
| 11032 | old_archive_from_new_cmds='true' |
| 11033 | # FIXME: Should let the user specify the lib program. |
| 11034 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 11035 | enable_shared_with_static_runtimes=yes |
| 11036 | ;; |
| 11037 | esac |
| 11038 | ;; |
| 11039 | |
| 11040 | darwin* | rhapsody*) |
| 11041 | |
| 11042 | |
| 11043 | archive_cmds_need_lc=no |
| 11044 | hardcode_direct=no |
| 11045 | hardcode_automatic=yes |
| 11046 | hardcode_shlibpath_var=unsupported |
| 11047 | if test yes = "$lt_cv_ld_force_load"; then |
| 11048 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 11049 | |
| 11050 | else |
| 11051 | whole_archive_flag_spec='' |
| 11052 | fi |
| 11053 | link_all_deplibs=yes |
| 11054 | allow_undefined_flag=$_lt_dar_allow_undefined |
| 11055 | case $cc_basename in |
| 11056 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 11057 | *) _lt_dar_can_shared=$GCC ;; |
| 11058 | esac |
| 11059 | if test yes = "$_lt_dar_can_shared"; then |
| 11060 | output_verbose_link_cmd=func_echo_all |
| 11061 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 11062 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 11063 | 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" |
| 11064 | 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" |
| 11065 | |
| 11066 | else |
| 11067 | ld_shlibs=no |
| 11068 | fi |
| 11069 | |
| 11070 | ;; |
| 11071 | |
| 11072 | dgux*) |
| 11073 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 11074 | hardcode_libdir_flag_spec='-L$libdir' |
| 11075 | hardcode_shlibpath_var=no |
| 11076 | ;; |
| 11077 | |
| 11078 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 11079 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 11080 | # does not break anything, and helps significantly (at the cost of a little |
| 11081 | # extra space). |
| 11082 | freebsd2.2*) |
| 11083 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 11084 | hardcode_libdir_flag_spec='-R$libdir' |
| 11085 | hardcode_direct=yes |
| 11086 | hardcode_shlibpath_var=no |
| 11087 | ;; |
| 11088 | |
| 11089 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 11090 | freebsd2.*) |
| 11091 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 11092 | hardcode_direct=yes |
| 11093 | hardcode_minus_L=yes |
| 11094 | hardcode_shlibpath_var=no |
| 11095 | ;; |
| 11096 | |
| 11097 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 11098 | freebsd* | dragonfly*) |
| 11099 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 11100 | hardcode_libdir_flag_spec='-R$libdir' |
| 11101 | hardcode_direct=yes |
| 11102 | hardcode_shlibpath_var=no |
| 11103 | ;; |
| 11104 | |
| 11105 | hpux9*) |
| 11106 | if test yes = "$GCC"; then |
| 11107 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11108 | else |
| 11109 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 11110 | fi |
| 11111 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11112 | hardcode_libdir_separator=: |
| 11113 | hardcode_direct=yes |
| 11114 | |
| 11115 | # hardcode_minus_L: Not really in the search PATH, |
| 11116 | # but as the default location of the library. |
| 11117 | hardcode_minus_L=yes |
| 11118 | export_dynamic_flag_spec='$wl-E' |
| 11119 | ;; |
| 11120 | |
| 11121 | hpux10*) |
| 11122 | if test yes,no = "$GCC,$with_gnu_ld"; then |
| 11123 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 11124 | else |
| 11125 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 11126 | fi |
| 11127 | if test no = "$with_gnu_ld"; then |
| 11128 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 11129 | hardcode_libdir_separator=: |
| 11130 | hardcode_direct=yes |
| 11131 | hardcode_direct_absolute=yes |
| 11132 | export_dynamic_flag_spec='$wl-E' |
| 11133 | # hardcode_minus_L: Not really in the search PATH, |
| 11134 | # but as the default location of the library. |
| 11135 | hardcode_minus_L=yes |
| 11136 | fi |
| 11137 |