3891 | | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 4743 | cat >conftest.$ac_ext <<_ACEOF |
| 4744 | /* confdefs.h. */ |
| 4745 | _ACEOF |
| 4746 | cat confdefs.h >>conftest.$ac_ext |
| 4747 | cat >>conftest.$ac_ext <<_ACEOF |
| 4748 | /* end confdefs.h. */ |
| 4749 | |
| 4750 | int |
| 4751 | main () |
| 4752 | { |
| 4753 | |
| 4754 | ; |
| 4755 | return 0; |
| 4756 | } |
| 4757 | _ACEOF |
| 4758 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4760 | (eval $ac_link) 2>conftest.er1 |
| 4761 | ac_status=$? |
| 4762 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4763 | rm -f conftest.er1 |
| 4764 | cat conftest.err >&5 |
| 4765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4766 | (exit $ac_status); } && |
| 4767 | { ac_try='test -z "$ac_c_werror_flag" |
| 4768 | || test ! -s conftest.err' |
| 4769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4770 | (eval $ac_try) 2>&5 |
| 4771 | ac_status=$? |
| 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4773 | (exit $ac_status); }; } && |
| 4774 | { ac_try='test -s conftest$ac_exeext' |
| 4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4776 | (eval $ac_try) 2>&5 |
| 4777 | ac_status=$? |
| 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4779 | (exit $ac_status); }; }; then |
| 4780 | lt_cv_cc_needs_belf=yes |
| 4781 | else |
| 4782 | echo "$as_me: failed program was:" >&5 |
| 4783 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4784 | |
| 4785 | lt_cv_cc_needs_belf=no |
| 4786 | fi |
| 4787 | rm -f conftest.err conftest.$ac_objext \ |
| 4788 | conftest$ac_exeext conftest.$ac_ext |
| 4789 | ac_ext=c |
| 4790 | ac_cpp='$CPP $CPPFLAGS' |
| 4791 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4792 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4793 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4794 | |
| 4795 | fi |
| 4796 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 4797 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 4798 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 4799 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 4800 | CFLAGS="$SAVE_CFLAGS" |
| 4801 | fi |
| 4802 | ;; |
| 4803 | sparc*-*solaris*) |
| 4804 | # Find out which ABI we are using. |
| 4805 | echo 'int i;' > conftest.$ac_ext |
| 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4807 | (eval $ac_compile) 2>&5 |
| 4808 | ac_status=$? |
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4810 | (exit $ac_status); }; then |
| 4811 | case `/usr/bin/file conftest.o` in |
| 4812 | *64-bit*) |
| 4813 | case $lt_cv_prog_gnu_ld in |
| 4814 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 4815 | *) LD="${LD-ld} -64" ;; |
| 4816 | esac |
| 4817 | ;; |
| 4818 | esac |
| 4819 | fi |
| 4820 | rm -rf conftest* |
| 4821 | ;; |
| 4822 | |
| 4823 | |
| 4824 | esac |
| 4825 | |
| 4826 | need_locks="$enable_libtool_lock" |
| 4827 | |
| 4828 | |
| 4829 | ac_ext=c |
| 4830 | ac_cpp='$CPP $CPPFLAGS' |
| 4831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4834 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4835 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 4836 | # On Suns, sometimes $CPP names a directory. |
| 4837 | if test -n "$CPP" && test -d "$CPP"; then |
| 4838 | CPP= |
| 4839 | fi |
| 4840 | if test -z "$CPP"; then |
| 4841 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4843 | else |
| 4844 | # Double quotes because CPP needs to be expanded |
| 4845 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4846 | do |
| 4847 | ac_preproc_ok=false |
| 4848 | for ac_c_preproc_warn_flag in '' yes |
| 4849 | do |
| 4850 | # Use a header file that comes with gcc, so configuring glibc |
| 4851 | # with a fresh cross-compiler works. |
| 4852 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4853 | # <limits.h> exists even on freestanding compilers. |
| 4854 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4855 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4856 | cat >conftest.$ac_ext <<_ACEOF |
| 4857 | /* confdefs.h. */ |
| 4858 | _ACEOF |
| 4859 | cat confdefs.h >>conftest.$ac_ext |
| 4860 | cat >>conftest.$ac_ext <<_ACEOF |
| 4861 | /* end confdefs.h. */ |
| 4862 | #ifdef __STDC__ |
| 4863 | # include <limits.h> |
| 4864 | #else |
| 4865 | # include <assert.h> |
| 4866 | #endif |
| 4867 | Syntax error |
| 4868 | _ACEOF |
| 4869 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4870 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4871 | ac_status=$? |
| 4872 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4873 | rm -f conftest.er1 |
| 4874 | cat conftest.err >&5 |
| 4875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4876 | (exit $ac_status); } >/dev/null; then |
| 4877 | if test -s conftest.err; then |
| 4878 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4879 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4880 | else |
| 4881 | ac_cpp_err= |
| 4882 | fi |
| 4883 | else |
| 4884 | ac_cpp_err=yes |
| 4885 | fi |
| 4886 | if test -z "$ac_cpp_err"; then |
| 4887 | : |
| 4888 | else |
| 4889 | echo "$as_me: failed program was:" >&5 |
| 4890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4891 | |
| 4892 | # Broken: fails on valid input. |
| 4893 | continue |
| 4894 | fi |
| 4895 | rm -f conftest.err conftest.$ac_ext |
| 4896 | |
| 4897 | # OK, works on sane cases. Now check whether non-existent headers |
| 4898 | # can be detected and how. |
| 4899 | cat >conftest.$ac_ext <<_ACEOF |
| 4900 | /* confdefs.h. */ |
| 4901 | _ACEOF |
| 4902 | cat confdefs.h >>conftest.$ac_ext |
| 4903 | cat >>conftest.$ac_ext <<_ACEOF |
| 4904 | /* end confdefs.h. */ |
| 4905 | #include <ac_nonexistent.h> |
| 4906 | _ACEOF |
| 4907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4909 | ac_status=$? |
| 4910 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4911 | rm -f conftest.er1 |
| 4912 | cat conftest.err >&5 |
| 4913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4914 | (exit $ac_status); } >/dev/null; then |
| 4915 | if test -s conftest.err; then |
| 4916 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4917 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4918 | else |
| 4919 | ac_cpp_err= |
| 4920 | fi |
| 4921 | else |
| 4922 | ac_cpp_err=yes |
| 4923 | fi |
| 4924 | if test -z "$ac_cpp_err"; then |
| 4925 | # Broken: success on invalid input. |
| 4926 | continue |
| 4927 | else |
| 4928 | echo "$as_me: failed program was:" >&5 |
| 4929 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4930 | |
| 4931 | # Passes both tests. |
| 4932 | ac_preproc_ok=: |
| 4933 | break |
| 4934 | fi |
| 4935 | rm -f conftest.err conftest.$ac_ext |
| 4936 | |
| 4937 | done |
| 4938 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4939 | rm -f conftest.err conftest.$ac_ext |
| 4940 | if $ac_preproc_ok; then |
| 4941 | break |
| 4942 | fi |
| 4943 | |
| 4944 | done |
| 4945 | ac_cv_prog_CPP=$CPP |
| 4946 | |
| 4947 | fi |
| 4948 | CPP=$ac_cv_prog_CPP |
| 4949 | else |
| 4950 | ac_cv_prog_CPP=$CPP |
| 4951 | fi |
| 4952 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4953 | echo "${ECHO_T}$CPP" >&6 |
| 4954 | ac_preproc_ok=false |
| 4955 | for ac_c_preproc_warn_flag in '' yes |
| 4956 | do |
| 4957 | # Use a header file that comes with gcc, so configuring glibc |
| 4958 | # with a fresh cross-compiler works. |
| 4959 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4960 | # <limits.h> exists even on freestanding compilers. |
| 4961 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4962 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4963 | cat >conftest.$ac_ext <<_ACEOF |
| 4964 | /* confdefs.h. */ |
| 4965 | _ACEOF |
| 4966 | cat confdefs.h >>conftest.$ac_ext |
| 4967 | cat >>conftest.$ac_ext <<_ACEOF |
| 4968 | /* end confdefs.h. */ |
| 4969 | #ifdef __STDC__ |
| 4970 | # include <limits.h> |
| 4971 | #else |
| 4972 | # include <assert.h> |
| 4973 | #endif |
| 4974 | Syntax error |
| 4975 | _ACEOF |
| 4976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4978 | ac_status=$? |
| 4979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4980 | rm -f conftest.er1 |
| 4981 | cat conftest.err >&5 |
| 4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4983 | (exit $ac_status); } >/dev/null; then |
| 4984 | if test -s conftest.err; then |
| 4985 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4986 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 4987 | else |
| 4988 | ac_cpp_err= |
| 4989 | fi |
| 4990 | else |
| 4991 | ac_cpp_err=yes |
| 4992 | fi |
| 4993 | if test -z "$ac_cpp_err"; then |
| 4994 | : |
| 4995 | else |
| 4996 | echo "$as_me: failed program was:" >&5 |
| 4997 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4998 | |
| 4999 | # Broken: fails on valid input. |
| 5000 | continue |
| 5001 | fi |
| 5002 | rm -f conftest.err conftest.$ac_ext |
| 5003 | |
| 5004 | # OK, works on sane cases. Now check whether non-existent headers |
| 5005 | # can be detected and how. |
| 5006 | cat >conftest.$ac_ext <<_ACEOF |
| 5007 | /* confdefs.h. */ |
| 5008 | _ACEOF |
| 5009 | cat confdefs.h >>conftest.$ac_ext |
| 5010 | cat >>conftest.$ac_ext <<_ACEOF |
| 5011 | /* end confdefs.h. */ |
| 5012 | #include <ac_nonexistent.h> |
| 5013 | _ACEOF |
| 5014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5016 | ac_status=$? |
| 5017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5018 | rm -f conftest.er1 |
| 5019 | cat conftest.err >&5 |
| 5020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5021 | (exit $ac_status); } >/dev/null; then |
| 5022 | if test -s conftest.err; then |
| 5023 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5024 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5025 | else |
| 5026 | ac_cpp_err= |
| 5027 | fi |
| 5028 | else |
| 5029 | ac_cpp_err=yes |
| 5030 | fi |
| 5031 | if test -z "$ac_cpp_err"; then |
| 5032 | # Broken: success on invalid input. |
| 5033 | continue |
| 5034 | else |
| 5035 | echo "$as_me: failed program was:" >&5 |
| 5036 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5037 | |
| 5038 | # Passes both tests. |
| 5039 | ac_preproc_ok=: |
| 5040 | break |
| 5041 | fi |
| 5042 | rm -f conftest.err conftest.$ac_ext |
| 5043 | |
| 5044 | done |
| 5045 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5046 | rm -f conftest.err conftest.$ac_ext |
| 5047 | if $ac_preproc_ok; then |
| 5048 | : |
| 5049 | else |
| 5050 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 5051 | See \`config.log' for more details." >&5 |
| 5052 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 5053 | See \`config.log' for more details." >&2;} |
| 5054 | { (exit 1); exit 1; }; } |
| 5055 | fi |
| 5056 | |
| 5057 | ac_ext=c |
| 5058 | ac_cpp='$CPP $CPPFLAGS' |
| 5059 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5060 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5061 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5062 | |
| 5063 | |
| 5064 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 5065 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 5066 | if test "${ac_cv_header_stdc+set}" = set; then |
| 5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5068 | else |
| 5069 | cat >conftest.$ac_ext <<_ACEOF |
| 5070 | /* confdefs.h. */ |
| 5071 | _ACEOF |
| 5072 | cat confdefs.h >>conftest.$ac_ext |
| 5073 | cat >>conftest.$ac_ext <<_ACEOF |
| 5074 | /* end confdefs.h. */ |
| 5075 | #include <stdlib.h> |
| 5076 | #include <stdarg.h> |
| 5077 | #include <string.h> |
| 5078 | #include <float.h> |
| 5079 | |
| 5080 | int |
| 5081 | main () |
| 5082 | { |
| 5083 | |
| 5084 | ; |
| 5085 | return 0; |
| 5086 | } |
| 5087 | _ACEOF |
| 5088 | rm -f conftest.$ac_objext |
| 5089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5090 | (eval $ac_compile) 2>conftest.er1 |
| 5091 | ac_status=$? |
| 5092 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5093 | rm -f conftest.er1 |
| 5094 | cat conftest.err >&5 |
| 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5096 | (exit $ac_status); } && |
| 5097 | { ac_try='test -z "$ac_c_werror_flag" |
| 5098 | || test ! -s conftest.err' |
| 5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5100 | (eval $ac_try) 2>&5 |
| 5101 | ac_status=$? |
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5103 | (exit $ac_status); }; } && |
| 5104 | { ac_try='test -s conftest.$ac_objext' |
| 5105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5106 | (eval $ac_try) 2>&5 |
| 5107 | ac_status=$? |
| 5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5109 | (exit $ac_status); }; }; then |
| 5110 | ac_cv_header_stdc=yes |
| 5111 | else |
| 5112 | echo "$as_me: failed program was:" >&5 |
| 5113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5114 | |
| 5115 | ac_cv_header_stdc=no |
| 5116 | fi |
| 5117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5118 | |
| 5119 | if test $ac_cv_header_stdc = yes; then |
| 5120 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5121 | cat >conftest.$ac_ext <<_ACEOF |
| 5122 | /* confdefs.h. */ |
| 5123 | _ACEOF |
| 5124 | cat confdefs.h >>conftest.$ac_ext |
| 5125 | cat >>conftest.$ac_ext <<_ACEOF |
| 5126 | /* end confdefs.h. */ |
| 5127 | #include <string.h> |
| 5128 | |
| 5129 | _ACEOF |
| 5130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5131 | $EGREP "memchr" >/dev/null 2>&1; then |
| 5132 | : |
| 5133 | else |
| 5134 | ac_cv_header_stdc=no |
| 5135 | fi |
| 5136 | rm -f conftest* |
| 5137 | |
| 5138 | fi |
| 5139 | |
| 5140 | if test $ac_cv_header_stdc = yes; then |
| 5141 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5142 | cat >conftest.$ac_ext <<_ACEOF |
| 5143 | /* confdefs.h. */ |
| 5144 | _ACEOF |
| 5145 | cat confdefs.h >>conftest.$ac_ext |
| 5146 | cat >>conftest.$ac_ext <<_ACEOF |
| 5147 | /* end confdefs.h. */ |
| 5148 | #include <stdlib.h> |
| 5149 | |
| 5150 | _ACEOF |
| 5151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5152 | $EGREP "free" >/dev/null 2>&1; then |
| 5153 | : |
| 5154 | else |
| 5155 | ac_cv_header_stdc=no |
| 5156 | fi |
| 5157 | rm -f conftest* |
| 5158 | |
| 5159 | fi |
| 5160 | |
| 5161 | if test $ac_cv_header_stdc = yes; then |
| 5162 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5163 | if test "$cross_compiling" = yes; then |
| 5164 | : |
| 5165 | else |
| 5166 | cat >conftest.$ac_ext <<_ACEOF |
| 5167 | /* confdefs.h. */ |
| 5168 | _ACEOF |
| 5169 | cat confdefs.h >>conftest.$ac_ext |
| 5170 | cat >>conftest.$ac_ext <<_ACEOF |
| 5171 | /* end confdefs.h. */ |
| 5172 | #include <ctype.h> |
| 5173 | #if ((' ' & 0x0FF) == 0x020) |
| 5174 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5175 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5176 | #else |
| 5177 | # define ISLOWER(c) \ |
| 5178 | (('a' <= (c) && (c) <= 'i') \ |
| 5179 | || ('j' <= (c) && (c) <= 'r') \ |
| 5180 | || ('s' <= (c) && (c) <= 'z')) |
| 5181 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 5182 | #endif |
| 5183 | |
| 5184 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5185 | int |
| 5186 | main () |
| 5187 | { |
| 5188 | int i; |
| 5189 | for (i = 0; i < 256; i++) |
| 5190 | if (XOR (islower (i), ISLOWER (i)) |
| 5191 | || toupper (i) != TOUPPER (i)) |
| 5192 | exit(2); |
| 5193 | exit (0); |
| 5194 | } |
| 5195 | _ACEOF |
| 5196 | rm -f conftest$ac_exeext |
| 5197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5198 | (eval $ac_link) 2>&5 |
| 5199 | ac_status=$? |
| 5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5201 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5203 | (eval $ac_try) 2>&5 |
| 5204 | ac_status=$? |
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5206 | (exit $ac_status); }; }; then |
| 5207 | : |
| 5208 | else |
| 5209 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5210 | echo "$as_me: failed program was:" >&5 |
| 5211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5212 | |
| 5213 | ( exit $ac_status ) |
| 5214 | ac_cv_header_stdc=no |
| 5215 | fi |
| 5216 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5217 | fi |
| 5218 | fi |
| 5219 | fi |
| 5220 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 5221 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 5222 | if test $ac_cv_header_stdc = yes; then |
| 5223 | |
| 5224 | cat >>confdefs.h <<\_ACEOF |
| 5225 | #define STDC_HEADERS 1 |
| 5226 | _ACEOF |
| 5227 | |
| 5228 | fi |
| 5229 | |
| 5230 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5231 | |
| 5232 | |
| 5233 | |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
| 5240 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 5241 | inttypes.h stdint.h unistd.h |
| 5242 | do |
| 5243 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5244 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5245 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5248 | else |
| 5249 | cat >conftest.$ac_ext <<_ACEOF |
| 5250 | /* confdefs.h. */ |
| 5251 | _ACEOF |
| 5252 | cat confdefs.h >>conftest.$ac_ext |
| 5253 | cat >>conftest.$ac_ext <<_ACEOF |
| 5254 | /* end confdefs.h. */ |
| 5255 | $ac_includes_default |
| 5256 | |
| 5257 | #include <$ac_header> |
| 5258 | _ACEOF |
| 5259 | rm -f conftest.$ac_objext |
| 5260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5261 | (eval $ac_compile) 2>conftest.er1 |
| 5262 | ac_status=$? |
| 5263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5264 | rm -f conftest.er1 |
| 5265 | cat conftest.err >&5 |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); } && |
| 5268 | { ac_try='test -z "$ac_c_werror_flag" |
| 5269 | || test ! -s conftest.err' |
| 5270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5271 | (eval $ac_try) 2>&5 |
| 5272 | ac_status=$? |
| 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5274 | (exit $ac_status); }; } && |
| 5275 | { ac_try='test -s conftest.$ac_objext' |
| 5276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5277 | (eval $ac_try) 2>&5 |
| 5278 | ac_status=$? |
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5280 | (exit $ac_status); }; }; then |
| 5281 | eval "$as_ac_Header=yes" |
| 5282 | else |
| 5283 | echo "$as_me: failed program was:" >&5 |
| 5284 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5285 | |
| 5286 | eval "$as_ac_Header=no" |
| 5287 | fi |
| 5288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5289 | fi |
| 5290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5291 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5293 | cat >>confdefs.h <<_ACEOF |
| 5294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5295 | _ACEOF |
| 5296 | |
| 5297 | fi |
| 5298 | |
| 5299 | done |
| 5300 | |
| 5301 | |
| 5302 | |
| 5303 | for ac_header in dlfcn.h |
| 5304 | do |
| 5305 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5306 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5307 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5311 | fi |
| 5312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5314 | else |
| 5315 | # Is the header compilable? |
| 5316 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5317 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5318 | cat >conftest.$ac_ext <<_ACEOF |
| 5319 | /* confdefs.h. */ |
| 5320 | _ACEOF |
| 5321 | cat confdefs.h >>conftest.$ac_ext |
| 5322 | cat >>conftest.$ac_ext <<_ACEOF |
| 5323 | /* end confdefs.h. */ |
| 5324 | $ac_includes_default |
| 5325 | #include <$ac_header> |
| 5326 | _ACEOF |
| 5327 | rm -f conftest.$ac_objext |
| 5328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5329 | (eval $ac_compile) 2>conftest.er1 |
| 5330 | ac_status=$? |
| 5331 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5332 | rm -f conftest.er1 |
| 5333 | cat conftest.err >&5 |
| 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5335 | (exit $ac_status); } && |
| 5336 | { ac_try='test -z "$ac_c_werror_flag" |
| 5337 | || test ! -s conftest.err' |
| 5338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5339 | (eval $ac_try) 2>&5 |
| 5340 | ac_status=$? |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5342 | (exit $ac_status); }; } && |
| 5343 | { ac_try='test -s conftest.$ac_objext' |
| 5344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5345 | (eval $ac_try) 2>&5 |
| 5346 | ac_status=$? |
| 5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5348 | (exit $ac_status); }; }; then |
| 5349 | ac_header_compiler=yes |
| 5350 | else |
| 5351 | echo "$as_me: failed program was:" >&5 |
| 5352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5353 | |
| 5354 | ac_header_compiler=no |
| 5355 | fi |
| 5356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5357 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5358 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5359 | |
| 5360 | # Is the header present? |
| 5361 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5362 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5363 | cat >conftest.$ac_ext <<_ACEOF |
| 5364 | /* confdefs.h. */ |
| 5365 | _ACEOF |
| 5366 | cat confdefs.h >>conftest.$ac_ext |
| 5367 | cat >>conftest.$ac_ext <<_ACEOF |
| 5368 | /* end confdefs.h. */ |
| 5369 | #include <$ac_header> |
| 5370 | _ACEOF |
| 5371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5373 | ac_status=$? |
| 5374 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5375 | rm -f conftest.er1 |
| 5376 | cat conftest.err >&5 |
| 5377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5378 | (exit $ac_status); } >/dev/null; then |
| 5379 | if test -s conftest.err; then |
| 5380 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5381 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5382 | else |
| 5383 | ac_cpp_err= |
| 5384 | fi |
| 5385 | else |
| 5386 | ac_cpp_err=yes |
| 5387 | fi |
| 5388 | if test -z "$ac_cpp_err"; then |
| 5389 | ac_header_preproc=yes |
| 5390 | else |
| 5391 | echo "$as_me: failed program was:" >&5 |
| 5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5393 | |
| 5394 | ac_header_preproc=no |
| 5395 | fi |
| 5396 | rm -f conftest.err conftest.$ac_ext |
| 5397 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5398 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5399 | |
| 5400 | # So? What about this header? |
| 5401 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5402 | yes:no: ) |
| 5403 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5404 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5406 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5407 | ac_header_preproc=yes |
| 5408 | ;; |
| 5409 | no:yes:* ) |
| 5410 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5411 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5412 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5413 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5414 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5415 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5416 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5417 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5418 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5419 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5420 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5421 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5422 | ( |
| 5423 | cat <<\_ASBOX |
| 5424 | ## --------------------------------------------------------------- ## |
| 5425 | ## Report this to http://projects.coin-or.org/BuildTools/newticket ## |
| 5426 | ## --------------------------------------------------------------- ## |
| 5427 | _ASBOX |
| 5428 | ) | |
| 5429 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5430 | ;; |
| 5431 | esac |
| 5432 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5433 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5436 | else |
| 5437 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5438 | fi |
| 5439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5440 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5441 | |
| 5442 | fi |
| 5443 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5444 | cat >>confdefs.h <<_ACEOF |
| 5445 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5446 | _ACEOF |
| 5447 | |
| 5448 | fi |
| 5449 | |
| 5450 | done |
| 5451 | |
| 5452 | ac_ext=cc |
| 5453 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5454 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5455 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5456 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5457 | if test -n "$ac_tool_prefix"; then |
| 5458 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 5459 | do |
| 5460 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5461 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5464 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5466 | else |
| 5467 | if test -n "$CXX"; then |
| 5468 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5469 | else |
| 5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5471 | for as_dir in $PATH |
| 5472 | do |
| 5473 | IFS=$as_save_IFS |
| 5474 | test -z "$as_dir" && as_dir=. |
| 5475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5477 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 5478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5479 | break 2 |
| 5480 | fi |
| 5481 | done |
| 5482 | done |
| 5483 | |
| 5484 | fi |
| 5485 | fi |
| 5486 | CXX=$ac_cv_prog_CXX |
| 5487 | if test -n "$CXX"; then |
| 5488 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 5489 | echo "${ECHO_T}$CXX" >&6 |
| 5490 | else |
| 5491 | echo "$as_me:$LINENO: result: no" >&5 |
| 5492 | echo "${ECHO_T}no" >&6 |
| 5493 | fi |
| 5494 | |
| 5495 | test -n "$CXX" && break |
| 5496 | done |
| 5497 | fi |
| 5498 | if test -z "$CXX"; then |
| 5499 | ac_ct_CXX=$CXX |
| 5500 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC |
| 5501 | do |
| 5502 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5503 | set dummy $ac_prog; ac_word=$2 |
| 5504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 5506 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5508 | else |
| 5509 | if test -n "$ac_ct_CXX"; then |
| 5510 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 5511 | else |
| 5512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5513 | for as_dir in $PATH |
| 5514 | do |
| 5515 | IFS=$as_save_IFS |
| 5516 | test -z "$as_dir" && as_dir=. |
| 5517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5519 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 5520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5521 | break 2 |
| 5522 | fi |
| 5523 | done |
| 5524 | done |
| 5525 | |
| 5526 | fi |
| 5527 | fi |
| 5528 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 5529 | if test -n "$ac_ct_CXX"; then |
| 5530 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
| 5531 | echo "${ECHO_T}$ac_ct_CXX" >&6 |
| 5532 | else |
| 5533 | echo "$as_me:$LINENO: result: no" >&5 |
| 5534 | echo "${ECHO_T}no" >&6 |
| 5535 | fi |
| 5536 | |
| 5537 | test -n "$ac_ct_CXX" && break |
| 5538 | done |
| 5539 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" |
| 5540 | |
| 5541 | CXX=$ac_ct_CXX |
| 5542 | fi |
| 5543 | |
| 5544 | |
| 5545 | # Provide some information about the compiler. |
| 5546 | echo "$as_me:$LINENO:" \ |
| 5547 | "checking for C++ compiler version" >&5 |
| 5548 | ac_compiler=`set X $ac_compile; echo $2` |
| 5549 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 5550 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 5551 | ac_status=$? |
| 5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5553 | (exit $ac_status); } |
| 5554 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 5555 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 5556 | ac_status=$? |
| 5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5558 | (exit $ac_status); } |
| 5559 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 5560 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 5561 | ac_status=$? |
| 5562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5563 | (exit $ac_status); } |
| 5564 | |
| 5565 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
| 5566 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 |
| 5567 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
| 5568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5569 | else |
| 5570 | cat >conftest.$ac_ext <<_ACEOF |
| 5571 | /* confdefs.h. */ |
| 5572 | _ACEOF |
| 5573 | cat confdefs.h >>conftest.$ac_ext |
| 5574 | cat >>conftest.$ac_ext <<_ACEOF |
| 5575 | /* end confdefs.h. */ |
| 5576 | |
| 5577 | int |
| 5578 | main () |
| 5579 | { |
| 5580 | #ifndef __GNUC__ |
| 5581 | choke me |
| 5582 | #endif |
| 5583 | |
| 5584 | ; |
| 5585 | return 0; |
| 5586 | } |
| 5587 | _ACEOF |
| 5588 | rm -f conftest.$ac_objext |
| 5589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5590 | (eval $ac_compile) 2>conftest.er1 |
| 5591 | ac_status=$? |
| 5592 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5593 | rm -f conftest.er1 |
| 5594 | cat conftest.err >&5 |
| 5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5596 | (exit $ac_status); } && |
| 5597 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5598 | || test ! -s conftest.err' |
| 5599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5600 | (eval $ac_try) 2>&5 |
| 5601 | ac_status=$? |
| 5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5603 | (exit $ac_status); }; } && |
| 5604 | { ac_try='test -s conftest.$ac_objext' |
| 5605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5606 | (eval $ac_try) 2>&5 |
| 5607 | ac_status=$? |
| 5608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5609 | (exit $ac_status); }; }; then |
| 5610 | ac_compiler_gnu=yes |
| 5611 | else |
| 5612 | echo "$as_me: failed program was:" >&5 |
| 5613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5614 | |
| 5615 | ac_compiler_gnu=no |
| 5616 | fi |
| 5617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5618 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 5619 | |
| 5620 | fi |
| 5621 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 5622 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 |
| 5623 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
| 5624 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 5625 | ac_save_CXXFLAGS=$CXXFLAGS |
| 5626 | CXXFLAGS="-g" |
| 5627 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
| 5628 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 |
| 5629 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
| 5630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5631 | else |
| 5632 | cat >conftest.$ac_ext <<_ACEOF |
| 5633 | /* confdefs.h. */ |
| 5634 | _ACEOF |
| 5635 | cat confdefs.h >>conftest.$ac_ext |
| 5636 | cat >>conftest.$ac_ext <<_ACEOF |
| 5637 | /* end confdefs.h. */ |
| 5638 | |
| 5639 | int |
| 5640 | main () |
| 5641 | { |
| 5642 | |
| 5643 | ; |
| 5644 | return 0; |
| 5645 | } |
| 5646 | _ACEOF |
| 5647 | rm -f conftest.$ac_objext |
| 5648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5649 | (eval $ac_compile) 2>conftest.er1 |
| 5650 | ac_status=$? |
| 5651 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5652 | rm -f conftest.er1 |
| 5653 | cat conftest.err >&5 |
| 5654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5655 | (exit $ac_status); } && |
| 5656 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5657 | || test ! -s conftest.err' |
| 5658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5659 | (eval $ac_try) 2>&5 |
| 5660 | ac_status=$? |
| 5661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5662 | (exit $ac_status); }; } && |
| 5663 | { ac_try='test -s conftest.$ac_objext' |
| 5664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5665 | (eval $ac_try) 2>&5 |
| 5666 | ac_status=$? |
| 5667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5668 | (exit $ac_status); }; }; then |
| 5669 | ac_cv_prog_cxx_g=yes |
| 5670 | else |
| 5671 | echo "$as_me: failed program was:" >&5 |
| 5672 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5673 | |
| 5674 | ac_cv_prog_cxx_g=no |
| 5675 | fi |
| 5676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5677 | fi |
| 5678 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
| 5679 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 |
| 5680 | if test "$ac_test_CXXFLAGS" = set; then |
| 5681 | CXXFLAGS=$ac_save_CXXFLAGS |
| 5682 | elif test $ac_cv_prog_cxx_g = yes; then |
| 5683 | if test "$GXX" = yes; then |
| 5684 | CXXFLAGS="-g -O2" |
| 5685 | else |
| 5686 | CXXFLAGS="-g" |
| 5687 | fi |
| 5688 | else |
| 5689 | if test "$GXX" = yes; then |
| 5690 | CXXFLAGS="-O2" |
| 5691 | else |
| 5692 | CXXFLAGS= |
| 5693 | fi |
| 5694 | fi |
| 5695 | for ac_declaration in \ |
| 5696 | '' \ |
| 5697 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 5698 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 5699 | 'extern "C" void exit (int) throw ();' \ |
| 5700 | 'extern "C" void exit (int);' \ |
| 5701 | 'void exit (int);' |
| 5702 | do |
| 5703 | cat >conftest.$ac_ext <<_ACEOF |
| 5704 | /* confdefs.h. */ |
| 5705 | _ACEOF |
| 5706 | cat confdefs.h >>conftest.$ac_ext |
| 5707 | cat >>conftest.$ac_ext <<_ACEOF |
| 5708 | /* end confdefs.h. */ |
| 5709 | $ac_declaration |
| 5710 | #include <stdlib.h> |
| 5711 | int |
| 5712 | main () |
| 5713 | { |
| 5714 | exit (42); |
| 5715 | ; |
| 5716 | return 0; |
| 5717 | } |
| 5718 | _ACEOF |
| 5719 | rm -f conftest.$ac_objext |
| 5720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5721 | (eval $ac_compile) 2>conftest.er1 |
| 5722 | ac_status=$? |
| 5723 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5724 | rm -f conftest.er1 |
| 5725 | cat conftest.err >&5 |
| 5726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5727 | (exit $ac_status); } && |
| 5728 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5729 | || test ! -s conftest.err' |
| 5730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5731 | (eval $ac_try) 2>&5 |
| 5732 | ac_status=$? |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5734 | (exit $ac_status); }; } && |
| 5735 | { ac_try='test -s conftest.$ac_objext' |
| 5736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5737 | (eval $ac_try) 2>&5 |
| 5738 | ac_status=$? |
| 5739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5740 | (exit $ac_status); }; }; then |
| 5741 | : |
| 5742 | else |
| 5743 | echo "$as_me: failed program was:" >&5 |
| 5744 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5745 | |
| 5746 | continue |
| 5747 | fi |
| 5748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5749 | cat >conftest.$ac_ext <<_ACEOF |
| 5750 | /* confdefs.h. */ |
| 5751 | _ACEOF |
| 5752 | cat confdefs.h >>conftest.$ac_ext |
| 5753 | cat >>conftest.$ac_ext <<_ACEOF |
| 5754 | /* end confdefs.h. */ |
| 5755 | $ac_declaration |
| 5756 | int |
| 5757 | main () |
| 5758 | { |
| 5759 | exit (42); |
| 5760 | ; |
| 5761 | return 0; |
| 5762 | } |
| 5763 | _ACEOF |
| 5764 | rm -f conftest.$ac_objext |
| 5765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5766 | (eval $ac_compile) 2>conftest.er1 |
| 5767 | ac_status=$? |
| 5768 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5769 | rm -f conftest.er1 |
| 5770 | cat conftest.err >&5 |
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5772 | (exit $ac_status); } && |
| 5773 | { ac_try='test -z "$ac_cxx_werror_flag" |
| 5774 | || test ! -s conftest.err' |
| 5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5776 | (eval $ac_try) 2>&5 |
| 5777 | ac_status=$? |
| 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5779 | (exit $ac_status); }; } && |
| 5780 | { ac_try='test -s conftest.$ac_objext' |
| 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5782 | (eval $ac_try) 2>&5 |
| 5783 | ac_status=$? |
| 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5785 | (exit $ac_status); }; }; then |
| 5786 | break |
| 5787 | else |
| 5788 | echo "$as_me: failed program was:" >&5 |
| 5789 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5790 | |
| 5791 | fi |
| 5792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5793 | done |
| 5794 | rm -f conftest* |
| 5795 | if test -n "$ac_declaration"; then |
| 5796 | echo '#ifdef __cplusplus' >>confdefs.h |
| 5797 | echo $ac_declaration >>confdefs.h |
| 5798 | echo '#endif' >>confdefs.h |
| 5799 | fi |
| 5800 | |
| 5801 | ac_ext=cc |
| 5802 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5803 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5804 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5805 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5806 | |
| 5807 | depcc="$CXX" am_compiler_list= |
| 5808 | |
| 5809 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 5810 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 5811 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
| 5812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5813 | else |
| 5814 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5815 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5816 | # making bogus files that we don't know about and never remove. For |
| 5817 | # instance it was reported that on HP-UX the gcc test will end up |
| 5818 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5819 | # in D'. |
| 5820 | mkdir conftest.dir |
| 5821 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5822 | # using a relative directory. |
| 5823 | cp "$am_depcomp" conftest.dir |
| 5824 | cd conftest.dir |
| 5825 | # We will build objects and dependencies in a subdirectory because |
| 5826 | # it helps to detect inapplicable dependency modes. For instance |
| 5827 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5828 | # side effect of compilation, but ICC will put the dependencies in |
| 5829 | # the current directory while Tru64 will put them in the object |
| 5830 | # directory. |
| 5831 | mkdir sub |
| 5832 | |
| 5833 | am_cv_CXX_dependencies_compiler_type=none |
| 5834 | if test "$am_compiler_list" = ""; then |
| 5835 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5836 | fi |
| 5837 | for depmode in $am_compiler_list; do |
| 5838 | # Setup a source with many dependencies, because some compilers |
| 5839 | # like to wrap large dependency lists on column 80 (with \), and |
| 5840 | # we should not choose a depcomp mode which is confused by this. |
| 5841 | # |
| 5842 | # We need to recreate these files for each test, as the compiler may |
| 5843 | # overwrite some of them when testing with obscure command lines. |
| 5844 | # This happens at least with the AIX C compiler. |
| 5845 | : > sub/conftest.c |
| 5846 | for i in 1 2 3 4 5 6; do |
| 5847 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5848 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5849 | # Solaris 8's {/usr,}/bin/sh. |
| 5850 | touch sub/conftst$i.h |
| 5851 | done |
| 5852 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5853 | |
| 5854 | case $depmode in |
| 5855 | nosideeffect) |
| 5856 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5857 | # only be used when explicitly requested |
| 5858 | if test "x$enable_dependency_tracking" = xyes; then |
| 5859 | continue |
| 5860 | else |
| 5861 | break |
| 5862 | fi |
| 5863 | ;; |
| 5864 | none) break ;; |
| 5865 | esac |
| 5866 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5867 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5868 | # handle `-M -o', and we need to detect this. |
| 5869 | if depmode=$depmode \ |
| 5870 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
| 5871 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5872 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
| 5873 | >/dev/null 2>conftest.err && |
| 5874 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5875 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
| 5876 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5877 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5878 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5879 | # that says an option was ignored or not supported. |
| 5880 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5881 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5882 | # The diagnosis changed in icc 8.0: |
| 5883 | # icc: Command line remark: option '-MP' not supported |
| 5884 | if (grep 'ignoring option' conftest.err || |
| 5885 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5886 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 5887 | break |
| 5888 | fi |
| 5889 | fi |
| 5890 | done |
| 5891 | |
| 5892 | cd .. |
| 5893 | rm -rf conftest.dir |
| 5894 | else |
| 5895 | am_cv_CXX_dependencies_compiler_type=none |
| 5896 | fi |
| 5897 | |
| 5898 | fi |
| 5899 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 5900 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 |
| 5901 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 5902 | |
| 5903 | |
| 5904 | |
| 5905 | if |
| 5906 | test "x$enable_dependency_tracking" != xno \ |
| 5907 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 5908 | am__fastdepCXX_TRUE= |
| 5909 | am__fastdepCXX_FALSE='#' |
| 5910 | else |
| 5911 | am__fastdepCXX_TRUE='#' |
| 5912 | am__fastdepCXX_FALSE= |
| 5913 | fi |
| 5914 | |
| 5915 | |
| 5916 | |
| 5917 | |
| 5918 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 5919 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 5920 | (test "X$CXX" != "Xg++"))) ; then |
| 5921 | ac_ext=cc |
| 5922 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 5923 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5924 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5925 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 5926 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
| 5927 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
| 5928 | if test -z "$CXXCPP"; then |
| 5929 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
| 5930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5931 | else |
| 5932 | # Double quotes because CXXCPP needs to be expanded |
| 5933 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 5934 | do |
| 5935 | ac_preproc_ok=false |
| 5936 | for ac_cxx_preproc_warn_flag in '' yes |
| 5937 | do |
| 5938 | # Use a header file that comes with gcc, so configuring glibc |
| 5939 | # with a fresh cross-compiler works. |
| 5940 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5941 | # <limits.h> exists even on freestanding compilers. |
| 5942 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5943 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5944 | cat >conftest.$ac_ext <<_ACEOF |
| 5945 | /* confdefs.h. */ |
| 5946 | _ACEOF |
| 5947 | cat confdefs.h >>conftest.$ac_ext |
| 5948 | cat >>conftest.$ac_ext <<_ACEOF |
| 5949 | /* end confdefs.h. */ |
| 5950 | #ifdef __STDC__ |
| 5951 | # include <limits.h> |
| 5952 | #else |
| 5953 | # include <assert.h> |
| 5954 | #endif |
| 5955 | Syntax error |
| 5956 | _ACEOF |
| 5957 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5958 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5959 | ac_status=$? |
| 5960 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5961 | rm -f conftest.er1 |
| 5962 | cat conftest.err >&5 |
| 5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5964 | (exit $ac_status); } >/dev/null; then |
| 5965 | if test -s conftest.err; then |
| 5966 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 5967 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 5968 | else |
| 5969 | ac_cpp_err= |
| 5970 | fi |
| 5971 | else |
| 5972 | ac_cpp_err=yes |
| 5973 | fi |
| 5974 | if test -z "$ac_cpp_err"; then |
| 5975 | : |
| 5976 | else |
| 5977 | echo "$as_me: failed program was:" >&5 |
| 5978 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5979 | |
| 5980 | # Broken: fails on valid input. |
| 5981 | continue |
| 5982 | fi |
| 5983 | rm -f conftest.err conftest.$ac_ext |
| 5984 | |
| 5985 | # OK, works on sane cases. Now check whether non-existent headers |
| 5986 | # can be detected and how. |
| 5987 | cat >conftest.$ac_ext <<_ACEOF |
| 5988 | /* confdefs.h. */ |
| 5989 | _ACEOF |
| 5990 | cat confdefs.h >>conftest.$ac_ext |
| 5991 | cat >>conftest.$ac_ext <<_ACEOF |
| 5992 | /* end confdefs.h. */ |
| 5993 | #include <ac_nonexistent.h> |
| 5994 | _ACEOF |
| 5995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5997 | ac_status=$? |
| 5998 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5999 | rm -f conftest.er1 |
| 6000 | cat conftest.err >&5 |
| 6001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6002 | (exit $ac_status); } >/dev/null; then |
| 6003 | if test -s conftest.err; then |
| 6004 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6005 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6006 | else |
| 6007 | ac_cpp_err= |
| 6008 | fi |
| 6009 | else |
| 6010 | ac_cpp_err=yes |
| 6011 | fi |
| 6012 | if test -z "$ac_cpp_err"; then |
| 6013 | # Broken: success on invalid input. |
| 6014 | continue |
| 6015 | else |
| 6016 | echo "$as_me: failed program was:" >&5 |
| 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6018 | |
| 6019 | # Passes both tests. |
| 6020 | ac_preproc_ok=: |
| 6021 | break |
| 6022 | fi |
| 6023 | rm -f conftest.err conftest.$ac_ext |
| 6024 | |
| 6025 | done |
| 6026 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6027 | rm -f conftest.err conftest.$ac_ext |
| 6028 | if $ac_preproc_ok; then |
| 6029 | break |
| 6030 | fi |
| 6031 | |
| 6032 | done |
| 6033 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6034 | |
| 6035 | fi |
| 6036 | CXXCPP=$ac_cv_prog_CXXCPP |
| 6037 | else |
| 6038 | ac_cv_prog_CXXCPP=$CXXCPP |
| 6039 | fi |
| 6040 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
| 6041 | echo "${ECHO_T}$CXXCPP" >&6 |
| 6042 | ac_preproc_ok=false |
| 6043 | for ac_cxx_preproc_warn_flag in '' yes |
| 6044 | do |
| 6045 | # Use a header file that comes with gcc, so configuring glibc |
| 6046 | # with a fresh cross-compiler works. |
| 6047 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6048 | # <limits.h> exists even on freestanding compilers. |
| 6049 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 6050 | # not just through cpp. "Syntax error" is here to catch this case. |
| 6051 | cat >conftest.$ac_ext <<_ACEOF |
| 6052 | /* confdefs.h. */ |
| 6053 | _ACEOF |
| 6054 | cat confdefs.h >>conftest.$ac_ext |
| 6055 | cat >>conftest.$ac_ext <<_ACEOF |
| 6056 | /* end confdefs.h. */ |
| 6057 | #ifdef __STDC__ |
| 6058 | # include <limits.h> |
| 6059 | #else |
| 6060 | # include <assert.h> |
| 6061 | #endif |
| 6062 | Syntax error |
| 6063 | _ACEOF |
| 6064 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6065 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6066 | ac_status=$? |
| 6067 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6068 | rm -f conftest.er1 |
| 6069 | cat conftest.err >&5 |
| 6070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6071 | (exit $ac_status); } >/dev/null; then |
| 6072 | if test -s conftest.err; then |
| 6073 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6074 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6075 | else |
| 6076 | ac_cpp_err= |
| 6077 | fi |
| 6078 | else |
| 6079 | ac_cpp_err=yes |
| 6080 | fi |
| 6081 | if test -z "$ac_cpp_err"; then |
| 6082 | : |
| 6083 | else |
| 6084 | echo "$as_me: failed program was:" >&5 |
| 6085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6086 | |
| 6087 | # Broken: fails on valid input. |
| 6088 | continue |
| 6089 | fi |
| 6090 | rm -f conftest.err conftest.$ac_ext |
| 6091 | |
| 6092 | # OK, works on sane cases. Now check whether non-existent headers |
| 6093 | # can be detected and how. |
| 6094 | cat >conftest.$ac_ext <<_ACEOF |
| 6095 | /* confdefs.h. */ |
| 6096 | _ACEOF |
| 6097 | cat confdefs.h >>conftest.$ac_ext |
| 6098 | cat >>conftest.$ac_ext <<_ACEOF |
| 6099 | /* end confdefs.h. */ |
| 6100 | #include <ac_nonexistent.h> |
| 6101 | _ACEOF |
| 6102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6104 | ac_status=$? |
| 6105 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6106 | rm -f conftest.er1 |
| 6107 | cat conftest.err >&5 |
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6109 | (exit $ac_status); } >/dev/null; then |
| 6110 | if test -s conftest.err; then |
| 6111 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
| 6112 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
| 6113 | else |
| 6114 | ac_cpp_err= |
| 6115 | fi |
| 6116 | else |
| 6117 | ac_cpp_err=yes |
| 6118 | fi |
| 6119 | if test -z "$ac_cpp_err"; then |
| 6120 | # Broken: success on invalid input. |
| 6121 | continue |
| 6122 | else |
| 6123 | echo "$as_me: failed program was:" >&5 |
| 6124 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6125 | |
| 6126 | # Passes both tests. |
| 6127 | ac_preproc_ok=: |
| 6128 | break |
| 6129 | fi |
| 6130 | rm -f conftest.err conftest.$ac_ext |
| 6131 | |
| 6132 | done |
| 6133 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6134 | rm -f conftest.err conftest.$ac_ext |
| 6135 | if $ac_preproc_ok; then |
| 6136 | : |
| 6137 | else |
| 6138 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6139 | See \`config.log' for more details." >&5 |
| 6140 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
| 6141 | See \`config.log' for more details." >&2;} |
| 6142 | { (exit 1); exit 1; }; } |
| 6143 | fi |
| 6144 | |
| 6145 | ac_ext=cc |
| 6146 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 6147 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6148 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6149 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6150 | |
| 6151 | fi |
| 6152 | |
| 6153 | |
| 6154 | ac_ext=f |
| 6155 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
| 6156 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6157 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
| 6158 | if test -n "$ac_tool_prefix"; then |
| 6159 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 6160 | do |
| 6161 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6162 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6165 | if test "${ac_cv_prog_F77+set}" = set; then |
| 6166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6167 | else |
| 6168 | if test -n "$F77"; then |
| 6169 | ac_cv_prog_F77="$F77" # Let the user override the test. |
| 6170 | else |
| 6171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6172 | for as_dir in $PATH |
| 6173 | do |
| 6174 | IFS=$as_save_IFS |
| 6175 | test -z "$as_dir" && as_dir=. |
| 6176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6178 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
| 6179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6180 | break 2 |
| 6181 | fi |
| 6182 | done |
| 6183 | done |
| 6184 | |
| 6185 | fi |
| 6186 | fi |
| 6187 | F77=$ac_cv_prog_F77 |
| 6188 | if test -n "$F77"; then |
| 6189 | echo "$as_me:$LINENO: result: $F77" >&5 |
| 6190 | echo "${ECHO_T}$F77" >&6 |
| 6191 | else |
| 6192 | echo "$as_me:$LINENO: result: no" >&5 |
| 6193 | echo "${ECHO_T}no" >&6 |
| 6194 | fi |
| 6195 | |
| 6196 | test -n "$F77" && break |
| 6197 | done |
| 6198 | fi |
| 6199 | if test -z "$F77"; then |
| 6200 | ac_ct_F77=$F77 |
| 6201 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
| 6202 | do |
| 6203 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6204 | set dummy $ac_prog; ac_word=$2 |
| 6205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6207 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
| 6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6209 | else |
| 6210 | if test -n "$ac_ct_F77"; then |
| 6211 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
| 6212 | else |
| 6213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6214 | for as_dir in $PATH |
| 6215 | do |
| 6216 | IFS=$as_save_IFS |
| 6217 | test -z "$as_dir" && as_dir=. |
| 6218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6220 | ac_cv_prog_ac_ct_F77="$ac_prog" |
| 6221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6222 | break 2 |
| 6223 | fi |
| 6224 | done |
| 6225 | done |
| 6226 | |
| 6227 | fi |
| 6228 | fi |
| 6229 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
| 6230 | if test -n "$ac_ct_F77"; then |
| 6231 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
| 6232 | echo "${ECHO_T}$ac_ct_F77" >&6 |
| 6233 | else |
| 6234 | echo "$as_me:$LINENO: result: no" >&5 |
| 6235 | echo "${ECHO_T}no" >&6 |
| 6236 | fi |
| 6237 | |
| 6238 | test -n "$ac_ct_F77" && break |
| 6239 | done |
| 6240 | |
| 6241 | F77=$ac_ct_F77 |
| 6242 | fi |
| 6243 | |
| 6244 | |
| 6245 | # Provide some information about the compiler. |
| 6246 | echo "$as_me:6246:" \ |
| 6247 | "checking for Fortran 77 compiler version" >&5 |
| 6248 | ac_compiler=`set X $ac_compile; echo $2` |
| 6249 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 6250 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 6251 | ac_status=$? |
| 6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6253 | (exit $ac_status); } |
| 6254 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 6255 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 6256 | ac_status=$? |
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 | (exit $ac_status); } |
| 6259 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 6260 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); } |
| 6264 | rm -f a.out |
| 6265 | |
| 6266 | # If we don't use `.F' as extension, the preprocessor is not run on the |
| 6267 | # input file. (Note that this only needs to work for GNU compilers.) |
| 6268 | ac_save_ext=$ac_ext |
| 6269 | ac_ext=F |
| 6270 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
| 6271 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
| 6272 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
| 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6274 | else |
| 6275 | cat >conftest.$ac_ext <<_ACEOF |
| 6276 | program main |
| 6277 | #ifndef __GNUC__ |
| 6278 | choke me |
| 6279 | #endif |
| 6280 | |
| 6281 | end |
| 6282 | _ACEOF |
| 6283 | rm -f conftest.$ac_objext |
| 6284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6285 | (eval $ac_compile) 2>conftest.er1 |
| 6286 | ac_status=$? |
| 6287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6288 | rm -f conftest.er1 |
| 6289 | cat conftest.err >&5 |
| 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 | (exit $ac_status); } && |
| 6292 | { ac_try='test -z "$ac_f77_werror_flag" |
| 6293 | || test ! -s conftest.err' |
| 6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6295 | (eval $ac_try) 2>&5 |
| 6296 | ac_status=$? |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); }; } && |
| 6299 | { ac_try='test -s conftest.$ac_objext' |
| 6300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6301 | (eval $ac_try) 2>&5 |
| 6302 | ac_status=$? |
| 6303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6304 | (exit $ac_status); }; }; then |
| 6305 | ac_compiler_gnu=yes |
| 6306 | else |
| 6307 | echo "$as_me: failed program was:" >&5 |
| 6308 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6309 | |
| 6310 | ac_compiler_gnu=no |
| 6311 | fi |
| 6312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6313 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
| 6314 | |
| 6315 | fi |
| 6316 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
| 6317 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
| 6318 | ac_ext=$ac_save_ext |
| 6319 | ac_test_FFLAGS=${FFLAGS+set} |
| 6320 | ac_save_FFLAGS=$FFLAGS |
| 6321 | FFLAGS= |
| 6322 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
| 6323 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
| 6324 | if test "${ac_cv_prog_f77_g+set}" = set; then |
| 6325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6326 | else |
| 6327 | FFLAGS=-g |
| 6328 | cat >conftest.$ac_ext <<_ACEOF |
| 6329 | program main |
| 6330 | |
| 6331 | end |
| 6332 | _ACEOF |
| 6333 | rm -f conftest.$ac_objext |
| 6334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6335 | (eval $ac_compile) 2>conftest.er1 |
| 6336 | ac_status=$? |
| 6337 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6338 | rm -f conftest.er1 |
| 6339 | cat conftest.err >&5 |
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6341 | (exit $ac_status); } && |
| 6342 | { ac_try='test -z "$ac_f77_werror_flag" |
| 6343 | || test ! -s conftest.err' |
| 6344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6345 | (eval $ac_try) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); }; } && |
| 6349 | { ac_try='test -s conftest.$ac_objext' |
| 6350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6351 | (eval $ac_try) 2>&5 |
| 6352 | ac_status=$? |
| 6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6354 | (exit $ac_status); }; }; then |
| 6355 | ac_cv_prog_f77_g=yes |
| 6356 | else |
| 6357 | echo "$as_me: failed program was:" >&5 |
| 6358 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6359 | |
| 6360 | ac_cv_prog_f77_g=no |
| 6361 | fi |
| 6362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6363 | |
| 6364 | fi |
| 6365 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
| 6366 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
| 6367 | if test "$ac_test_FFLAGS" = set; then |
| 6368 | FFLAGS=$ac_save_FFLAGS |
| 6369 | elif test $ac_cv_prog_f77_g = yes; then |
| 6370 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6371 | FFLAGS="-g -O2" |
| 6372 | else |
| 6373 | FFLAGS="-g" |
| 6374 | fi |
| 6375 | else |
| 6376 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
| 6377 | FFLAGS="-O2" |
| 6378 | else |
| 6379 | FFLAGS= |
| 6380 | fi |
| 6381 | fi |
| 6382 | |
| 6383 | G77=`test $ac_compiler_gnu = yes && echo yes` |
| 6384 | ac_ext=c |
| 6385 | ac_cpp='$CPP $CPPFLAGS' |
| 6386 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6387 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6388 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6389 | |
| 6390 | |
| 6391 | |
| 6392 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
| 6393 | |
| 6394 | # find the maximum length of command line arguments |
| 6395 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
| 6396 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
| 6397 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
| 6398 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6399 | else |
| 6400 | i=0 |
| 6401 | teststring="ABCD" |
| 6402 | |
| 6403 | case $build_os in |
| 6404 | msdosdjgpp*) |
| 6405 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 6406 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 6407 | # during glob expansion). Even if it were fixed, the result of this |
| 6408 | # check would be larger than it should be. |
| 6409 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 6410 | ;; |
| 6411 | |
| 6412 | gnu*) |
| 6413 | # Under GNU Hurd, this test is not required because there is |
| 6414 | # no limit to the length of command line arguments. |
| 6415 | # Libtool will interpret -1 as no limit whatsoever |
| 6416 | lt_cv_sys_max_cmd_len=-1; |
| 6417 | ;; |
| 6418 | |
| 6419 | cygwin* | mingw*) |
| 6420 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 6421 | # about 5 minutes as the teststring grows exponentially. |
| 6422 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 6423 | # you end up with a "frozen" computer, even though with patience |
| 6424 | # the test eventually succeeds (with a max line length of 256k). |
| 6425 | # Instead, let's just punt: use the minimum linelength reported by |
| 6426 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 6427 | lt_cv_sys_max_cmd_len=8192; |
| 6428 | ;; |
| 6429 | |
| 6430 | amigaos*) |
| 6431 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 6432 | # So we just punt and use a minimum line length of 8192. |
| 6433 | lt_cv_sys_max_cmd_len=8192; |
| 6434 | ;; |
| 6435 | |
| 6436 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 6437 | # This has been around since 386BSD, at least. Likely further. |
| 6438 | if test -x /sbin/sysctl; then |
| 6439 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 6440 | elif test -x /usr/sbin/sysctl; then |
| 6441 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 6442 | else |
| 6443 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 6444 | fi |
| 6445 | # And add a safety zone |
| 6446 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 6447 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 6448 | ;; |
| 6449 | |
| 6450 | interix*) |
| 6451 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 6452 | lt_cv_sys_max_cmd_len=196608 |
| 6453 | ;; |
| 6454 | |
| 6455 | osf*) |
| 6456 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 6457 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 6458 | # nice to cause kernel panics so lets avoid the loop below. |
| 6459 | # First set a reasonable default. |
| 6460 | lt_cv_sys_max_cmd_len=16384 |
| 6461 | # |
| 6462 | if test -x /sbin/sysconfig; then |
| 6463 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 6464 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 6465 | esac |
| 6466 | fi |
| 6467 | ;; |
| 6468 | sco3.2v5*) |
| 6469 | lt_cv_sys_max_cmd_len=102400 |
| 6470 | ;; |
| 6471 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 6472 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 6473 | if test -n "$kargmax"; then |
| 6474 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 6475 | else |
| 6476 | lt_cv_sys_max_cmd_len=32768 |
| 6477 | fi |
| 6478 | ;; |
| 6479 | *) |
| 6480 | # If test is not a shell built-in, we'll probably end up computing a |
| 6481 | # maximum length that is only half of the actual maximum length, but |
| 6482 | # we can't tell. |
| 6483 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 6484 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
| 6485 | = "XX$teststring") >/dev/null 2>&1 && |
| 6486 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
| 6487 | lt_cv_sys_max_cmd_len=$new_result && |
| 6488 | test $i != 17 # 1/2 MB should be enough |
| 6489 | do |
| 6490 | i=`expr $i + 1` |
| 6491 | teststring=$teststring$teststring |
| 6492 | done |
| 6493 | teststring= |
| 6494 | # Add a significant safety factor because C++ compilers can tack on massive |
| 6495 | # amounts of additional arguments before passing them to the linker. |
| 6496 | # It appears as though 1/2 is a usable value. |
| 6497 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 6498 | ;; |
| 6499 | esac |
| 6500 | |
| 6501 | fi |
| 6502 | |
| 6503 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 6504 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
| 6505 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
| 6506 | else |
| 6507 | echo "$as_me:$LINENO: result: none" >&5 |
| 6508 | echo "${ECHO_T}none" >&6 |
| 6509 | fi |
| 6510 | |
| 6511 | |
| 6512 | |
| 6513 | |
| 6514 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6515 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
| 6516 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
| 6517 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
| 6518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6519 | else |
| 6520 | |
| 6521 | # These are sane defaults that work on at least a few old systems. |
| 6522 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6523 | |
| 6524 | # Character class describing NM global symbol codes. |
| 6525 | symcode='[BCDEGRST]' |
| 6526 | |
| 6527 | # Regexp to match symbols that can be accessed directly from C. |
| 6528 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6529 | |
| 6530 | # Transform an extracted symbol line into a proper C declaration |
| 6531 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
| 6532 | |
| 6533 | # Transform an extracted symbol line into symbol name and symbol address |
| 6534 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6535 | |
| 6536 | # Define system-specific variables. |
| 6537 | case $host_os in |
| 6538 | aix*) |
| 6539 | symcode='[BCDT]' |
| 6540 | ;; |
| 6541 | cygwin* | mingw* | pw32*) |
| 6542 | symcode='[ABCDGISTW]' |
| 6543 | ;; |
| 6544 | hpux*) # Its linker distinguishes data from code symbols |
| 6545 | if test "$host_cpu" = ia64; then |
| 6546 | symcode='[ABCDEGRST]' |
| 6547 | fi |
| 6548 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6549 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6550 | ;; |
| 6551 | linux*) |
| 6552 | if test "$host_cpu" = ia64; then |
| 6553 | symcode='[ABCDGIRSTW]' |
| 6554 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6555 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
| 6556 | fi |
| 6557 | ;; |
| 6558 | irix* | nonstopux*) |
| 6559 | symcode='[BCDEGRST]' |
| 6560 | ;; |
| 6561 | osf*) |
| 6562 | symcode='[BCDEGQRST]' |
| 6563 | ;; |
| 6564 | solaris*) |
| 6565 | symcode='[BDRT]' |
| 6566 | ;; |
| 6567 | sco3.2v5*) |
| 6568 | symcode='[DT]' |
| 6569 | ;; |
| 6570 | sysv4.2uw2*) |
| 6571 | symcode='[DT]' |
| 6572 | ;; |
| 6573 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6574 | symcode='[ABDT]' |
| 6575 | ;; |
| 6576 | sysv4) |
| 6577 | symcode='[DFNSTU]' |
| 6578 | ;; |
| 6579 | esac |
| 6580 | |
| 6581 | # Handle CRLF in mingw tool chain |
| 6582 | opt_cr= |
| 6583 | case $build_os in |
| 6584 | mingw*) |
| 6585 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6586 | ;; |
| 6587 | esac |
| 6588 | |
| 6589 | # If we're using GNU nm, then use its standard symbol codes. |
| 6590 | case `$NM -V 2>&1` in |
| 6591 | *GNU* | *'with BFD'*) |
| 6592 | symcode='[ABCDGIRSTW]' ;; |
| 6593 | esac |
| 6594 | |
| 6595 | # Try without a prefix undercore, then with it. |
| 6596 | for ac_symprfx in "" "_"; do |
| 6597 | |
| 6598 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6599 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6600 | |
| 6601 | # Write the raw and C identifiers. |
| 6602 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6603 | |
| 6604 | # Check to see that the pipe works correctly. |
| 6605 | pipe_works=no |
| 6606 | |
| 6607 | rm -f conftest* |
| 6608 | cat > conftest.$ac_ext <<EOF |
| 6609 | #ifdef __cplusplus |
| 6610 | extern "C" { |
| 6611 | #endif |
| 6612 | char nm_test_var; |
| 6613 | void nm_test_func(){} |
| 6614 | #ifdef __cplusplus |
| 6615 | } |
| 6616 | #endif |
| 6617 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6618 | EOF |
| 6619 | |
| 6620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6621 | (eval $ac_compile) 2>&5 |
| 6622 | ac_status=$? |
| 6623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6624 | (exit $ac_status); }; then |
| 6625 | # Now try to grab the symbols. |
| 6626 | nlist=conftest.nm |
| 6627 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
| 6628 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); } && test -s "$nlist"; then |
| 6632 | # Try sorting and uniquifying the output. |
| 6633 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6634 | mv -f "$nlist"T "$nlist" |
| 6635 | else |
| 6636 | rm -f "$nlist"T |
| 6637 | fi |
| 6638 | |
| 6639 | # Make sure that we snagged all the symbols we need. |
| 6640 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
| 6641 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
| 6642 | cat <<EOF > conftest.$ac_ext |
| 6643 | #ifdef __cplusplus |
| 6644 | extern "C" { |
| 6645 | #endif |
| 6646 | |
| 6647 | EOF |
| 6648 | # Now generate the symbol file. |
| 6649 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
| 6650 | |
| 6651 | cat <<EOF >> conftest.$ac_ext |
| 6652 | #if defined (__STDC__) && __STDC__ |
| 6653 | # define lt_ptr_t void * |
| 6654 | #else |
| 6655 | # define lt_ptr_t char * |
| 6656 | # define const |
| 6657 | #endif |
| 6658 | |
| 6659 | /* The mapping between symbol names and symbols. */ |
| 6660 | const struct { |
| 6661 | const char *name; |
| 6662 | lt_ptr_t address; |
| 6663 | } |
| 6664 | lt_preloaded_symbols[] = |
| 6665 | { |
| 6666 | EOF |
| 6667 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
| 6668 | cat <<\EOF >> conftest.$ac_ext |
| 6669 | {0, (lt_ptr_t) 0} |
| 6670 | }; |
| 6671 | |
| 6672 | #ifdef __cplusplus |
| 6673 | } |
| 6674 | #endif |
| 6675 | EOF |
| 6676 | # Now try linking the two files. |
| 6677 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6678 | lt_save_LIBS="$LIBS" |
| 6679 | lt_save_CFLAGS="$CFLAGS" |
| 6680 | LIBS="conftstm.$ac_objext" |
| 6681 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6683 | (eval $ac_link) 2>&5 |
| 6684 | ac_status=$? |
| 6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6686 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
| 6687 | pipe_works=yes |
| 6688 | fi |
| 6689 | LIBS="$lt_save_LIBS" |
| 6690 | CFLAGS="$lt_save_CFLAGS" |
| 6691 | else |
| 6692 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6693 | fi |
| 6694 | else |
| 6695 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6696 | fi |
| 6697 | else |
| 6698 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6699 | fi |
| 6700 | else |
| 6701 | echo "$progname: failed program was:" >&5 |
| 6702 | cat conftest.$ac_ext >&5 |
| 6703 | fi |
| 6704 | rm -f conftest* conftst* |
| 6705 | |
| 6706 | # Do not use the global_symbol_pipe unless it works. |
| 6707 | if test "$pipe_works" = yes; then |
| 6708 | break |
| 6709 | else |
| 6710 | lt_cv_sys_global_symbol_pipe= |
| 6711 | fi |
| 6712 | done |
| 6713 | |
| 6714 | fi |
| 6715 | |
| 6716 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6717 | lt_cv_sys_global_symbol_to_cdecl= |
| 6718 | fi |
| 6719 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6720 | echo "$as_me:$LINENO: result: failed" >&5 |
| 6721 | echo "${ECHO_T}failed" >&6 |
| 6722 | else |
| 6723 | echo "$as_me:$LINENO: result: ok" >&5 |
| 6724 | echo "${ECHO_T}ok" >&6 |
| 6725 | fi |
| 6726 | |
| 6727 | echo "$as_me:$LINENO: checking for objdir" >&5 |
| 6728 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
| 6729 | if test "${lt_cv_objdir+set}" = set; then |
| 6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6731 | else |
| 6732 | rm -f .libs 2>/dev/null |
| 6733 | mkdir .libs 2>/dev/null |
| 6734 | if test -d .libs; then |
| 6735 | lt_cv_objdir=.libs |
| 6736 | else |
| 6737 | # MS-DOS does not allow filenames that begin with a dot. |
| 6738 | lt_cv_objdir=_libs |
| 6739 | fi |
| 6740 | rmdir .libs 2>/dev/null |
| 6741 | fi |
| 6742 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
| 6743 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
| 6744 | objdir=$lt_cv_objdir |
| 6745 | |
| 6746 | |
| 6747 | |
| 6748 | |
| 6749 | |
| 6750 | case $host_os in |
| 6751 | aix3*) |
| 6752 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 6753 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 6754 | # vanish in a puff of smoke. |
| 6755 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 6756 | COLLECT_NAMES= |
| 6757 | export COLLECT_NAMES |
| 6758 | fi |
| 6759 | ;; |
| 6760 | esac |
| 6761 | |
| 6762 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 6763 | # metacharacters that are still active within double-quoted strings. |
| 6764 | Xsed='sed -e 1s/^X//' |
| 6765 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
| 6766 | |
| 6767 | # Same as above, but do not quote variable references. |
| 6768 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
| 6769 | |
| 6770 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 6771 | # double_quote_subst'ed string. |
| 6772 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 6773 | |
| 6774 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 6775 | no_glob_subst='s/\*/\\\*/g' |
| 6776 | |
| 6777 | # Constants: |
| 6778 | rm="rm -f" |
| 6779 | |
| 6780 | # Global variables: |
| 6781 | default_ofile=libtool |
| 6782 | can_build_shared=yes |
| 6783 | |
| 6784 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 6785 | # which needs '.lib'). |
| 6786 | libext=a |
| 6787 | ltmain="$ac_aux_dir/ltmain.sh" |
| 6788 | ofile="$default_ofile" |
| 6789 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 6790 | |
| 6791 | if test -n "$ac_tool_prefix"; then |
| 6792 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6793 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6796 | if test "${ac_cv_prog_AR+set}" = set; then |
| 6797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6798 | else |
| 6799 | if test -n "$AR"; then |
| 6800 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6801 | else |
| 6802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6803 | for as_dir in $PATH |
| 6804 | do |
| 6805 | IFS=$as_save_IFS |
| 6806 | test -z "$as_dir" && as_dir=. |
| 6807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6809 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6811 | break 2 |
| 6812 | fi |
| 6813 | done |
| 6814 | done |
| 6815 | |
| 6816 | fi |
| 6817 | fi |
| 6818 | AR=$ac_cv_prog_AR |
| 6819 | if test -n "$AR"; then |
| 6820 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 6821 | echo "${ECHO_T}$AR" >&6 |
| 6822 | else |
| 6823 | echo "$as_me:$LINENO: result: no" >&5 |
| 6824 | echo "${ECHO_T}no" >&6 |
| 6825 | fi |
| 6826 | |
| 6827 | fi |
| 6828 | if test -z "$ac_cv_prog_AR"; then |
| 6829 | ac_ct_AR=$AR |
| 6830 | # Extract the first word of "ar", so it can be a program name with args. |
| 6831 | set dummy ar; ac_word=$2 |
| 6832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6834 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 6835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6836 | else |
| 6837 | if test -n "$ac_ct_AR"; then |
| 6838 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6839 | else |
| 6840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6841 | for as_dir in $PATH |
| 6842 | do |
| 6843 | IFS=$as_save_IFS |
| 6844 | test -z "$as_dir" && as_dir=. |
| 6845 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6847 | ac_cv_prog_ac_ct_AR="ar" |
| 6848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6849 | break 2 |
| 6850 | fi |
| 6851 | done |
| 6852 | done |
| 6853 | |
| 6854 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
| 6855 | fi |
| 6856 | fi |
| 6857 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6858 | if test -n "$ac_ct_AR"; then |
| 6859 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 6860 | echo "${ECHO_T}$ac_ct_AR" >&6 |
| 6861 | else |
| 6862 | echo "$as_me:$LINENO: result: no" >&5 |
| 6863 | echo "${ECHO_T}no" >&6 |
| 6864 | fi |
| 6865 | |
| 6866 | AR=$ac_ct_AR |
| 6867 | else |
| 6868 | AR="$ac_cv_prog_AR" |
| 6869 | fi |
| 6870 | |
| 6871 | if test -n "$ac_tool_prefix"; then |
| 6872 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6873 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6876 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6878 | else |
| 6879 | if test -n "$RANLIB"; then |
| 6880 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6881 | else |
| 6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6883 | for as_dir in $PATH |
| 6884 | do |
| 6885 | IFS=$as_save_IFS |
| 6886 | test -z "$as_dir" && as_dir=. |
| 6887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6889 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6891 | break 2 |
| 6892 | fi |
| 6893 | done |
| 6894 | done |
| 6895 | |
| 6896 | fi |
| 6897 | fi |
| 6898 | RANLIB=$ac_cv_prog_RANLIB |
| 6899 | if test -n "$RANLIB"; then |
| 6900 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 6901 | echo "${ECHO_T}$RANLIB" >&6 |
| 6902 | else |
| 6903 | echo "$as_me:$LINENO: result: no" >&5 |
| 6904 | echo "${ECHO_T}no" >&6 |
| 6905 | fi |
| 6906 | |
| 6907 | fi |
| 6908 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6909 | ac_ct_RANLIB=$RANLIB |
| 6910 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6911 | set dummy ranlib; ac_word=$2 |
| 6912 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6913 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6914 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6916 | else |
| 6917 | if test -n "$ac_ct_RANLIB"; then |
| 6918 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6919 | else |
| 6920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6921 | for as_dir in $PATH |
| 6922 | do |
| 6923 | IFS=$as_save_IFS |
| 6924 | test -z "$as_dir" && as_dir=. |
| 6925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6927 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6929 | break 2 |
| 6930 | fi |
| 6931 | done |
| 6932 | done |
| 6933 | |
| 6934 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 6935 | fi |
| 6936 | fi |
| 6937 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6938 | if test -n "$ac_ct_RANLIB"; then |
| 6939 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 6940 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 6941 | else |
| 6942 | echo "$as_me:$LINENO: result: no" >&5 |
| 6943 | echo "${ECHO_T}no" >&6 |
| 6944 | fi |
| 6945 | |
| 6946 | RANLIB=$ac_ct_RANLIB |
| 6947 | else |
| 6948 | RANLIB="$ac_cv_prog_RANLIB" |
| 6949 | fi |
| 6950 | |
| 6951 | if test -n "$ac_tool_prefix"; then |
| 6952 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6953 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6956 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 6957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6958 | else |
| 6959 | if test -n "$STRIP"; then |
| 6960 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6961 | else |
| 6962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6963 | for as_dir in $PATH |
| 6964 | do |
| 6965 | IFS=$as_save_IFS |
| 6966 | test -z "$as_dir" && as_dir=. |
| 6967 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6969 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6971 | break 2 |
| 6972 | fi |
| 6973 | done |
| 6974 | done |
| 6975 | |
| 6976 | fi |
| 6977 | fi |
| 6978 | STRIP=$ac_cv_prog_STRIP |
| 6979 | if test -n "$STRIP"; then |
| 6980 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 6981 | echo "${ECHO_T}$STRIP" >&6 |
| 6982 | else |
| 6983 | echo "$as_me:$LINENO: result: no" >&5 |
| 6984 | echo "${ECHO_T}no" >&6 |
| 6985 | fi |
| 6986 | |
| 6987 | fi |
| 6988 | if test -z "$ac_cv_prog_STRIP"; then |
| 6989 | ac_ct_STRIP=$STRIP |
| 6990 | # Extract the first word of "strip", so it can be a program name with args. |
| 6991 | set dummy strip; ac_word=$2 |
| 6992 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 6993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 6994 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6996 | else |
| 6997 | if test -n "$ac_ct_STRIP"; then |
| 6998 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6999 | else |
| 7000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7001 | for as_dir in $PATH |
| 7002 | do |
| 7003 | IFS=$as_save_IFS |
| 7004 | test -z "$as_dir" && as_dir=. |
| 7005 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7006 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7007 | ac_cv_prog_ac_ct_STRIP="strip" |
| 7008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7009 | break 2 |
| 7010 | fi |
| 7011 | done |
| 7012 | done |
| 7013 | |
| 7014 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
| 7015 | fi |
| 7016 | fi |
| 7017 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7018 | if test -n "$ac_ct_STRIP"; then |
| 7019 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 7020 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
| 7021 | else |
| 7022 | echo "$as_me:$LINENO: result: no" >&5 |
| 7023 | echo "${ECHO_T}no" >&6 |
| 7024 | fi |
| 7025 | |
| 7026 | STRIP=$ac_ct_STRIP |
| 7027 | else |
| 7028 | STRIP="$ac_cv_prog_STRIP" |
| 7029 | fi |
| 7030 | |
| 7031 | |
| 7032 | old_CC="$CC" |
| 7033 | old_CFLAGS="$CFLAGS" |
| 7034 | |
| 7035 | # Set sane defaults for various variables |
| 7036 | test -z "$AR" && AR=ar |
| 7037 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 7038 | test -z "$AS" && AS=as |
| 7039 | test -z "$CC" && CC=cc |
| 7040 | test -z "$LTCC" && LTCC=$CC |
| 7041 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 7042 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 7043 | test -z "$LD" && LD=ld |
| 7044 | test -z "$LN_S" && LN_S="ln -s" |
| 7045 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 7046 | test -z "$NM" && NM=nm |
| 7047 | test -z "$SED" && SED=sed |
| 7048 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 7049 | test -z "$RANLIB" && RANLIB=: |
| 7050 | test -z "$STRIP" && STRIP=: |
| 7051 | test -z "$ac_objext" && ac_objext=o |
| 7052 | |
| 7053 | # Determine commands to create old-style static archives. |
| 7054 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
| 7055 | old_postinstall_cmds='chmod 644 $oldlib' |
| 7056 | old_postuninstall_cmds= |
| 7057 | |
| 7058 | if test -n "$RANLIB"; then |
| 7059 | case $host_os in |
| 7060 | openbsd*) |
| 7061 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 7062 | ;; |
| 7063 | *) |
| 7064 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 7065 | ;; |
| 7066 | esac |
| 7067 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 7068 | fi |
| 7069 | |
| 7070 | for cc_temp in $compiler""; do |
| 7071 | case $cc_temp in |
| 7072 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7073 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7074 | \-*) ;; |
| 7075 | *) break;; |
| 7076 | esac |
| 7077 | done |
| 7078 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7079 | |
| 7080 | |
| 7081 | # Only perform the check for file, if the check method requires it |
| 7082 | case $deplibs_check_method in |
| 7083 | file_magic*) |
| 7084 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 7085 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
| 7086 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
| 7087 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7089 | else |
| 7090 | case $MAGIC_CMD in |
| 7091 | [\\/*] | ?:[\\/]*) |
| 7092 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7093 | ;; |
| 7094 | *) |
| 7095 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7096 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7097 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7098 | for ac_dir in $ac_dummy; do |
| 7099 | IFS="$lt_save_ifs" |
| 7100 | test -z "$ac_dir" && ac_dir=. |
| 7101 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 7102 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 7103 | if test -n "$file_magic_test_file"; then |
| 7104 | case $deplibs_check_method in |
| 7105 | "file_magic "*) |
| 7106 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7107 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7108 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7109 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7110 | : |
| 7111 | else |
| 7112 | cat <<EOF 1>&2 |
| 7113 | |
| 7114 | *** Warning: the command libtool uses to detect shared libraries, |
| 7115 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7116 | *** The result is that libtool may fail to recognize shared libraries |
| 7117 | *** as such. This will affect the creation of libtool libraries that |
| 7118 | *** depend on shared libraries, but programs linked with such libtool |
| 7119 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7120 | *** may want to report the problem to your system manager and/or to |
| 7121 | *** bug-libtool@gnu.org |
| 7122 | |
| 7123 | EOF |
| 7124 | fi ;; |
| 7125 | esac |
| 7126 | fi |
| 7127 | break |
| 7128 | fi |
| 7129 | done |
| 7130 | IFS="$lt_save_ifs" |
| 7131 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7132 | ;; |
| 7133 | esac |
| 7134 | fi |
| 7135 | |
| 7136 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7137 | if test -n "$MAGIC_CMD"; then |
| 7138 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7139 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 7140 | else |
| 7141 | echo "$as_me:$LINENO: result: no" >&5 |
| 7142 | echo "${ECHO_T}no" >&6 |
| 7143 | fi |
| 7144 | |
| 7145 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 7146 | if test -n "$ac_tool_prefix"; then |
| 7147 | echo "$as_me:$LINENO: checking for file" >&5 |
| 7148 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
| 7149 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
| 7150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7151 | else |
| 7152 | case $MAGIC_CMD in |
| 7153 | [\\/*] | ?:[\\/]*) |
| 7154 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 7155 | ;; |
| 7156 | *) |
| 7157 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 7158 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 7159 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 7160 | for ac_dir in $ac_dummy; do |
| 7161 | IFS="$lt_save_ifs" |
| 7162 | test -z "$ac_dir" && ac_dir=. |
| 7163 | if test -f $ac_dir/file; then |
| 7164 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 7165 | if test -n "$file_magic_test_file"; then |
| 7166 | case $deplibs_check_method in |
| 7167 | "file_magic "*) |
| 7168 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 7169 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7170 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 7171 | $EGREP "$file_magic_regex" > /dev/null; then |
| 7172 | : |
| 7173 | else |
| 7174 | cat <<EOF 1>&2 |
| 7175 | |
| 7176 | *** Warning: the command libtool uses to detect shared libraries, |
| 7177 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 7178 | *** The result is that libtool may fail to recognize shared libraries |
| 7179 | *** as such. This will affect the creation of libtool libraries that |
| 7180 | *** depend on shared libraries, but programs linked with such libtool |
| 7181 | *** libraries will work regardless of this problem. Nevertheless, you |
| 7182 | *** may want to report the problem to your system manager and/or to |
| 7183 | *** bug-libtool@gnu.org |
| 7184 | |
| 7185 | EOF |
| 7186 | fi ;; |
| 7187 | esac |
| 7188 | fi |
| 7189 | break |
| 7190 | fi |
| 7191 | done |
| 7192 | IFS="$lt_save_ifs" |
| 7193 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 7194 | ;; |
| 7195 | esac |
| 7196 | fi |
| 7197 | |
| 7198 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 7199 | if test -n "$MAGIC_CMD"; then |
| 7200 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
| 7201 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
| 7202 | else |
| 7203 | echo "$as_me:$LINENO: result: no" >&5 |
| 7204 | echo "${ECHO_T}no" >&6 |
| 7205 | fi |
| 7206 | |
| 7207 | else |
| 7208 | MAGIC_CMD=: |
| 7209 | fi |
| 7210 | fi |
| 7211 | |
| 7212 | fi |
| 7213 | ;; |
| 7214 | esac |
| 7215 | |
| 7216 | enable_dlopen=no |
| 7217 | enable_win32_dll=no |
| 7218 | |
| 7219 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 7220 | if test "${enable_libtool_lock+set}" = set; then |
| 7221 | enableval="$enable_libtool_lock" |
| 7222 | |
| 7223 | fi; |
| 7224 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 7225 | |
| 7226 | |
| 7227 | # Check whether --with-pic or --without-pic was given. |
| 7228 | if test "${with_pic+set}" = set; then |
| 7229 | withval="$with_pic" |
| 7230 | pic_mode="$withval" |
| 7231 | else |
| 7232 | pic_mode=default |
| 7233 | fi; |
| 7234 | test -z "$pic_mode" && pic_mode=default |
| 7235 | |
| 7236 | # Use C for the default configuration in the libtool script |
| 7237 | tagname= |
| 7238 | lt_save_CC="$CC" |
| 7239 | ac_ext=c |
| 7240 | ac_cpp='$CPP $CPPFLAGS' |
| 7241 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7242 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7243 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7244 | |
| 7245 | |
| 7246 | # Source file extension for C test sources. |
| 7247 | ac_ext=c |
| 7248 | |
| 7249 | # Object file extension for compiled C test sources. |
| 7250 | objext=o |
| 7251 | objext=$objext |
| 7252 | |
| 7253 | # Code to be used in simple compile tests |
| 7254 | lt_simple_compile_test_code="int some_variable = 0;\n" |
| 7255 | |
| 7256 | # Code to be used in simple link tests |
| 7257 | lt_simple_link_test_code='int main(){return(0);}\n' |
| 7258 | |
| 7259 | |
| 7260 | # If no C compiler was specified, use CC. |
| 7261 | LTCC=${LTCC-"$CC"} |
| 7262 | |
| 7263 | # If no C compiler flags were specified, use CFLAGS. |
| 7264 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 7265 | |
| 7266 | # Allow CC to be a program name with arguments. |
| 7267 | compiler=$CC |
| 7268 | |
| 7269 | |
| 7270 | # save warnings/boilerplate of simple test code |
| 7271 | ac_outfile=conftest.$ac_objext |
| 7272 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 7273 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7274 | _lt_compiler_boilerplate=`cat conftest.err` |
| 7275 | $rm conftest* |
| 7276 | |
| 7277 | ac_outfile=conftest.$ac_objext |
| 7278 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
| 7279 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 7280 | _lt_linker_boilerplate=`cat conftest.err` |
| 7281 | $rm conftest* |
| 7282 | |
| 7283 | |
| 7284 | ## CAVEAT EMPTOR: |
| 7285 | ## There is no encapsulation within the following macros, do not change |
| 7286 | ## the running order or otherwise move them around unless you know exactly |
| 7287 | ## what you are doing... |
| 7288 | |
| 7289 | lt_prog_compiler_no_builtin_flag= |
| 7290 | |
| 7291 | if test "$GCC" = yes; then |
| 7292 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 7293 | |
| 7294 | |
| 7295 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 7296 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
| 7297 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
| 7298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7299 | else |
| 7300 | lt_cv_prog_compiler_rtti_exceptions=no |
| 7301 | ac_outfile=conftest.$ac_objext |
| 7302 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7303 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 7304 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7305 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7306 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7307 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7308 | # The option is referenced via a variable to avoid confusing sed. |
| 7309 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7310 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7311 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7312 | -e 's:$: $lt_compiler_flag:'` |
| 7313 | (eval echo "\"\$as_me:7313: $lt_compile\"" >&5) |
| 7314 | (eval "$lt_compile" 2>conftest.err) |
| 7315 | ac_status=$? |
| 7316 | cat conftest.err >&5 |
| 7317 | echo "$as_me:7317: \$? = $ac_status" >&5 |
| 7318 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7319 | # The compiler can only warn and ignore the option if not recognized |
| 7320 | # So say no if there are warnings other than the usual output. |
| 7321 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7322 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7323 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7324 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 7325 | fi |
| 7326 | fi |
| 7327 | $rm conftest* |
| 7328 | |
| 7329 | fi |
| 7330 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 7331 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
| 7332 | |
| 7333 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 7334 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 7335 | else |
| 7336 | : |
| 7337 | fi |
| 7338 | |
| 7339 | fi |
| 7340 | |
| 7341 | lt_prog_compiler_wl= |
| 7342 | lt_prog_compiler_pic= |
| 7343 | lt_prog_compiler_static= |
| 7344 | |
| 7345 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
| 7346 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
| 7347 | |
| 7348 | if test "$GCC" = yes; then |
| 7349 | lt_prog_compiler_wl='-Wl,' |
| 7350 | lt_prog_compiler_static='-static' |
| 7351 | |
| 7352 | case $host_os in |
| 7353 | aix*) |
| 7354 | # All AIX code is PIC. |
| 7355 | if test "$host_cpu" = ia64; then |
| 7356 | # AIX 5 now supports IA64 processor |
| 7357 | lt_prog_compiler_static='-Bstatic' |
| 7358 | fi |
| 7359 | ;; |
| 7360 | |
| 7361 | amigaos*) |
| 7362 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 7363 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 7364 | # like `-m68040'. |
| 7365 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 7366 | ;; |
| 7367 | |
| 7368 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 7369 | # PIC is the default for these OSes. |
| 7370 | ;; |
| 7371 | |
| 7372 | mingw* | pw32* | os2*) |
| 7373 | # This hack is so that the source file can tell whether it is being |
| 7374 | # built for inclusion in a dll (and should export symbols for example). |
| 7375 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7376 | ;; |
| 7377 | |
| 7378 | darwin* | rhapsody*) |
| 7379 | # PIC is the default on this platform |
| 7380 | # Common symbols not allowed in MH_DYLIB files |
| 7381 | lt_prog_compiler_pic='-fno-common' |
| 7382 | ;; |
| 7383 | |
| 7384 | interix3*) |
| 7385 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 7386 | # Instead, we relocate shared libraries at runtime. |
| 7387 | ;; |
| 7388 | |
| 7389 | msdosdjgpp*) |
| 7390 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 7391 | # on systems that don't support them. |
| 7392 | lt_prog_compiler_can_build_shared=no |
| 7393 | enable_shared=no |
| 7394 | ;; |
| 7395 | |
| 7396 | sysv4*MP*) |
| 7397 | if test -d /usr/nec; then |
| 7398 | lt_prog_compiler_pic=-Kconform_pic |
| 7399 | fi |
| 7400 | ;; |
| 7401 | |
| 7402 | hpux*) |
| 7403 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7404 | # not for PA HP-UX. |
| 7405 | case $host_cpu in |
| 7406 | hppa*64*|ia64*) |
| 7407 | # +Z the default |
| 7408 | ;; |
| 7409 | *) |
| 7410 | lt_prog_compiler_pic='-fPIC' |
| 7411 | ;; |
| 7412 | esac |
| 7413 | ;; |
| 7414 | |
| 7415 | *) |
| 7416 | lt_prog_compiler_pic='-fPIC' |
| 7417 | ;; |
| 7418 | esac |
| 7419 | else |
| 7420 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 7421 | case $host_os in |
| 7422 | aix*) |
| 7423 | lt_prog_compiler_wl='-Wl,' |
| 7424 | if test "$host_cpu" = ia64; then |
| 7425 | # AIX 5 now supports IA64 processor |
| 7426 | lt_prog_compiler_static='-Bstatic' |
| 7427 | else |
| 7428 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 7429 | fi |
| 7430 | ;; |
| 7431 | darwin*) |
| 7432 | # PIC is the default on this platform |
| 7433 | # Common symbols not allowed in MH_DYLIB files |
| 7434 | case $cc_basename in |
| 7435 | xlc*) |
| 7436 | lt_prog_compiler_pic='-qnocommon' |
| 7437 | lt_prog_compiler_wl='-Wl,' |
| 7438 | ;; |
| 7439 | esac |
| 7440 | ;; |
| 7441 | |
| 7442 | mingw* | pw32* | os2*) |
| 7443 | # This hack is so that the source file can tell whether it is being |
| 7444 | # built for inclusion in a dll (and should export symbols for example). |
| 7445 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 7446 | ;; |
| 7447 | |
| 7448 | hpux9* | hpux10* | hpux11*) |
| 7449 | lt_prog_compiler_wl='-Wl,' |
| 7450 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 7451 | # not for PA HP-UX. |
| 7452 | case $host_cpu in |
| 7453 | hppa*64*|ia64*) |
| 7454 | # +Z the default |
| 7455 | ;; |
| 7456 | *) |
| 7457 | lt_prog_compiler_pic='+Z' |
| 7458 | ;; |
| 7459 | esac |
| 7460 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 7461 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 7462 | ;; |
| 7463 | |
| 7464 | irix5* | irix6* | nonstopux*) |
| 7465 | lt_prog_compiler_wl='-Wl,' |
| 7466 | # PIC (with -KPIC) is the default. |
| 7467 | lt_prog_compiler_static='-non_shared' |
| 7468 | ;; |
| 7469 | |
| 7470 | newsos6) |
| 7471 | lt_prog_compiler_pic='-KPIC' |
| 7472 | lt_prog_compiler_static='-Bstatic' |
| 7473 | ;; |
| 7474 | |
| 7475 | linux*) |
| 7476 | case $cc_basename in |
| 7477 | icc* | ecc*) |
| 7478 | lt_prog_compiler_wl='-Wl,' |
| 7479 | lt_prog_compiler_pic='-KPIC' |
| 7480 | lt_prog_compiler_static='-static' |
| 7481 | ;; |
| 7482 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 7483 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 7484 | # which looks to be a dead project) |
| 7485 | lt_prog_compiler_wl='-Wl,' |
| 7486 | lt_prog_compiler_pic='-fpic' |
| 7487 | lt_prog_compiler_static='-Bstatic' |
| 7488 | ;; |
| 7489 | ccc*) |
| 7490 | lt_prog_compiler_wl='-Wl,' |
| 7491 | # All Alpha code is PIC. |
| 7492 | lt_prog_compiler_static='-non_shared' |
| 7493 | ;; |
| 7494 | esac |
| 7495 | ;; |
| 7496 | |
| 7497 | osf3* | osf4* | osf5*) |
| 7498 | lt_prog_compiler_wl='-Wl,' |
| 7499 | # All OSF/1 code is PIC. |
| 7500 | lt_prog_compiler_static='-non_shared' |
| 7501 | ;; |
| 7502 | |
| 7503 | solaris*) |
| 7504 | lt_prog_compiler_pic='-KPIC' |
| 7505 | lt_prog_compiler_static='-Bstatic' |
| 7506 | case $cc_basename in |
| 7507 | f77* | f90* | f95*) |
| 7508 | lt_prog_compiler_wl='-Qoption ld ';; |
| 7509 | *) |
| 7510 | lt_prog_compiler_wl='-Wl,';; |
| 7511 | esac |
| 7512 | ;; |
| 7513 | |
| 7514 | sunos4*) |
| 7515 | lt_prog_compiler_wl='-Qoption ld ' |
| 7516 | lt_prog_compiler_pic='-PIC' |
| 7517 | lt_prog_compiler_static='-Bstatic' |
| 7518 | ;; |
| 7519 | |
| 7520 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 7521 | lt_prog_compiler_wl='-Wl,' |
| 7522 | lt_prog_compiler_pic='-KPIC' |
| 7523 | lt_prog_compiler_static='-Bstatic' |
| 7524 | ;; |
| 7525 | |
| 7526 | sysv4*MP*) |
| 7527 | if test -d /usr/nec ;then |
| 7528 | lt_prog_compiler_pic='-Kconform_pic' |
| 7529 | lt_prog_compiler_static='-Bstatic' |
| 7530 | fi |
| 7531 | ;; |
| 7532 | |
| 7533 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 7534 | lt_prog_compiler_wl='-Wl,' |
| 7535 | lt_prog_compiler_pic='-KPIC' |
| 7536 | lt_prog_compiler_static='-Bstatic' |
| 7537 | ;; |
| 7538 | |
| 7539 | unicos*) |
| 7540 | lt_prog_compiler_wl='-Wl,' |
| 7541 | lt_prog_compiler_can_build_shared=no |
| 7542 | ;; |
| 7543 | |
| 7544 | uts4*) |
| 7545 | lt_prog_compiler_pic='-pic' |
| 7546 | lt_prog_compiler_static='-Bstatic' |
| 7547 | ;; |
| 7548 | |
| 7549 | *) |
| 7550 | lt_prog_compiler_can_build_shared=no |
| 7551 | ;; |
| 7552 | esac |
| 7553 | fi |
| 7554 | |
| 7555 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
| 7556 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
| 7557 | |
| 7558 | # |
| 7559 | # Check to make sure the PIC flag actually works. |
| 7560 | # |
| 7561 | if test -n "$lt_prog_compiler_pic"; then |
| 7562 | |
| 7563 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 7564 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
| 7565 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
| 7566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7567 | else |
| 7568 | lt_prog_compiler_pic_works=no |
| 7569 | ac_outfile=conftest.$ac_objext |
| 7570 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7571 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 7572 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7573 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7574 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7575 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7576 | # The option is referenced via a variable to avoid confusing sed. |
| 7577 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7578 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7579 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7580 | -e 's:$: $lt_compiler_flag:'` |
| 7581 | (eval echo "\"\$as_me:7581: $lt_compile\"" >&5) |
| 7582 | (eval "$lt_compile" 2>conftest.err) |
| 7583 | ac_status=$? |
| 7584 | cat conftest.err >&5 |
| 7585 | echo "$as_me:7585: \$? = $ac_status" >&5 |
| 7586 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 7587 | # The compiler can only warn and ignore the option if not recognized |
| 7588 | # So say no if there are warnings other than the usual output. |
| 7589 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
| 7590 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7591 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 7592 | lt_prog_compiler_pic_works=yes |
| 7593 | fi |
| 7594 | fi |
| 7595 | $rm conftest* |
| 7596 | |
| 7597 | fi |
| 7598 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
| 7599 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
| 7600 | |
| 7601 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
| 7602 | case $lt_prog_compiler_pic in |
| 7603 | "" | " "*) ;; |
| 7604 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 7605 | esac |
| 7606 | else |
| 7607 | lt_prog_compiler_pic= |
| 7608 | lt_prog_compiler_can_build_shared=no |
| 7609 | fi |
| 7610 | |
| 7611 | fi |
| 7612 | case $host_os in |
| 7613 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 7614 | *djgpp*) |
| 7615 | lt_prog_compiler_pic= |
| 7616 | ;; |
| 7617 | *) |
| 7618 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 7619 | ;; |
| 7620 | esac |
| 7621 | |
| 7622 | # |
| 7623 | # Check to make sure the static flag actually works. |
| 7624 | # |
| 7625 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 7626 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 7627 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
| 7628 | if test "${lt_prog_compiler_static_works+set}" = set; then |
| 7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7630 | else |
| 7631 | lt_prog_compiler_static_works=no |
| 7632 | save_LDFLAGS="$LDFLAGS" |
| 7633 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 7634 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
| 7635 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 7636 | # The linker can only warn and ignore the option if not recognized |
| 7637 | # So say no if there are warnings |
| 7638 | if test -s conftest.err; then |
| 7639 | # Append any errors to the config.log. |
| 7640 | cat conftest.err 1>&5 |
| 7641 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
| 7642 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 7643 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 7644 | lt_prog_compiler_static_works=yes |
| 7645 | fi |
| 7646 | else |
| 7647 | lt_prog_compiler_static_works=yes |
| 7648 | fi |
| 7649 | fi |
| 7650 | $rm conftest* |
| 7651 | LDFLAGS="$save_LDFLAGS" |
| 7652 | |
| 7653 | fi |
| 7654 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
| 7655 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
| 7656 | |
| 7657 | if test x"$lt_prog_compiler_static_works" = xyes; then |
| 7658 | : |
| 7659 | else |
| 7660 | lt_prog_compiler_static= |
| 7661 | fi |
| 7662 | |
| 7663 | |
| 7664 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 7665 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
| 7666 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
| 7667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7668 | else |
| 7669 | lt_cv_prog_compiler_c_o=no |
| 7670 | $rm -r conftest 2>/dev/null |
| 7671 | mkdir conftest |
| 7672 | cd conftest |
| 7673 | mkdir out |
| 7674 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 7675 | |
| 7676 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 7677 | # Insert the option either (1) after the last *FLAGS variable, or |
| 7678 | # (2) before a word containing "conftest.", or (3) at the end. |
| 7679 | # Note that $ac_compile itself does not contain backslashes and begins |
| 7680 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 7681 | lt_compile=`echo "$ac_compile" | $SED \ |
| 7682 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 7683 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 7684 | -e 's:$: $lt_compiler_flag:'` |
| 7685 | (eval echo "\"\$as_me:7685: $lt_compile\"" >&5) |
| 7686 | (eval "$lt_compile" 2>out/conftest.err) |
| 7687 | ac_status=$? |
| 7688 | cat out/conftest.err >&5 |
| 7689 | echo "$as_me:7689: \$? = $ac_status" >&5 |
| 7690 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 7691 | then |
| 7692 | # The compiler can only warn and ignore the option if not recognized |
| 7693 | # So say no if there are warnings |
| 7694 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 7695 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 7696 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 7697 | lt_cv_prog_compiler_c_o=yes |
| 7698 | fi |
| 7699 | fi |
| 7700 | chmod u+w . 2>&5 |
| 7701 | $rm conftest* |
| 7702 | # SGI C++ compiler will create directory out/ii_files/ for |
| 7703 | # template instantiation |
| 7704 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
| 7705 | $rm out/* && rmdir out |
| 7706 | cd .. |
| 7707 | rmdir conftest |
| 7708 | $rm conftest* |
| 7709 | |
| 7710 | fi |
| 7711 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
| 7712 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
| 7713 | |
| 7714 | |
| 7715 | hard_links="nottested" |
| 7716 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 7717 | # do not overwrite the value of need_locks provided by the user |
| 7718 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
| 7719 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
| 7720 | hard_links=yes |
| 7721 | $rm conftest* |
| 7722 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7723 | touch conftest.a |
| 7724 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 7725 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 7726 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
| 7727 | echo "${ECHO_T}$hard_links" >&6 |
| 7728 | if test "$hard_links" = no; then |
| 7729 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 7730 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 7731 | need_locks=warn |
| 7732 | fi |
| 7733 | else |
| 7734 | need_locks=no |
| 7735 | fi |
| 7736 | |
| 7737 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 7738 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
| 7739 | |
| 7740 | runpath_var= |
| 7741 | allow_undefined_flag= |
| 7742 | enable_shared_with_static_runtimes=no |
| 7743 | archive_cmds= |
| 7744 | archive_expsym_cmds= |
| 7745 | old_archive_From_new_cmds= |
| 7746 | old_archive_from_expsyms_cmds= |
| 7747 | export_dynamic_flag_spec= |
| 7748 | whole_archive_flag_spec= |
| 7749 | thread_safe_flag_spec= |
| 7750 | hardcode_libdir_flag_spec= |
| 7751 | hardcode_libdir_flag_spec_ld= |
| 7752 | hardcode_libdir_separator= |
| 7753 | hardcode_direct=no |
| 7754 | hardcode_minus_L=no |
| 7755 | hardcode_shlibpath_var=unsupported |
| 7756 | link_all_deplibs=unknown |
| 7757 | hardcode_automatic=no |
| 7758 | module_cmds= |
| 7759 | module_expsym_cmds= |
| 7760 | always_export_symbols=no |
| 7761 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 7762 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 7763 | # included in the symbol list |
| 7764 | include_expsyms= |
| 7765 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 7766 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 7767 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 7768 | # as well as any symbol that contains `d'. |
| 7769 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
| 7770 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 7771 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 7772 | # the symbol is explicitly referenced. Since portable code cannot |
| 7773 | # rely on this symbol name, it's probably fine to never include it in |
| 7774 | # preloaded symbol tables. |
| 7775 | extract_expsyms_cmds= |
| 7776 | # Just being paranoid about ensuring that cc_basename is set. |
| 7777 | for cc_temp in $compiler""; do |
| 7778 | case $cc_temp in |
| 7779 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 7780 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 7781 | \-*) ;; |
| 7782 | *) break;; |
| 7783 | esac |
| 7784 | done |
| 7785 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
| 7786 | |
| 7787 | case $host_os in |
| 7788 | cygwin* | mingw* | pw32*) |
| 7789 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 7790 | # When not using gcc, we currently assume that we are using |
| 7791 | # Microsoft Visual C++. |
| 7792 | if test "$GCC" != yes; then |
| 7793 | with_gnu_ld=no |
| 7794 | fi |
| 7795 | ;; |
| 7796 | interix*) |
| 7797 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 7798 | with_gnu_ld=yes |
| 7799 | ;; |
| 7800 | openbsd*) |
| 7801 | with_gnu_ld=no |
| 7802 | ;; |
| 7803 | esac |
| 7804 | |
| 7805 | ld_shlibs=yes |
| 7806 | if test "$with_gnu_ld" = yes; then |
| 7807 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 7808 | wlarc='${wl}' |
| 7809 | |
| 7810 | # Set some defaults for GNU ld with shared library support. These |
| 7811 | # are reset later if shared libraries are not supported. Putting them |
| 7812 | # here allows them to be overridden if necessary. |
| 7813 | runpath_var=LD_RUN_PATH |
| 7814 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
| 7815 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 7816 | # ancient GNU ld didn't support --whole-archive et. al. |
| 7817 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
| 7818 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 7819 | else |
| 7820 | whole_archive_flag_spec= |
| 7821 | fi |
| 7822 | supports_anon_versioning=no |
| 7823 | case `$LD -v 2>/dev/null` in |
| 7824 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 7825 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 7826 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 7827 | *\ 2.11.*) ;; # other 2.11 versions |
| 7828 | *) supports_anon_versioning=yes ;; |
| 7829 | esac |
| 7830 | |
| 7831 | # See if GNU ld supports shared libraries. |
| 7832 | case $host_os in |
| 7833 | aix3* | aix4* | aix5*) |
| 7834 | # On AIX/PPC, the GNU linker is very broken |
| 7835 | if test "$host_cpu" != ia64; then |
| 7836 | ld_shlibs=no |
| 7837 | cat <<EOF 1>&2 |
| 7838 | |
| 7839 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 7840 | *** to be unable to reliably create shared libraries on AIX. |
| 7841 | *** Therefore, libtool is disabling shared libraries support. If you |
| 7842 | *** really care for shared libraries, you may want to modify your PATH |
| 7843 | *** so that a non-GNU linker is found, and then restart. |
| 7844 | |
| 7845 | EOF |
| 7846 | fi |
| 7847 | ;; |
| 7848 | |
| 7849 | amigaos*) |
| 7850 | 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)' |
| 7851 | hardcode_libdir_flag_spec='-L$libdir' |
| 7852 | hardcode_minus_L=yes |
| 7853 | |
| 7854 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
| 7855 | # that the semantics of dynamic libraries on AmigaOS, at least up |
| 7856 | # to version 4, is to share data among multiple programs linked |
| 7857 | # with the same dynamic library. Since this doesn't match the |
| 7858 | # behavior of shared libraries on other platforms, we can't use |
| 7859 | # them. |
| 7860 | ld_shlibs=no |
| 7861 | ;; |
| 7862 | |
| 7863 | beos*) |
| 7864 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7865 | allow_undefined_flag=unsupported |
| 7866 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 7867 | # support --undefined. This deserves some investigation. FIXME |
| 7868 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7869 | else |
| 7870 | ld_shlibs=no |
| 7871 | fi |
| 7872 | ;; |
| 7873 | |
| 7874 | cygwin* | mingw* | pw32*) |
| 7875 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 7876 | # as there is no search path for DLLs. |
| 7877 | hardcode_libdir_flag_spec='-L$libdir' |
| 7878 | allow_undefined_flag=unsupported |
| 7879 | always_export_symbols=no |
| 7880 | enable_shared_with_static_runtimes=yes |
| 7881 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
| 7882 | |
| 7883 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
| 7884 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7885 | # If the export-symbols file already is a .def file (1st line |
| 7886 | # is EXPORTS), use it as is; otherwise, prepend... |
| 7887 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 7888 | cp $export_symbols $output_objdir/$soname.def; |
| 7889 | else |
| 7890 | echo EXPORTS > $output_objdir/$soname.def; |
| 7891 | cat $export_symbols >> $output_objdir/$soname.def; |
| 7892 | fi~ |
| 7893 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 7894 | else |
| 7895 | ld_shlibs=no |
| 7896 | fi |
| 7897 | ;; |
| 7898 | |
| 7899 | interix3*) |
| 7900 | hardcode_direct=no |
| 7901 | hardcode_shlibpath_var=no |
| 7902 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 7903 | export_dynamic_flag_spec='${wl}-E' |
| 7904 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 7905 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 7906 | # default) and relocated if they conflict, which is a slow very memory |
| 7907 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 7908 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 7909 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 7910 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 7911 | 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' |
| 7912 | ;; |
| 7913 | |
| 7914 | linux*) |
| 7915 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7916 | tmp_addflag= |
| 7917 | case $cc_basename,$host_cpu in |
| 7918 | pgcc*) # Portland Group C compiler |
| 7919 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7920 | tmp_addflag=' $pic_flag' |
| 7921 | ;; |
| 7922 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
| 7923 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
| 7924 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 7925 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 7926 | tmp_addflag=' -i_dynamic' ;; |
| 7927 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 7928 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 7929 | ifc* | ifort*) # Intel Fortran compiler |
| 7930 | tmp_addflag=' -nofor_main' ;; |
| 7931 | esac |
| 7932 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7933 | |
| 7934 | if test $supports_anon_versioning = yes; then |
| 7935 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
| 7936 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 7937 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 7938 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 7939 | fi |
| 7940 | else |
| 7941 | ld_shlibs=no |
| 7942 | fi |
| 7943 | ;; |
| 7944 | |
| 7945 | netbsd*) |
| 7946 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 7947 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 7948 | wlarc= |
| 7949 | else |
| 7950 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7951 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7952 | fi |
| 7953 | ;; |
| 7954 | |
| 7955 | solaris*) |
| 7956 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
| 7957 | ld_shlibs=no |
| 7958 | cat <<EOF 1>&2 |
| 7959 | |
| 7960 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 7961 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 7962 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7963 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 7964 | *** your PATH or compiler configuration so that the native linker is |
| 7965 | *** used, and then restart. |
| 7966 | |
| 7967 | EOF |
| 7968 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7969 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 7970 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 7971 | else |
| 7972 | ld_shlibs=no |
| 7973 | fi |
| 7974 | ;; |
| 7975 | |
| 7976 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 7977 | case `$LD -v 2>&1` in |
| 7978 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 7979 | ld_shlibs=no |
| 7980 | cat <<_LT_EOF 1>&2 |
| 7981 | |
| 7982 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 7983 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 7984 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 7985 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 7986 | *** your PATH or compiler configuration so that the native linker is |
| 7987 | *** used, and then restart. |
| 7988 | |
| 7989 | _LT_EOF |
| 7990 | ;; |
| 7991 | *) |
| 7992 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 7993 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
| 7994 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
| 7995 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
| 7996 | else |
| 7997 | ld_shlibs=no |
| 7998 | fi |
| 7999 | ;; |
| 8000 | esac |
| 8001 | ;; |
| 8002 | |
| 8003 | sunos4*) |
| 8004 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8005 | wlarc= |
| 8006 | hardcode_direct=yes |
| 8007 | hardcode_shlibpath_var=no |
| 8008 | ;; |
| 8009 | |
| 8010 | *) |
| 8011 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
| 8012 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8013 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 8014 | else |
| 8015 | ld_shlibs=no |
| 8016 | fi |
| 8017 | ;; |
| 8018 | esac |
| 8019 | |
| 8020 | if test "$ld_shlibs" = no; then |
| 8021 | runpath_var= |
| 8022 | hardcode_libdir_flag_spec= |
| 8023 | export_dynamic_flag_spec= |
| 8024 | whole_archive_flag_spec= |
| 8025 | fi |
| 8026 | else |
| 8027 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 8028 | case $host_os in |
| 8029 | aix3*) |
| 8030 | allow_undefined_flag=unsupported |
| 8031 | always_export_symbols=yes |
| 8032 | 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' |
| 8033 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 8034 | # are no directories specified by -L. |
| 8035 | hardcode_minus_L=yes |
| 8036 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 8037 | # Neither direct hardcoding nor static linking is supported with a |
| 8038 | # broken collect2. |
| 8039 | hardcode_direct=unsupported |
| 8040 | fi |
| 8041 | ;; |
| 8042 | |
| 8043 | aix4* | aix5*) |
| 8044 | if test "$host_cpu" = ia64; then |
| 8045 | # On IA64, the linker does run time linking by default, so we don't |
| 8046 | # have to do anything special. |
| 8047 | aix_use_runtimelinking=no |
| 8048 | exp_sym_flag='-Bexport' |
| 8049 | no_entry_flag="" |
| 8050 | else |
| 8051 | # If we're using GNU nm, then we don't want the "-C" option. |
| 8052 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 8053 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
| 8054 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 8055 | else |
| 8056 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
| 8057 | fi |
| 8058 | aix_use_runtimelinking=no |
| 8059 | |
| 8060 | # Test if we are trying to use run time linking or normal |
| 8061 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 8062 | # need to do runtime linking. |
| 8063 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
| 8064 | for ld_flag in $LDFLAGS; do |
| 8065 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 8066 | aix_use_runtimelinking=yes |
| 8067 | break |
| 8068 | fi |
| 8069 | done |
| 8070 | ;; |
| 8071 | esac |
| 8072 | |
| 8073 | exp_sym_flag='-bexport' |
| 8074 | no_entry_flag='-bnoentry' |
| 8075 | fi |
| 8076 | |
| 8077 | # When large executables or shared objects are built, AIX ld can |
| 8078 | # have problems creating the table of contents. If linking a library |
| 8079 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 8080 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 8081 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 8082 | |
| 8083 | archive_cmds='' |
| 8084 | hardcode_direct=yes |
| 8085 | hardcode_libdir_separator=':' |
| 8086 | link_all_deplibs=yes |
| 8087 | |
| 8088 | if test "$GCC" = yes; then |
| 8089 | case $host_os in aix4.[012]|aix4.[012].*) |
| 8090 | # We only want to do this on AIX 4.2 and lower, the check |
| 8091 | # below for broken collect2 doesn't work under 4.3+ |
| 8092 | collect2name=`${CC} -print-prog-name=collect2` |
| 8093 | if test -f "$collect2name" && \ |
| 8094 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
| 8095 | then |
| 8096 | # We have reworked collect2 |
| 8097 | hardcode_direct=yes |
| 8098 | else |
| 8099 | # We have old collect2 |
| 8100 | hardcode_direct=unsupported |
| 8101 | # It fails to find uninstalled libraries when the uninstalled |
| 8102 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 8103 | # to unsupported forces relinking |
| 8104 | hardcode_minus_L=yes |
| 8105 | hardcode_libdir_flag_spec='-L$libdir' |
| 8106 | hardcode_libdir_separator= |
| 8107 | fi |
| 8108 | ;; |
| 8109 | esac |
| 8110 | shared_flag='-shared' |
| 8111 | if test "$aix_use_runtimelinking" = yes; then |
| 8112 | shared_flag="$shared_flag "'${wl}-G' |
| 8113 | fi |
| 8114 | else |
| 8115 | # not using gcc |
| 8116 | if test "$host_cpu" = ia64; then |
| 8117 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 8118 | # chokes on -Wl,-G. The following line is correct: |
| 8119 | shared_flag='-G' |
| 8120 | else |
| 8121 | if test "$aix_use_runtimelinking" = yes; then |
| 8122 | shared_flag='${wl}-G' |
| 8123 | else |
| 8124 | shared_flag='${wl}-bM:SRE' |
| 8125 | fi |
| 8126 | fi |
| 8127 | fi |
| 8128 | |
| 8129 | # It seems that -bexpall does not export symbols beginning with |
| 8130 | # underscore (_), so it is better to generate a list of symbols to export. |
| 8131 | always_export_symbols=yes |
| 8132 | if test "$aix_use_runtimelinking" = yes; then |
| 8133 | # Warning - without using the other runtime loading flags (-brtl), |
| 8134 | # -berok will link without error, but may produce a broken library. |
| 8135 | allow_undefined_flag='-berok' |
| 8136 | # Determine the default libpath from the value encoded in an empty executable. |
| 8137 | cat >conftest.$ac_ext <<_ACEOF |
| 8138 | /* confdefs.h. */ |
| 8139 | _ACEOF |
| 8140 | cat confdefs.h >>conftest.$ac_ext |
| 8141 | cat >>conftest.$ac_ext <<_ACEOF |
| 8142 | /* end confdefs.h. */ |
| 8143 | |
| 8144 | int |
| 8145 | main () |
| 8146 | { |
| 8147 | |
| 8148 | ; |
| 8149 | return 0; |
| 8150 | } |
| 8151 | _ACEOF |
| 8152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8154 | (eval $ac_link) 2>conftest.er1 |
| 8155 | ac_status=$? |
| 8156 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8157 | rm -f conftest.er1 |
| 8158 | cat conftest.err >&5 |
| 8159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8160 | (exit $ac_status); } && |
| 8161 | { ac_try='test -z "$ac_c_werror_flag" |
| 8162 | || test ! -s conftest.err' |
| 8163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8164 | (eval $ac_try) 2>&5 |
| 8165 | ac_status=$? |
| 8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8167 | (exit $ac_status); }; } && |
| 8168 | { ac_try='test -s conftest$ac_exeext' |
| 8169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8170 | (eval $ac_try) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); }; }; then |
| 8174 | |
| 8175 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8176 | }'` |
| 8177 | # Check for a 64-bit object if we didn't find anything. |
| 8178 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8179 | }'`; fi |
| 8180 | else |
| 8181 | echo "$as_me: failed program was:" >&5 |
| 8182 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8183 | |
| 8184 | fi |
| 8185 | rm -f conftest.err conftest.$ac_objext \ |
| 8186 | conftest$ac_exeext conftest.$ac_ext |
| 8187 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8188 | |
| 8189 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8190 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 8191 | else |
| 8192 | if test "$host_cpu" = ia64; then |
| 8193 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 8194 | allow_undefined_flag="-z nodefs" |
| 8195 | 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" |
| 8196 | else |
| 8197 | # Determine the default libpath from the value encoded in an empty executable. |
| 8198 | cat >conftest.$ac_ext <<_ACEOF |
| 8199 | /* confdefs.h. */ |
| 8200 | _ACEOF |
| 8201 | cat confdefs.h >>conftest.$ac_ext |
| 8202 | cat >>conftest.$ac_ext <<_ACEOF |
| 8203 | /* end confdefs.h. */ |
| 8204 | |
| 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8215 | (eval $ac_link) 2>conftest.er1 |
| 8216 | ac_status=$? |
| 8217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8218 | rm -f conftest.er1 |
| 8219 | cat conftest.err >&5 |
| 8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8221 | (exit $ac_status); } && |
| 8222 | { ac_try='test -z "$ac_c_werror_flag" |
| 8223 | || test ! -s conftest.err' |
| 8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8225 | (eval $ac_try) 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); }; } && |
| 8229 | { ac_try='test -s conftest$ac_exeext' |
| 8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8231 | (eval $ac_try) 2>&5 |
| 8232 | ac_status=$? |
| 8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8234 | (exit $ac_status); }; }; then |
| 8235 | |
| 8236 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8237 | }'` |
| 8238 | # Check for a 64-bit object if we didn't find anything. |
| 8239 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
| 8240 | }'`; fi |
| 8241 | else |
| 8242 | echo "$as_me: failed program was:" >&5 |
| 8243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8244 | |
| 8245 | fi |
| 8246 | rm -f conftest.err conftest.$ac_objext \ |
| 8247 | conftest$ac_exeext conftest.$ac_ext |
| 8248 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 8249 | |
| 8250 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 8251 | # Warning - without using the other run time loading flags, |
| 8252 | # -berok will link without error, but may produce a broken library. |
| 8253 | no_undefined_flag=' ${wl}-bernotok' |
| 8254 | allow_undefined_flag=' ${wl}-berok' |
| 8255 | # Exported symbols can be pulled into shared objects from archives |
| 8256 | whole_archive_flag_spec='$convenience' |
| 8257 | archive_cmds_need_lc=yes |
| 8258 | # This is similar to how AIX traditionally builds its shared libraries. |
| 8259 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 8260 | fi |
| 8261 | fi |
| 8262 | ;; |
| 8263 | |
| 8264 | amigaos*) |
| 8265 | 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)' |
| 8266 | hardcode_libdir_flag_spec='-L$libdir' |
| 8267 | hardcode_minus_L=yes |
| 8268 | # see comment about different semantics on the GNU ld section |
| 8269 | ld_shlibs=no |
| 8270 | ;; |
| 8271 | |
| 8272 | bsdi[45]*) |
| 8273 | export_dynamic_flag_spec=-rdynamic |
| 8274 | ;; |
| 8275 | |
| 8276 | cygwin* | mingw* | pw32*) |
| 8277 | # When not using gcc, we currently assume that we are using |
| 8278 | # Microsoft Visual C++. |
| 8279 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 8280 | # no search path for DLLs. |
| 8281 | hardcode_libdir_flag_spec=' ' |
| 8282 | allow_undefined_flag=unsupported |
| 8283 | # Tell ltmain to make .lib files, not .a files. |
| 8284 | libext=lib |
| 8285 | # Tell ltmain to make .dll files, not .so files. |
| 8286 | shrext_cmds=".dll" |
| 8287 | # FIXME: Setting linknames here is a bad hack. |
| 8288 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 8289 | # The linker will automatically build a .lib file if we build a DLL. |
| 8290 | old_archive_From_new_cmds='true' |
| 8291 | # FIXME: Should let the user specify the lib program. |
| 8292 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
| 8293 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 8294 | enable_shared_with_static_runtimes=yes |
| 8295 | ;; |
| 8296 | |
| 8297 | darwin* | rhapsody*) |
| 8298 | case $host_os in |
| 8299 | rhapsody* | darwin1.[012]) |
| 8300 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
| 8301 | ;; |
| 8302 | *) # Darwin 1.3 on |
| 8303 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
| 8304 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8305 | else |
| 8306 | case ${MACOSX_DEPLOYMENT_TARGET} in |
| 8307 | 10.[012]) |
| 8308 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
| 8309 | ;; |
| 8310 | 10.*) |
| 8311 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
| 8312 | ;; |
| 8313 | esac |
| 8314 | fi |
| 8315 | ;; |
| 8316 | esac |
| 8317 | archive_cmds_need_lc=no |
| 8318 | hardcode_direct=no |
| 8319 | hardcode_automatic=yes |
| 8320 | hardcode_shlibpath_var=unsupported |
| 8321 | whole_archive_flag_spec='' |
| 8322 | link_all_deplibs=yes |
| 8323 | if test "$GCC" = yes ; then |
| 8324 | output_verbose_link_cmd='echo' |
| 8325 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
| 8326 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8327 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8328 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8329 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8330 | else |
| 8331 | case $cc_basename in |
| 8332 | xlc*) |
| 8333 | output_verbose_link_cmd='echo' |
| 8334 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
| 8335 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
| 8336 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
| 8337 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8338 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 8339 | ;; |
| 8340 | *) |
| 8341 | ld_shlibs=no |
| 8342 | ;; |
| 8343 | esac |
| 8344 | fi |
| 8345 | ;; |
| 8346 | |
| 8347 | dgux*) |
| 8348 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8349 | hardcode_libdir_flag_spec='-L$libdir' |
| 8350 | hardcode_shlibpath_var=no |
| 8351 | ;; |
| 8352 | |
| 8353 | freebsd1*) |
| 8354 | ld_shlibs=no |
| 8355 | ;; |
| 8356 | |
| 8357 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 8358 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 8359 | # does not break anything, and helps significantly (at the cost of a little |
| 8360 | # extra space). |
| 8361 | freebsd2.2*) |
| 8362 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 8363 | hardcode_libdir_flag_spec='-R$libdir' |
| 8364 | hardcode_direct=yes |
| 8365 | hardcode_shlibpath_var=no |
| 8366 | ;; |
| 8367 | |
| 8368 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 8369 | freebsd2*) |
| 8370 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8371 | hardcode_direct=yes |
| 8372 | hardcode_minus_L=yes |
| 8373 | hardcode_shlibpath_var=no |
| 8374 | ;; |
| 8375 | |
| 8376 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 8377 | freebsd* | kfreebsd*-gnu | dragonfly*) |
| 8378 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 8379 | hardcode_libdir_flag_spec='-R$libdir' |
| 8380 | hardcode_direct=yes |
| 8381 | hardcode_shlibpath_var=no |
| 8382 | ;; |
| 8383 | |
| 8384 | hpux9*) |
| 8385 | if test "$GCC" = yes; then |
| 8386 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 8387 | else |
| 8388 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 8389 | fi |
| 8390 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8391 | hardcode_libdir_separator=: |
| 8392 | hardcode_direct=yes |
| 8393 | |
| 8394 | # hardcode_minus_L: Not really in the search PATH, |
| 8395 | # but as the default location of the library. |
| 8396 | hardcode_minus_L=yes |
| 8397 | export_dynamic_flag_spec='${wl}-E' |
| 8398 | ;; |
| 8399 | |
| 8400 | hpux10*) |
| 8401 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8402 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8403 | else |
| 8404 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 8405 | fi |
| 8406 | if test "$with_gnu_ld" = no; then |
| 8407 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8408 | hardcode_libdir_separator=: |
| 8409 | |
| 8410 | hardcode_direct=yes |
| 8411 | export_dynamic_flag_spec='${wl}-E' |
| 8412 | |
| 8413 | # hardcode_minus_L: Not really in the search PATH, |
| 8414 | # but as the default location of the library. |
| 8415 | hardcode_minus_L=yes |
| 8416 | fi |
| 8417 | ;; |
| 8418 | |
| 8419 | hpux11*) |
| 8420 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 8421 | case $host_cpu in |
| 8422 | hppa*64*) |
| 8423 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8424 | ;; |
| 8425 | ia64*) |
| 8426 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8427 | ;; |
| 8428 | *) |
| 8429 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8430 | ;; |
| 8431 | esac |
| 8432 | else |
| 8433 | case $host_cpu in |
| 8434 | hppa*64*) |
| 8435 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8436 | ;; |
| 8437 | ia64*) |
| 8438 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 8439 | ;; |
| 8440 | *) |
| 8441 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 8442 | ;; |
| 8443 | esac |
| 8444 | fi |
| 8445 | if test "$with_gnu_ld" = no; then |
| 8446 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 8447 | hardcode_libdir_separator=: |
| 8448 | |
| 8449 | case $host_cpu in |
| 8450 | hppa*64*|ia64*) |
| 8451 | hardcode_libdir_flag_spec_ld='+b $libdir' |
| 8452 | hardcode_direct=no |
| 8453 | hardcode_shlibpath_var=no |
| 8454 | ;; |
| 8455 | *) |
| 8456 | hardcode_direct=yes |
| 8457 | export_dynamic_flag_spec='${wl}-E' |
| 8458 | |
| 8459 | # hardcode_minus_L: Not really in the search PATH, |
| 8460 | # but as the default location of the library. |
| 8461 | hardcode_minus_L=yes |
| 8462 | ;; |
| 8463 | esac |
| 8464 | fi |
| 8465 | ;; |
| 8466 | |
| 8467 | irix5* | irix6* | nonstopux*) |
| 8468 | if test "$GCC" = yes; then |
| 8469 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8470 | else |
| 8471 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8472 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 8473 | fi |
| 8474 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8475 | hardcode_libdir_separator=: |
| 8476 | link_all_deplibs=yes |
| 8477 | ;; |
| 8478 | |
| 8479 | netbsd*) |
| 8480 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 8481 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 8482 | else |
| 8483 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 8484 | fi |
| 8485 | hardcode_libdir_flag_spec='-R$libdir' |
| 8486 | hardcode_direct=yes |
| 8487 | hardcode_shlibpath_var=no |
| 8488 | ;; |
| 8489 | |
| 8490 | newsos6) |
| 8491 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8492 | hardcode_direct=yes |
| 8493 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8494 | hardcode_libdir_separator=: |
| 8495 | hardcode_shlibpath_var=no |
| 8496 | ;; |
| 8497 | |
| 8498 | openbsd*) |
| 8499 | hardcode_direct=yes |
| 8500 | hardcode_shlibpath_var=no |
| 8501 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 8502 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8503 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 8504 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8505 | export_dynamic_flag_spec='${wl}-E' |
| 8506 | else |
| 8507 | case $host_os in |
| 8508 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 8509 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 8510 | hardcode_libdir_flag_spec='-R$libdir' |
| 8511 | ;; |
| 8512 | *) |
| 8513 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 8514 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8515 | ;; |
| 8516 | esac |
| 8517 | fi |
| 8518 | ;; |
| 8519 | |
| 8520 | os2*) |
| 8521 | hardcode_libdir_flag_spec='-L$libdir' |
| 8522 | hardcode_minus_L=yes |
| 8523 | allow_undefined_flag=unsupported |
| 8524 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 8525 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 8526 | ;; |
| 8527 | |
| 8528 | osf3*) |
| 8529 | if test "$GCC" = yes; then |
| 8530 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8531 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8532 | else |
| 8533 | allow_undefined_flag=' -expect_unresolved \*' |
| 8534 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8535 | fi |
| 8536 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8537 | hardcode_libdir_separator=: |
| 8538 | ;; |
| 8539 | |
| 8540 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 8541 | if test "$GCC" = yes; then |
| 8542 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 8543 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 8544 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 8545 | else |
| 8546 | allow_undefined_flag=' -expect_unresolved \*' |
| 8547 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
| 8548 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
| 8549 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
| 8550 | |
| 8551 | # Both c and cxx compiler support -rpath directly |
| 8552 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 8553 | fi |
| 8554 | hardcode_libdir_separator=: |
| 8555 | ;; |
| 8556 | |
| 8557 | solaris*) |
| 8558 | no_undefined_flag=' -z text' |
| 8559 | if test "$GCC" = yes; then |
| 8560 | wlarc='${wl}' |
| 8561 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8562 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8563 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
| 8564 | else |
| 8565 | wlarc='' |
| 8566 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8567 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
| 8568 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
| 8569 | fi |
| 8570 | hardcode_libdir_flag_spec='-R$libdir' |
| 8571 | hardcode_shlibpath_var=no |
| 8572 | case $host_os in |
| 8573 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 8574 | *) |
| 8575 | # The compiler driver will combine linker options so we |
| 8576 | # cannot just pass the convience library names through |
| 8577 | # without $wl, iff we do not link with $LD. |
| 8578 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
| 8579 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 8580 | case $wlarc in |
| 8581 | '') |
| 8582 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
| 8583 | *) |
| 8584 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
| 8585 | esac ;; |
| 8586 | esac |
| 8587 | link_all_deplibs=yes |
| 8588 | ;; |
| 8589 | |
| 8590 | sunos4*) |
| 8591 | if test "x$host_vendor" = xsequent; then |
| 8592 | # Use $CC to link under sequent, because it throws in some extra .o |
| 8593 | # files that make .init and .fini sections work. |
| 8594 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8595 | else |
| 8596 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 8597 | fi |
| 8598 | hardcode_libdir_flag_spec='-L$libdir' |
| 8599 | hardcode_direct=yes |
| 8600 | hardcode_minus_L=yes |
| 8601 | hardcode_shlibpath_var=no |
| 8602 | ;; |
| 8603 | |
| 8604 | sysv4) |
| 8605 | case $host_vendor in |
| 8606 | sni) |
| 8607 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8608 | hardcode_direct=yes # is this really true??? |
| 8609 | ;; |
| 8610 | siemens) |
| 8611 | ## LD is ld it makes a PLAMLIB |
| 8612 | ## CC just makes a GrossModule. |
| 8613 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 8614 | reload_cmds='$CC -r -o $output$reload_objs' |
| 8615 | hardcode_direct=no |
| 8616 | ;; |
| 8617 | motorola) |
| 8618 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8619 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 8620 | ;; |
| 8621 | esac |
| 8622 | runpath_var='LD_RUN_PATH' |
| 8623 | hardcode_shlibpath_var=no |
| 8624 | ;; |
| 8625 | |
| 8626 | sysv4.3*) |
| 8627 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8628 | hardcode_shlibpath_var=no |
| 8629 | export_dynamic_flag_spec='-Bexport' |
| 8630 | ;; |
| 8631 | |
| 8632 | sysv4*MP*) |
| 8633 | if test -d /usr/nec; then |
| 8634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8635 | hardcode_shlibpath_var=no |
| 8636 | runpath_var=LD_RUN_PATH |
| 8637 | hardcode_runpath_var=yes |
| 8638 | ld_shlibs=yes |
| 8639 | fi |
| 8640 | ;; |
| 8641 | |
| 8642 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
| 8643 | no_undefined_flag='${wl}-z,text' |
| 8644 | archive_cmds_need_lc=no |
| 8645 | hardcode_shlibpath_var=no |
| 8646 | runpath_var='LD_RUN_PATH' |
| 8647 | |
| 8648 | if test "$GCC" = yes; then |
| 8649 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8650 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8651 | else |
| 8652 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8653 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8654 | fi |
| 8655 | ;; |
| 8656 | |
| 8657 | sysv5* | sco3.2v5* | sco5v6*) |
| 8658 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 8659 | # link with -lc, and that would cause any symbols used from libc to |
| 8660 | # always be unresolved, which means just about no library would |
| 8661 | # ever link correctly. If we're not using GNU ld we use -z text |
| 8662 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 8663 | # as -z defs. |
| 8664 | no_undefined_flag='${wl}-z,text' |
| 8665 | allow_undefined_flag='${wl}-z,nodefs' |
| 8666 | archive_cmds_need_lc=no |
| 8667 | hardcode_shlibpath_var=no |
| 8668 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
| 8669 | hardcode_libdir_separator=':' |
| 8670 | link_all_deplibs=yes |
| 8671 | export_dynamic_flag_spec='${wl}-Bexport' |
| 8672 | runpath_var='LD_RUN_PATH' |
| 8673 | |
| 8674 | if test "$GCC" = yes; then |
| 8675 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8676 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8677 | else |
| 8678 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8679 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 8680 | fi |
| 8681 | ;; |
| 8682 | |
| 8683 | uts4*) |
| 8684 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 8685 | hardcode_libdir_flag_spec='-L$libdir' |
| 8686 | hardcode_shlibpath_var=no |
| 8687 | ;; |
| 8688 | |
| 8689 | *) |
| 8690 | ld_shlibs=no |
| 8691 | ;; |
| 8692 | esac |
| 8693 | fi |
| 8694 | |
| 8695 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
| 8696 | echo "${ECHO_T}$ld_shlibs" >&6 |
| 8697 | test "$ld_shlibs" = no && can_build_shared=no |
| 8698 | |
| 8699 | # |
| 8700 | # Do we need to explicitly link libc? |
| 8701 | # |
| 8702 | case "x$archive_cmds_need_lc" in |
| 8703 | x|xyes) |
| 8704 | # Assume -lc should be added |
| 8705 | archive_cmds_need_lc=yes |
| 8706 | |
| 8707 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 8708 | case $archive_cmds in |
| 8709 | *'~'*) |
| 8710 | # FIXME: we may have to deal with multi-command sequences. |
| 8711 | ;; |
| 8712 | '$CC '*) |
| 8713 | # Test whether the compiler implicitly links with -lc since on some |
| 8714 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 8715 | # to ld, don't add -lc before -lgcc. |
| 8716 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
| 8717 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
| 8718 | $rm conftest* |
| 8719 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8720 | |
| 8721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8722 | (eval $ac_compile) 2>&5 |
| 8723 | ac_status=$? |
| 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8725 | (exit $ac_status); } 2>conftest.err; then |
| 8726 | soname=conftest |
| 8727 | lib=conftest |
| 8728 | libobjs=conftest.$ac_objext |
| 8729 | deplibs= |
| 8730 | wl=$lt_prog_compiler_wl |
| 8731 | pic_flag=$lt_prog_compiler_pic |
| 8732 | compiler_flags=-v |
| 8733 | linker_flags=-v |
| 8734 | verstring= |
| 8735 | output_objdir=. |
| 8736 | libname=conftest |
| 8737 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 8738 | allow_undefined_flag= |
| 8739 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
| 8740 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 8741 | ac_status=$? |
| 8742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8743 | (exit $ac_status); } |
| 8744 | then |
| 8745 | archive_cmds_need_lc=no |
| 8746 | else |
| 8747 | archive_cmds_need_lc=yes |
| 8748 | fi |
| 8749 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 8750 | else |
| 8751 | cat conftest.err 1>&5 |
| 8752 | fi |
| 8753 | $rm conftest* |
| 8754 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
| 8755 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
| 8756 | ;; |
| 8757 | esac |
| 8758 | fi |
| 8759 | ;; |
| 8760 | esac |
| 8761 | |
| 8762 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
| 8763 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
| 8764 | library_names_spec= |
| 8765 | libname_spec='lib$name' |
| 8766 | soname_spec= |
| 8767 | shrext_cmds=".so" |
| 8768 | postinstall_cmds= |
| 8769 | postuninstall_cmds= |
| 8770 | finish_cmds= |
| 8771 | finish_eval= |
| 8772 | shlibpath_var= |
| 8773 | shlibpath_overrides_runpath=unknown |
| 8774 | version_type=none |
| 8775 | dynamic_linker="$host_os ld.so" |
| 8776 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 8777 | if test "$GCC" = yes; then |
| 8778 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8779 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
| 8780 | # if the path contains ";" then we assume it to be the separator |
| 8781 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 8782 | # assumed that no part of a normal pathname contains ";" but that should |
| 8783 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 8784 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8785 | else |
| 8786 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8787 | fi |
| 8788 | else |
| 8789 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 8790 | fi |
| 8791 | need_lib_prefix=unknown |
| 8792 | hardcode_into_libs=no |
| 8793 | |
| 8794 | # when you set need_version to no, make sure it does not cause -set_version |
| 8795 | # flags to be left without arguments |
| 8796 | need_version=unknown |
| 8797 | |
| 8798 | case $host_os in |
| 8799 | aix3*) |
| 8800 | version_type=linux |
| 8801 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 8802 | shlibpath_var=LIBPATH |
| 8803 | |
| 8804 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 8805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8806 | ;; |
| 8807 | |
| 8808 | aix4* | aix5*) |
| 8809 | version_type=linux |
| 8810 | need_lib_prefix=no |
| 8811 | need_version=no |
| 8812 | hardcode_into_libs=yes |
| 8813 | if test "$host_cpu" = ia64; then |
| 8814 | # AIX 5 supports IA64 |
| 8815 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 8816 | shlibpath_var=LD_LIBRARY_PATH |
| 8817 | else |
| 8818 | # With GCC up to 2.95.x, collect2 would create an import file |
| 8819 | # for dependence libraries. The import file would start with |
| 8820 | # the line `#! .'. This would cause the generated library to |
| 8821 | # depend on `.', always an invalid library. This was fixed in |
| 8822 | # development snapshots of GCC prior to 3.0. |
| 8823 | case $host_os in |
| 8824 | aix4 | aix4.[01] | aix4.[01].*) |
| 8825 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 8826 | echo ' yes ' |
| 8827 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
| 8828 | : |
| 8829 | else |
| 8830 | can_build_shared=no |
| 8831 | fi |
| 8832 | ;; |
| 8833 | esac |
| 8834 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 8835 | # soname into executable. Probably we can add versioning support to |
| 8836 | # collect2, so additional links can be useful in future. |
| 8837 | if test "$aix_use_runtimelinking" = yes; then |
| 8838 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 8839 | # instead of lib<name>.a to let people know that these are not |
| 8840 | # typical AIX shared libraries. |
| 8841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8842 | else |
| 8843 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 8844 | # and later when we are not doing run time linking. |
| 8845 | library_names_spec='${libname}${release}.a $libname.a' |
| 8846 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8847 | fi |
| 8848 | shlibpath_var=LIBPATH |
| 8849 | fi |
| 8850 | ;; |
| 8851 | |
| 8852 | amigaos*) |
| 8853 | library_names_spec='$libname.ixlibrary $libname.a' |
| 8854 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 8855 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 8856 | ;; |
| 8857 | |
| 8858 | beos*) |
| 8859 | library_names_spec='${libname}${shared_ext}' |
| 8860 | dynamic_linker="$host_os ld.so" |
| 8861 | shlibpath_var=LIBRARY_PATH |
| 8862 | ;; |
| 8863 | |
| 8864 | bsdi[45]*) |
| 8865 | version_type=linux |
| 8866 | need_version=no |
| 8867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 8868 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8869 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 8870 | shlibpath_var=LD_LIBRARY_PATH |
| 8871 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 8872 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 8873 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 8874 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 8875 | # libtool to hard-code these into programs |
| 8876 | ;; |
| 8877 | |
| 8878 | cygwin* | mingw* | pw32*) |
| 8879 | version_type=windows |
| 8880 | shrext_cmds=".dll" |
| 8881 | need_version=no |
| 8882 | need_lib_prefix=no |
| 8883 | |
| 8884 | case $GCC,$host_os in |
| 8885 | yes,cygwin* | yes,mingw* | yes,pw32*) |
| 8886 | library_names_spec='$libname.dll.a' |
| 8887 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 8888 | postinstall_cmds='base_file=`basename \${file}`~ |
| 8889 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
| 8890 | dldir=$destdir/`dirname \$dlpath`~ |
| 8891 | test -d \$dldir || mkdir -p \$dldir~ |
| 8892 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 8893 | chmod a+x \$dldir/$dlname' |
| 8894 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 8895 | dlpath=$dir/\$dldll~ |
| 8896 | $rm \$dlpath' |
| 8897 | shlibpath_overrides_runpath=yes |
| 8898 | |
| 8899 | case $host_os in |
| 8900 | cygwin*) |
| 8901 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 8902 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8903 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 8904 | ;; |
| 8905 | mingw*) |
| 8906 | # MinGW DLLs use traditional 'lib' prefix |
| 8907 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8908 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 8909 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
| 8910 | # It is most probably a Windows format PATH printed by |
| 8911 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 8912 | # path with ; separators, and with drive letters. We can handle the |
| 8913 | # drive letters (cygwin fileutils understands them), so leave them, |
| 8914 | # especially as we might pass files found there to a mingw objdump, |
| 8915 | # which wouldn't understand a cygwinified path. Ahh. |
| 8916 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 8917 | else |
| 8918 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 8919 | fi |
| 8920 | ;; |
| 8921 | pw32*) |
| 8922 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 8923 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 8924 | ;; |
| 8925 | esac |
| 8926 | ;; |
| 8927 | |
| 8928 | *) |
| 8929 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 8930 | ;; |
| 8931 | esac |
| 8932 | dynamic_linker='Win32 ld.exe' |
| 8933 | # FIXME: first we should search . and the directory the executable is in |
| 8934 | shlibpath_var=PATH |
| 8935 | ;; |
| 8936 | |
| 8937 | darwin* | rhapsody*) |
| 8938 | dynamic_linker="$host_os dyld" |
| 8939 | version_type=darwin |
| 8940 | need_lib_prefix=no |
| 8941 | need_version=no |
| 8942 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 8943 | soname_spec='${libname}${release}${major}$shared_ext' |
| 8944 | shlibpath_overrides_runpath=yes |
| 8945 | shlibpath_var=DYLD_LIBRARY_PATH |
| 8946 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 8947 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
| 8948 | if test "$GCC" = yes; then |
| 8949 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
| 8950 | else |
| 8951 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
| 8952 | fi |
| 8953 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 8954 | ;; |
| 8955 | |
| 8956 | dgux*) |
| 8957 | version_type=linux |
| 8958 | need_lib_prefix=no |
| 8959 | need_version=no |
| 8960 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 8961 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8962 | shlibpath_var=LD_LIBRARY_PATH |
| 8963 | ;; |
| 8964 | |
| 8965 | freebsd1*) |
| 8966 | dynamic_linker=no |
| 8967 | ;; |
| 8968 | |
| 8969 | kfreebsd*-gnu) |
| 8970 | version_type=linux |
| 8971 | need_lib_prefix=no |
| 8972 | need_version=no |
| 8973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 8974 | soname_spec='${libname}${release}${shared_ext}$major' |
| 8975 | shlibpath_var=LD_LIBRARY_PATH |
| 8976 | shlibpath_overrides_runpath=no |
| 8977 | hardcode_into_libs=yes |
| 8978 | dynamic_linker='GNU ld.so' |
| 8979 | ;; |
| 8980 | |
| 8981 | freebsd* | dragonfly*) |
| 8982 | # DragonFly does not have aout. When/if they implement a new |
| 8983 | # versioning mechanism, adjust this. |
| 8984 | if test -x /usr/bin/objformat; then |
| 8985 | objformat=`/usr/bin/objformat` |
| 8986 | else |
| 8987 | case $host_os in |
| 8988 | freebsd[123]*) objformat=aout ;; |
| 8989 | *) objformat=elf ;; |
| 8990 | esac |
| 8991 | fi |
| 8992 | version_type=freebsd-$objformat |
| 8993 | case $version_type in |
| 8994 | freebsd-elf*) |
| 8995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 8996 | need_version=no |
| 8997 | need_lib_prefix=no |
| 8998 | ;; |
| 8999 | freebsd-*) |
| 9000 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 9001 | need_version=yes |
| 9002 | ;; |
| 9003 | esac |
| 9004 | shlibpath_var=LD_LIBRARY_PATH |
| 9005 | case $host_os in |
| 9006 | freebsd2*) |
| 9007 | shlibpath_overrides_runpath=yes |
| 9008 | ;; |
| 9009 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 9010 | shlibpath_overrides_runpath=yes |
| 9011 | hardcode_into_libs=yes |
| 9012 | ;; |
| 9013 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 9014 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 9015 | shlibpath_overrides_runpath=no |
| 9016 | hardcode_into_libs=yes |
| 9017 | ;; |
| 9018 | freebsd*) # from 4.6 on |
| 9019 | shlibpath_overrides_runpath=yes |
| 9020 | hardcode_into_libs=yes |
| 9021 | ;; |
| 9022 | esac |
| 9023 | ;; |
| 9024 | |
| 9025 | gnu*) |
| 9026 | version_type=linux |
| 9027 | need_lib_prefix=no |
| 9028 | need_version=no |
| 9029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 9030 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9031 | shlibpath_var=LD_LIBRARY_PATH |
| 9032 | hardcode_into_libs=yes |
| 9033 | ;; |
| 9034 | |
| 9035 | hpux9* | hpux10* | hpux11*) |
| 9036 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 9037 | # link against other versions. |
| 9038 | version_type=sunos |
| 9039 | need_lib_prefix=no |
| 9040 | need_version=no |
| 9041 | case $host_cpu in |
| 9042 | ia64*) |
| 9043 | shrext_cmds='.so' |
| 9044 | hardcode_into_libs=yes |
| 9045 | dynamic_linker="$host_os dld.so" |
| 9046 | shlibpath_var=LD_LIBRARY_PATH |
| 9047 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9050 | if test "X$HPUX_IA64_MODE" = X32; then |
| 9051 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 9052 | else |
| 9053 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 9054 | fi |
| 9055 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9056 | ;; |
| 9057 | hppa*64*) |
| 9058 | shrext_cmds='.sl' |
| 9059 | hardcode_into_libs=yes |
| 9060 | dynamic_linker="$host_os dld.sl" |
| 9061 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 9062 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 9063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9064 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9065 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 9066 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 9067 | ;; |
| 9068 | *) |
| 9069 | shrext_cmds='.sl' |
| 9070 | dynamic_linker="$host_os dld.sl" |
| 9071 | shlibpath_var=SHLIB_PATH |
| 9072 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9074 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9075 | ;; |
| 9076 | esac |
| 9077 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 9078 | postinstall_cmds='chmod 555 $lib' |
| 9079 | ;; |
| 9080 | |
| 9081 | interix3*) |
| 9082 | version_type=linux |
| 9083 | need_lib_prefix=no |
| 9084 | need_version=no |
| 9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9086 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9087 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 9088 | shlibpath_var=LD_LIBRARY_PATH |
| 9089 | shlibpath_overrides_runpath=no |
| 9090 | hardcode_into_libs=yes |
| 9091 | ;; |
| 9092 | |
| 9093 | irix5* | irix6* | nonstopux*) |
| 9094 | case $host_os in |
| 9095 | nonstopux*) version_type=nonstopux ;; |
| 9096 | *) |
| 9097 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 9098 | version_type=linux |
| 9099 | else |
| 9100 | version_type=irix |
| 9101 | fi ;; |
| 9102 | esac |
| 9103 | need_lib_prefix=no |
| 9104 | need_version=no |
| 9105 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9107 | case $host_os in |
| 9108 | irix5* | nonstopux*) |
| 9109 | libsuff= shlibsuff= |
| 9110 | ;; |
| 9111 | *) |
| 9112 | case $LD in # libtool.m4 will add one of these switches to LD |
| 9113 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 9114 | libsuff= shlibsuff= libmagic=32-bit;; |
| 9115 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 9116 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 9117 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 9118 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 9119 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 9120 | esac |
| 9121 | ;; |
| 9122 | esac |
| 9123 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 9124 | shlibpath_overrides_runpath=no |
| 9125 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 9126 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 9127 | hardcode_into_libs=yes |
| 9128 | ;; |
| 9129 | |
| 9130 | # No shared lib support for Linux oldld, aout, or coff. |
| 9131 | linux*oldld* | linux*aout* | linux*coff*) |
| 9132 | dynamic_linker=no |
| 9133 | ;; |
| 9134 | |
| 9135 | # This must be Linux ELF. |
| 9136 | linux*) |
| 9137 | version_type=linux |
| 9138 | need_lib_prefix=no |
| 9139 | need_version=no |
| 9140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9141 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9142 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 9143 | shlibpath_var=LD_LIBRARY_PATH |
| 9144 | shlibpath_overrides_runpath=no |
| 9145 | # This implies no fast_install, which is unacceptable. |
| 9146 | # Some rework will be needed to allow for fast_install |
| 9147 | # before this can be enabled. |
| 9148 | hardcode_into_libs=yes |
| 9149 | |
| 9150 | # Append ld.so.conf contents to the search path |
| 9151 | if test -f /etc/ld.so.conf; then |
| 9152 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
| 9153 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 9154 | fi |
| 9155 | |
| 9156 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 9157 | # powerpc, because MkLinux only supported shared libraries with the |
| 9158 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 9159 | # most powerpc-linux boxes support dynamic linking these days and |
| 9160 | # people can always --disable-shared, the test was removed, and we |
| 9161 | # assume the GNU/Linux dynamic linker is in use. |
| 9162 | dynamic_linker='GNU/Linux ld.so' |
| 9163 | ;; |
| 9164 | |
| 9165 | knetbsd*-gnu) |
| 9166 | version_type=linux |
| 9167 | need_lib_prefix=no |
| 9168 | need_version=no |
| 9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9170 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9171 | shlibpath_var=LD_LIBRARY_PATH |
| 9172 | shlibpath_overrides_runpath=no |
| 9173 | hardcode_into_libs=yes |
| 9174 | dynamic_linker='GNU ld.so' |
| 9175 | ;; |
| 9176 | |
| 9177 | netbsd*) |
| 9178 | version_type=sunos |
| 9179 | need_lib_prefix=no |
| 9180 | need_version=no |
| 9181 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
| 9182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9183 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9184 | dynamic_linker='NetBSD (a.out) ld.so' |
| 9185 | else |
| 9186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 9187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9188 | dynamic_linker='NetBSD ld.elf_so' |
| 9189 | fi |
| 9190 | shlibpath_var=LD_LIBRARY_PATH |
| 9191 | shlibpath_overrides_runpath=yes |
| 9192 | hardcode_into_libs=yes |
| 9193 | ;; |
| 9194 | |
| 9195 | newsos6) |
| 9196 | version_type=linux |
| 9197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9198 | shlibpath_var=LD_LIBRARY_PATH |
| 9199 | shlibpath_overrides_runpath=yes |
| 9200 | ;; |
| 9201 | |
| 9202 | nto-qnx*) |
| 9203 | version_type=linux |
| 9204 | need_lib_prefix=no |
| 9205 | need_version=no |
| 9206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9208 | shlibpath_var=LD_LIBRARY_PATH |
| 9209 | shlibpath_overrides_runpath=yes |
| 9210 | ;; |
| 9211 | |
| 9212 | openbsd*) |
| 9213 | version_type=sunos |
| 9214 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 9215 | need_lib_prefix=no |
| 9216 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 9217 | case $host_os in |
| 9218 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 9219 | *) need_version=no ;; |
| 9220 | esac |
| 9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9222 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 9223 | shlibpath_var=LD_LIBRARY_PATH |
| 9224 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 9225 | case $host_os in |
| 9226 | openbsd2.[89] | openbsd2.[89].*) |
| 9227 | shlibpath_overrides_runpath=no |
| 9228 | ;; |
| 9229 | *) |
| 9230 | shlibpath_overrides_runpath=yes |
| 9231 | ;; |
| 9232 | esac |
| 9233 | else |
| 9234 | shlibpath_overrides_runpath=yes |
| 9235 | fi |
| 9236 | ;; |
| 9237 | |
| 9238 | os2*) |
| 9239 | libname_spec='$name' |
| 9240 | shrext_cmds=".dll" |
| 9241 | need_lib_prefix=no |
| 9242 | library_names_spec='$libname${shared_ext} $libname.a' |
| 9243 | dynamic_linker='OS/2 ld.exe' |
| 9244 | shlibpath_var=LIBPATH |
| 9245 | ;; |
| 9246 | |
| 9247 | osf3* | osf4* | osf5*) |
| 9248 | version_type=osf |
| 9249 | need_lib_prefix=no |
| 9250 | need_version=no |
| 9251 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9253 | shlibpath_var=LD_LIBRARY_PATH |
| 9254 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 9255 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 9256 | ;; |
| 9257 | |
| 9258 | solaris*) |
| 9259 | version_type=linux |
| 9260 | need_lib_prefix=no |
| 9261 | need_version=no |
| 9262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9263 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9264 | shlibpath_var=LD_LIBRARY_PATH |
| 9265 | shlibpath_overrides_runpath=yes |
| 9266 | hardcode_into_libs=yes |
| 9267 | # ldd complains unless libraries are executable |
| 9268 | postinstall_cmds='chmod +x $lib' |
| 9269 | ;; |
| 9270 | |
| 9271 | sunos4*) |
| 9272 | version_type=sunos |
| 9273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 9274 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 9275 | shlibpath_var=LD_LIBRARY_PATH |
| 9276 | shlibpath_overrides_runpath=yes |
| 9277 | if test "$with_gnu_ld" = yes; then |
| 9278 | need_lib_prefix=no |
| 9279 | fi |
| 9280 | need_version=yes |
| 9281 | ;; |
| 9282 | |
| 9283 | sysv4 | sysv4.3*) |
| 9284 | version_type=linux |
| 9285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9286 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9287 | shlibpath_var=LD_LIBRARY_PATH |
| 9288 | case $host_vendor in |
| 9289 | sni) |
| 9290 | shlibpath_overrides_runpath=no |
| 9291 | need_lib_prefix=no |
| 9292 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9293 | runpath_var=LD_RUN_PATH |
| 9294 | ;; |
| 9295 | siemens) |
| 9296 | need_lib_prefix=no |
| 9297 | ;; |
| 9298 | motorola) |
| 9299 | need_lib_prefix=no |
| 9300 | need_version=no |
| 9301 | shlibpath_overrides_runpath=no |
| 9302 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 9303 | ;; |
| 9304 | esac |
| 9305 | ;; |
| 9306 | |
| 9307 | sysv4*MP*) |
| 9308 | if test -d /usr/nec ;then |
| 9309 | version_type=linux |
| 9310 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 9311 | soname_spec='$libname${shared_ext}.$major' |
| 9312 | shlibpath_var=LD_LIBRARY_PATH |
| 9313 | fi |
| 9314 | ;; |
| 9315 | |
| 9316 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 9317 | version_type=freebsd-elf |
| 9318 | need_lib_prefix=no |
| 9319 | need_version=no |
| 9320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 9321 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9322 | shlibpath_var=LD_LIBRARY_PATH |
| 9323 | hardcode_into_libs=yes |
| 9324 | if test "$with_gnu_ld" = yes; then |
| 9325 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 9326 | shlibpath_overrides_runpath=no |
| 9327 | else |
| 9328 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 9329 | shlibpath_overrides_runpath=yes |
| 9330 | case $host_os in |
| 9331 | sco3.2v5*) |
| 9332 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 9333 | ;; |
| 9334 | esac |
| 9335 | fi |
| 9336 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 9337 | ;; |
| 9338 | |
| 9339 | uts4*) |
| 9340 | version_type=linux |
| 9341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 9342 | soname_spec='${libname}${release}${shared_ext}$major' |
| 9343 | shlibpath_var=LD_LIBRARY_PATH |
| 9344 | ;; |
| 9345 | |
| 9346 | *) |
| 9347 | dynamic_linker=no |
| 9348 | ;; |
| 9349 | esac |
| 9350 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
| 9351 | echo "${ECHO_T}$dynamic_linker" >&6 |
| 9352 | test "$dynamic_linker" = no && can_build_shared=no |
| 9353 | |
| 9354 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 9355 | if test "$GCC" = yes; then |
| 9356 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 9357 | fi |
| 9358 | |
| 9359 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
| 9360 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
| 9361 | hardcode_action= |
| 9362 | if test -n "$hardcode_libdir_flag_spec" || \ |
| 9363 | test -n "$runpath_var" || \ |
| 9364 | test "X$hardcode_automatic" = "Xyes" ; then |
| 9365 | |
| 9366 | # We can hardcode non-existant directories. |
| 9367 | if test "$hardcode_direct" != no && |
| 9368 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 9369 | # have to relink, otherwise we might link with an installed library |
| 9370 | # when we should be linking with a yet-to-be-installed one |
| 9371 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 9372 | test "$hardcode_minus_L" != no; then |
| 9373 | # Linking always hardcodes the temporary library directory. |
| 9374 | hardcode_action=relink |
| 9375 | else |
| 9376 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 9377 | hardcode_action=immediate |
| 9378 | fi |
| 9379 | else |
| 9380 | # We cannot hardcode anything, or else we can only hardcode existing |
| 9381 | # directories. |
| 9382 | hardcode_action=unsupported |
| 9383 | fi |
| 9384 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
| 9385 | echo "${ECHO_T}$hardcode_action" >&6 |
| 9386 | |
| 9387 | if test "$hardcode_action" = relink; then |
| 9388 | # Fast installation is not supported |
| 9389 | enable_fast_install=no |
| 9390 | elif test "$shlibpath_overrides_runpath" = yes || |
| 9391 | test "$enable_shared" = no; then |
| 9392 | # Fast installation is not necessary |
| 9393 | enable_fast_install=needless |
| 9394 | fi |
| 9395 | |
| 9396 | striplib= |
| 9397 | old_striplib= |
| 9398 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
| 9399 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
| 9400 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
| 9401 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 9402 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 9403 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9404 | echo "${ECHO_T}yes" >&6 |
| 9405 | else |
| 9406 | # FIXME - insert some real tests, host_os isn't really good enough |
| 9407 | case $host_os in |
| 9408 | darwin*) |
| 9409 | if test -n "$STRIP" ; then |
| 9410 | striplib="$STRIP -x" |
| 9411 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9412 | echo "${ECHO_T}yes" >&6 |
| 9413 | else |
| 9414 | echo "$as_me:$LINENO: result: no" >&5 |
| 9415 | echo "${ECHO_T}no" >&6 |
| 9416 | fi |
| 9417 | ;; |
| 9418 | *) |
| 9419 | echo "$as_me:$LINENO: result: no" >&5 |
| 9420 | echo "${ECHO_T}no" >&6 |
| 9421 | ;; |
| 9422 | esac |
| 9423 | fi |
| 9424 | |
| 9425 | if test "x$enable_dlopen" != xyes; then |
| 9426 | enable_dlopen=unknown |
| 9427 | enable_dlopen_self=unknown |
| 9428 | enable_dlopen_self_static=unknown |
| 9429 | else |
| 9430 | lt_cv_dlopen=no |
| 9431 | lt_cv_dlopen_libs= |
| 9432 | |
| 9433 | case $host_os in |
| 9434 | beos*) |
| 9435 | lt_cv_dlopen="load_add_on" |
| 9436 | lt_cv_dlopen_libs= |
| 9437 | lt_cv_dlopen_self=yes |
| 9438 | ;; |
| 9439 | |
| 9440 | mingw* | pw32*) |
| 9441 | lt_cv_dlopen="LoadLibrary" |
| 9442 | lt_cv_dlopen_libs= |
| 9443 | ;; |
| 9444 | |
| 9445 | cygwin*) |
| 9446 | lt_cv_dlopen="dlopen" |
| 9447 | lt_cv_dlopen_libs= |
| 9448 | ;; |
| 9449 | |
| 9450 | darwin*) |
| 9451 | # if libdl is installed we need to link against it |
| 9452 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |