| 3873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3874 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3875 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3876 | $as_echo_n "(cached) " >&6 |
| 3877 | else |
| 3878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3879 | /* end confdefs.h. */ |
| 3880 | |
| 3881 | int |
| 3882 | main () |
| 3883 | { |
| 3884 | #ifndef __GNUC__ |
| 3885 | choke me |
| 3886 | #endif |
| 3887 | |
| 3888 | ; |
| 3889 | return 0; |
| 3890 | } |
| 3891 | _ACEOF |
| 3892 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3893 | ac_compiler_gnu=yes |
| 3894 | else |
| 3895 | ac_compiler_gnu=no |
| 3896 | fi |
| 3897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3898 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3899 | |
| 3900 | fi |
| 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3902 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3903 | if test $ac_compiler_gnu = yes; then |
| 3904 | GCC=yes |
| 3905 | else |
| 3906 | GCC= |
| 3907 | fi |
| 3908 | ac_test_CFLAGS=${CFLAGS+set} |
| 3909 | ac_save_CFLAGS=$CFLAGS |
| 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3911 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3912 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3913 | $as_echo_n "(cached) " >&6 |
| 3914 | else |
| 3915 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3916 | ac_c_werror_flag=yes |
| 3917 | ac_cv_prog_cc_g=no |
| 3918 | CFLAGS="-g" |
| 3919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3920 | /* end confdefs.h. */ |
| 3921 | |
| 3922 | int |
| 3923 | main () |
| 3924 | { |
| 3925 | |
| 3926 | ; |
| 3927 | return 0; |
| 3928 | } |
| 3929 | _ACEOF |
| 3930 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3931 | ac_cv_prog_cc_g=yes |
| 3932 | else |
| 3933 | CFLAGS="" |
| 3934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3935 | /* end confdefs.h. */ |
| 3936 | |
| 3937 | int |
| 3938 | main () |
| 3939 | { |
| 3940 | |
| 3941 | ; |
| 3942 | return 0; |
| 3943 | } |
| 3944 | _ACEOF |
| 3945 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3946 | |
| 3947 | else |
| 3948 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3949 | CFLAGS="-g" |
| 3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3951 | /* end confdefs.h. */ |
| 3952 | |
| 3953 | int |
| 3954 | main () |
| 3955 | { |
| 3956 | |
| 3957 | ; |
| 3958 | return 0; |
| 3959 | } |
| 3960 | _ACEOF |
| 3961 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3962 | ac_cv_prog_cc_g=yes |
| 3963 | fi |
| 3964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3965 | fi |
| 3966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3967 | fi |
| 3968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3969 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3970 | fi |
| 3971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3972 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 3973 | if test "$ac_test_CFLAGS" = set; then |
| 3974 | CFLAGS=$ac_save_CFLAGS |
| 3975 | elif test $ac_cv_prog_cc_g = yes; then |
| 3976 | if test "$GCC" = yes; then |
| 3977 | CFLAGS="-g -O2" |
| 3978 | else |
| 3979 | CFLAGS="-g" |
| 3980 | fi |
| 3981 | else |
| 3982 | if test "$GCC" = yes; then |
| 3983 | CFLAGS="-O2" |
| 3984 | else |
| 3985 | CFLAGS= |
| 3986 | fi |
| 3987 | fi |
| 3988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3989 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3990 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 3991 | $as_echo_n "(cached) " >&6 |
| 3992 | else |
| 3993 | ac_cv_prog_cc_c89=no |
| 3994 | ac_save_CC=$CC |
| 3995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3996 | /* end confdefs.h. */ |
| 3997 | #include <stdarg.h> |
| 3998 | #include <stdio.h> |
| 3999 | struct stat; |
| 4000 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4001 | struct buf { int x; }; |
| 4002 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4003 | static char *e (p, i) |
| 4004 | char **p; |
| 4005 | int i; |
| 4006 | { |
| 4007 | return p[i]; |
| 4008 | } |
| 4009 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4010 | { |
| 4011 | char *s; |
| 4012 | va_list v; |
| 4013 | va_start (v,p); |
| 4014 | s = g (p, va_arg (v,int)); |
| 4015 | va_end (v); |
| 4016 | return s; |
| 4017 | } |
| 4018 | |
| 4019 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4020 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4021 | These don't provoke an error unfortunately, instead are silently treated |
| 4022 | as 'x'. The following induces an error, until -std is added to get |
| 4023 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4024 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4025 | that's true only with -std. */ |
| 4026 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4027 | |
| 4028 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4029 | inside strings and character constants. */ |
| 4030 | #define FOO(x) 'x' |
| 4031 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4032 | |
| 4033 | int test (int i, double x); |
| 4034 | struct s1 {int (*f) (int a);}; |
| 4035 | struct s2 {int (*f) (double a);}; |
| 4036 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4037 | int argc; |
| 4038 | char **argv; |
| 4039 | int |
| 4040 | main () |
| 4041 | { |
| 4042 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4043 | ; |
| 4044 | return 0; |
| 4045 | } |
| 4046 | _ACEOF |
| 4047 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4048 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4049 | do |
| 4050 | CC="$ac_save_CC $ac_arg" |
| 4051 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4052 | ac_cv_prog_cc_c89=$ac_arg |
| 4053 | fi |
| 4054 | rm -f core conftest.err conftest.$ac_objext |
| 4055 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4056 | done |
| 4057 | rm -f conftest.$ac_ext |
| 4058 | CC=$ac_save_CC |
| 4059 | |
| 4060 | fi |
| 4061 | # AC_CACHE_VAL |
| 4062 | case "x$ac_cv_prog_cc_c89" in |
| 4063 | x) |
| 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4065 | $as_echo "none needed" >&6; } ;; |
| 4066 | xno) |
| 4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4068 | $as_echo "unsupported" >&6; } ;; |
| 4069 | *) |
| 4070 | CC="$CC $ac_cv_prog_cc_c89" |
| 4071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4072 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4073 | esac |
| 4074 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4075 | |
| 4076 | fi |
| 4077 | |
| 4078 | ac_ext=c |
| 4079 | ac_cpp='$CPP $CPPFLAGS' |
| 4080 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4081 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4082 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4083 | |
| 4084 | ac_ext=c |
| 4085 | ac_cpp='$CPP $CPPFLAGS' |
| 4086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4090 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4091 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4092 | $as_echo_n "(cached) " >&6 |
| 4093 | else |
| 4094 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4095 | /* end confdefs.h. */ |
| 4096 | |
| 4097 | int |
| 4098 | main () |
| 4099 | { |
| 4100 | |
| 4101 | ; |
| 4102 | return 0; |
| 4103 | } |
| 4104 | _ACEOF |
| 4105 | # Make sure it works both with $CC and with simple cc. |
| 4106 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4107 | # compilers refuse to overwrite an existing .o file with -o, |
| 4108 | # though they will create one. |
| 4109 | am_cv_prog_cc_c_o=yes |
| 4110 | for am_i in 1 2; do |
| 4111 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4112 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4113 | ac_status=$? |
| 4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4115 | (exit $ac_status); } \ |
| 4116 | && test -f conftest2.$ac_objext; then |
| 4117 | : OK |
| 4118 | else |
| 4119 | am_cv_prog_cc_c_o=no |
| 4120 | break |
| 4121 | fi |
| 4122 | done |
| 4123 | rm -f core conftest* |
| 4124 | unset am_i |
| 4125 | fi |
| 4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4127 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4128 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4129 | # Losing compiler, so override with the script. |
| 4130 | # FIXME: It is wrong to rewrite CC. |
| 4131 | # But if we don't then we get into trouble of one sort or another. |
| 4132 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4133 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4134 | CC="$am_aux_dir/compile $CC" |
| 4135 | fi |
| 4136 | ac_ext=c |
| 4137 | ac_cpp='$CPP $CPPFLAGS' |
| 4138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4141 | |
| 4142 | |
| 4143 | depcc="$CC" am_compiler_list= |
| 4144 | |
| 4145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4146 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4147 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4148 | $as_echo_n "(cached) " >&6 |
| 4149 | else |
| 4150 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4151 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4152 | # making bogus files that we don't know about and never remove. For |
| 4153 | # instance it was reported that on HP-UX the gcc test will end up |
| 4154 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4155 | # in D". |
| 4156 | rm -rf conftest.dir |
| 4157 | mkdir conftest.dir |
| 4158 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4159 | # using a relative directory. |
| 4160 | cp "$am_depcomp" conftest.dir |
| 4161 | cd conftest.dir |
| 4162 | # We will build objects and dependencies in a subdirectory because |
| 4163 | # it helps to detect inapplicable dependency modes. For instance |
| 4164 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4165 | # side effect of compilation, but ICC will put the dependencies in |
| 4166 | # the current directory while Tru64 will put them in the object |
| 4167 | # directory. |
| 4168 | mkdir sub |
| 4169 | |
| 4170 | am_cv_CC_dependencies_compiler_type=none |
| 4171 | if test "$am_compiler_list" = ""; then |
| 4172 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4173 | fi |
| 4174 | am__universal=false |
| 4175 | case " $depcc " in #( |
| 4176 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4177 | esac |
| 4178 | |
| 4179 | for depmode in $am_compiler_list; do |
| 4180 | # Setup a source with many dependencies, because some compilers |
| 4181 | # like to wrap large dependency lists on column 80 (with \), and |
| 4182 | # we should not choose a depcomp mode which is confused by this. |
| 4183 | # |
| 4184 | # We need to recreate these files for each test, as the compiler may |
| 4185 | # overwrite some of them when testing with obscure command lines. |
| 4186 | # This happens at least with the AIX C compiler. |
| 4187 | : > sub/conftest.c |
| 4188 | for i in 1 2 3 4 5 6; do |
| 4189 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4190 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4191 | # Solaris 10 /bin/sh. |
| 4192 | echo '/* dummy */' > sub/conftst$i.h |
| 4193 | done |
| 4194 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4195 | |
| 4196 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4197 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4198 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4199 | # versions had trouble with output in subdirs. |
| 4200 | am__obj=sub/conftest.${OBJEXT-o} |
| 4201 | am__minus_obj="-o $am__obj" |
| 4202 | case $depmode in |
| 4203 | gcc) |
| 4204 | # This depmode causes a compiler race in universal mode. |
| 4205 | test "$am__universal" = false || continue |
| 4206 | ;; |
| 4207 | nosideeffect) |
| 4208 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4209 | # only be used when explicitly requested. |
| 4210 | if test "x$enable_dependency_tracking" = xyes; then |
| 4211 | continue |
| 4212 | else |
| 4213 | break |
| 4214 | fi |
| 4215 | ;; |
| 4216 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4217 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4218 | # not run yet. These depmodes are late enough in the game, and |
| 4219 | # so weak that their functioning should not be impacted. |
| 4220 | am__obj=conftest.${OBJEXT-o} |
| 4221 | am__minus_obj= |
| 4222 | ;; |
| 4223 | none) break ;; |
| 4224 | esac |
| 4225 | if depmode=$depmode \ |
| 4226 | source=sub/conftest.c object=$am__obj \ |
| 4227 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4228 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4229 | >/dev/null 2>conftest.err && |
| 4230 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4231 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4232 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4233 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4234 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4235 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4236 | # that says an option was ignored or not supported. |
| 4237 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4238 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4239 | # The diagnosis changed in icc 8.0: |
| 4240 | # icc: Command line remark: option '-MP' not supported |
| 4241 | if (grep 'ignoring option' conftest.err || |
| 4242 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4243 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4244 | break |
| 4245 | fi |
| 4246 | fi |
| 4247 | done |
| 4248 | |
| 4249 | cd .. |
| 4250 | rm -rf conftest.dir |
| 4251 | else |
| 4252 | am_cv_CC_dependencies_compiler_type=none |
| 4253 | fi |
| 4254 | |
| 4255 | fi |
| 4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4257 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4258 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4259 | |
| 4260 | if |
| 4261 | test "x$enable_dependency_tracking" != xno \ |
| 4262 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4263 | am__fastdepCC_TRUE= |
| 4264 | am__fastdepCC_FALSE='#' |
| 4265 | else |
| 4266 | am__fastdepCC_TRUE='#' |
| 4267 | am__fastdepCC_FALSE= |
| 4268 | fi |
| 4269 | |
| 4270 | |
| 4271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4272 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4273 | if ${ac_cv_path_SED+:} false; then : |
| 4274 | $as_echo_n "(cached) " >&6 |
| 4275 | else |
| 4276 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4277 | for ac_i in 1 2 3 4 5 6 7; do |
| 4278 | ac_script="$ac_script$as_nl$ac_script" |
| 4279 | done |
| 4280 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4281 | { ac_script=; unset ac_script;} |
| 4282 | if test -z "$SED"; then |
| 4283 | ac_path_SED_found=false |
| 4284 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4285 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4286 | for as_dir in $PATH |
| 4287 | do |
| 4288 | IFS=$as_save_IFS |
| 4289 | test -z "$as_dir" && as_dir=. |
| 4290 | for ac_prog in sed gsed; do |
| 4291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4292 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4293 | as_fn_executable_p "$ac_path_SED" || continue |
| 4294 | # Check for GNU ac_path_SED and select it if it is found. |
| 4295 | # Check for GNU $ac_path_SED |
| 4296 | case `"$ac_path_SED" --version 2>&1` in |
| 4297 | *GNU*) |
| 4298 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4299 | *) |
| 4300 | ac_count=0 |
| 4301 | $as_echo_n 0123456789 >"conftest.in" |
| 4302 | while : |
| 4303 | do |
| 4304 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4305 | mv "conftest.tmp" "conftest.in" |
| 4306 | cp "conftest.in" "conftest.nl" |
| 4307 | $as_echo '' >> "conftest.nl" |
| 4308 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4309 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4310 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4311 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4312 | # Best one so far, save it but keep looking for a better one |
| 4313 | ac_cv_path_SED="$ac_path_SED" |
| 4314 | ac_path_SED_max=$ac_count |
| 4315 | fi |
| 4316 | # 10*(2^10) chars as input seems more than enough |
| 4317 | test $ac_count -gt 10 && break |
| 4318 | done |
| 4319 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4320 | esac |
| 4321 | |
| 4322 | $ac_path_SED_found && break 3 |
| 4323 | done |
| 4324 | done |
| 4325 | done |
| 4326 | IFS=$as_save_IFS |
| 4327 | if test -z "$ac_cv_path_SED"; then |
| 4328 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4329 | fi |
| 4330 | else |
| 4331 | ac_cv_path_SED=$SED |
| 4332 | fi |
| 4333 | |
| 4334 | fi |
| 4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4336 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4337 | SED="$ac_cv_path_SED" |
| 4338 | rm -f conftest.sed |
| 4339 | |
| 4340 | test -z "$SED" && SED=sed |
| 4341 | Xsed="$SED -e 1s/^X//" |
| 4342 | |
| 4343 | |
| 4344 | |
| 4345 | |
| 4346 | |
| 4347 | |
| 4348 | |
| 4349 | |
| 4350 | |
| 4351 | |
| 4352 | |
| 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4354 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4355 | if ${ac_cv_path_GREP+:} false; then : |
| 4356 | $as_echo_n "(cached) " >&6 |
| 4357 | else |
| 4358 | if test -z "$GREP"; then |
| 4359 | ac_path_GREP_found=false |
| 4360 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4363 | do |
| 4364 | IFS=$as_save_IFS |
| 4365 | test -z "$as_dir" && as_dir=. |
| 4366 | for ac_prog in grep ggrep; do |
| 4367 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4368 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4369 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4370 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4371 | # Check for GNU $ac_path_GREP |
| 4372 | case `"$ac_path_GREP" --version 2>&1` in |
| 4373 | *GNU*) |
| 4374 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4375 | *) |
| 4376 | ac_count=0 |
| 4377 | $as_echo_n 0123456789 >"conftest.in" |
| 4378 | while : |
| 4379 | do |
| 4380 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4381 | mv "conftest.tmp" "conftest.in" |
| 4382 | cp "conftest.in" "conftest.nl" |
| 4383 | $as_echo 'GREP' >> "conftest.nl" |
| 4384 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4385 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4386 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4387 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4388 | # Best one so far, save it but keep looking for a better one |
| 4389 | ac_cv_path_GREP="$ac_path_GREP" |
| 4390 | ac_path_GREP_max=$ac_count |
| 4391 | fi |
| 4392 | # 10*(2^10) chars as input seems more than enough |
| 4393 | test $ac_count -gt 10 && break |
| 4394 | done |
| 4395 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4396 | esac |
| 4397 | |
| 4398 | $ac_path_GREP_found && break 3 |
| 4399 | done |
| 4400 | done |
| 4401 | done |
| 4402 | IFS=$as_save_IFS |
| 4403 | if test -z "$ac_cv_path_GREP"; then |
| 4404 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4405 | fi |
| 4406 | else |
| 4407 | ac_cv_path_GREP=$GREP |
| 4408 | fi |
| 4409 | |
| 4410 | fi |
| 4411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4412 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4413 | GREP="$ac_cv_path_GREP" |
| 4414 | |
| 4415 | |
| 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4417 | $as_echo_n "checking for egrep... " >&6; } |
| 4418 | if ${ac_cv_path_EGREP+:} false; then : |
| 4419 | $as_echo_n "(cached) " >&6 |
| 4420 | else |
| 4421 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4422 | then ac_cv_path_EGREP="$GREP -E" |
| 4423 | else |
| 4424 | if test -z "$EGREP"; then |
| 4425 | ac_path_EGREP_found=false |
| 4426 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4428 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4429 | do |
| 4430 | IFS=$as_save_IFS |
| 4431 | test -z "$as_dir" && as_dir=. |
| 4432 | for ac_prog in egrep; do |
| 4433 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4434 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4435 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4436 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4437 | # Check for GNU $ac_path_EGREP |
| 4438 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4439 | *GNU*) |
| 4440 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4441 | *) |
| 4442 | ac_count=0 |
| 4443 | $as_echo_n 0123456789 >"conftest.in" |
| 4444 | while : |
| 4445 | do |
| 4446 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4447 | mv "conftest.tmp" "conftest.in" |
| 4448 | cp "conftest.in" "conftest.nl" |
| 4449 | $as_echo 'EGREP' >> "conftest.nl" |
| 4450 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4451 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4452 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4453 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4454 | # Best one so far, save it but keep looking for a better one |
| 4455 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4456 | ac_path_EGREP_max=$ac_count |
| 4457 | fi |
| 4458 | # 10*(2^10) chars as input seems more than enough |
| 4459 | test $ac_count -gt 10 && break |
| 4460 | done |
| 4461 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4462 | esac |
| 4463 | |
| 4464 | $ac_path_EGREP_found && break 3 |
| 4465 | done |
| 4466 | done |
| 4467 | done |
| 4468 | IFS=$as_save_IFS |
| 4469 | if test -z "$ac_cv_path_EGREP"; then |
| 4470 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4471 | fi |
| 4472 | else |
| 4473 | ac_cv_path_EGREP=$EGREP |
| 4474 | fi |
| 4475 | |
| 4476 | fi |
| 4477 | fi |
| 4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4479 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4480 | EGREP="$ac_cv_path_EGREP" |
| 4481 | |
| 4482 | |
| 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4484 | $as_echo_n "checking for fgrep... " >&6; } |
| 4485 | if ${ac_cv_path_FGREP+:} false; then : |
| 4486 | $as_echo_n "(cached) " >&6 |
| 4487 | else |
| 4488 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4489 | then ac_cv_path_FGREP="$GREP -F" |
| 4490 | else |
| 4491 | if test -z "$FGREP"; then |
| 4492 | ac_path_FGREP_found=false |
| 4493 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4495 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4496 | do |
| 4497 | IFS=$as_save_IFS |
| 4498 | test -z "$as_dir" && as_dir=. |
| 4499 | for ac_prog in fgrep; do |
| 4500 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4501 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4502 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4503 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4504 | # Check for GNU $ac_path_FGREP |
| 4505 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4506 | *GNU*) |
| 4507 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4508 | *) |
| 4509 | ac_count=0 |
| 4510 | $as_echo_n 0123456789 >"conftest.in" |
| 4511 | while : |
| 4512 | do |
| 4513 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4514 | mv "conftest.tmp" "conftest.in" |
| 4515 | cp "conftest.in" "conftest.nl" |
| 4516 | $as_echo 'FGREP' >> "conftest.nl" |
| 4517 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4518 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4519 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4520 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4521 | # Best one so far, save it but keep looking for a better one |
| 4522 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4523 | ac_path_FGREP_max=$ac_count |
| 4524 | fi |
| 4525 | # 10*(2^10) chars as input seems more than enough |
| 4526 | test $ac_count -gt 10 && break |
| 4527 | done |
| 4528 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4529 | esac |
| 4530 | |
| 4531 | $ac_path_FGREP_found && break 3 |
| 4532 | done |
| 4533 | done |
| 4534 | done |
| 4535 | IFS=$as_save_IFS |
| 4536 | if test -z "$ac_cv_path_FGREP"; then |
| 4537 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4538 | fi |
| 4539 | else |
| 4540 | ac_cv_path_FGREP=$FGREP |
| 4541 | fi |
| 4542 | |
| 4543 | fi |
| 4544 | fi |
| 4545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4546 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4547 | FGREP="$ac_cv_path_FGREP" |
| 4548 | |
| 4549 | |
| 4550 | test -z "$GREP" && GREP=grep |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | |
| 4560 | |
| 4561 | |
| 4562 | |
| 4563 | |
| 4564 | |
| 4565 | |
| 4566 | |
| 4567 | |
| 4568 | |
| 4569 | |
| 4570 | # Check whether --with-gnu-ld was given. |
| 4571 | if test "${with_gnu_ld+set}" = set; then : |
| 4572 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 4573 | else |
| 4574 | with_gnu_ld=no |
| 4575 | fi |
| 4576 | |
| 4577 | ac_prog=ld |
| 4578 | if test yes = "$GCC"; then |
| 4579 | # Check if gcc -print-prog-name=ld gives a path. |
| 4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4581 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 4582 | case $host in |
| 4583 | *-*-mingw*) |
| 4584 | # gcc leaves a trailing carriage return, which upsets mingw |
| 4585 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4586 | *) |
| 4587 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4588 | esac |
| 4589 | case $ac_prog in |
| 4590 | # Accept absolute paths. |
| 4591 | [\\/]* | ?:[\\/]*) |
| 4592 | re_direlt='/[^/][^/]*/\.\./' |
| 4593 | # Canonicalize the pathname of ld |
| 4594 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4595 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4596 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4597 | done |
| 4598 | test -z "$LD" && LD=$ac_prog |
| 4599 | ;; |
| 4600 | "") |
| 4601 | # If it fails, then pretend we aren't using GCC. |
| 4602 | ac_prog=ld |
| 4603 | ;; |
| 4604 | *) |
| 4605 | # If it is relative, then search for the first ld in PATH. |
| 4606 | with_gnu_ld=unknown |
| 4607 | ;; |
| 4608 | esac |
| 4609 | elif test yes = "$with_gnu_ld"; then |
| 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4611 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4612 | else |
| 4613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4614 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 4615 | fi |
| 4616 | if ${lt_cv_path_LD+:} false; then : |
| 4617 | $as_echo_n "(cached) " >&6 |
| 4618 | else |
| 4619 | if test -z "$LD"; then |
| 4620 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4621 | for ac_dir in $PATH; do |
| 4622 | IFS=$lt_save_ifs |
| 4623 | test -z "$ac_dir" && ac_dir=. |
| 4624 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4625 | lt_cv_path_LD=$ac_dir/$ac_prog |
| 4626 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4627 | # but apparently some variants of GNU ld only accept -v. |
| 4628 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4629 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4630 | *GNU* | *'with BFD'*) |
| 4631 | test no != "$with_gnu_ld" && break |
| 4632 | ;; |
| 4633 | *) |
| 4634 | test yes != "$with_gnu_ld" && break |
| 4635 | ;; |
| 4636 | esac |
| 4637 | fi |
| 4638 | done |
| 4639 | IFS=$lt_save_ifs |
| 4640 | else |
| 4641 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 4642 | fi |
| 4643 | fi |
| 4644 | |
| 4645 | LD=$lt_cv_path_LD |
| 4646 | if test -n "$LD"; then |
| 4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4648 | $as_echo "$LD" >&6; } |
| 4649 | else |
| 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4651 | $as_echo "no" >&6; } |
| 4652 | fi |
| 4653 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4655 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4656 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 4657 | $as_echo_n "(cached) " >&6 |
| 4658 | else |
| 4659 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 4660 | case `$LD -v 2>&1 </dev/null` in |
| 4661 | *GNU* | *'with BFD'*) |
| 4662 | lt_cv_prog_gnu_ld=yes |
| 4663 | ;; |
| 4664 | *) |
| 4665 | lt_cv_prog_gnu_ld=no |
| 4666 | ;; |
| 4667 | esac |
| 4668 | fi |
| 4669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4670 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 4671 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4682 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4683 | if ${lt_cv_path_NM+:} false; then : |
| 4684 | $as_echo_n "(cached) " >&6 |
| 4685 | else |
| 4686 | if test -n "$NM"; then |
| 4687 | # Let the user override the test. |
| 4688 | lt_cv_path_NM=$NM |
| 4689 | else |
| 4690 | lt_nm_to_check=${ac_tool_prefix}nm |
| 4691 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4692 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4693 | fi |
| 4694 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4695 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 4696 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4697 | IFS=$lt_save_ifs |
| 4698 | test -z "$ac_dir" && ac_dir=. |
| 4699 | tmp_nm=$ac_dir/$lt_tmp_nm |
| 4700 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 4701 | # Check to see if the nm accepts a BSD-compat flag. |
| 4702 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 4703 | # nm: unknown option "B" ignored |
| 4704 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4705 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 4706 | case $build_os in |
| 4707 | mingw*) lt_bad_file=conftest.nm/nofile ;; |
| 4708 | *) lt_bad_file=/dev/null ;; |
| 4709 | esac |
| 4710 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in |
| 4711 | *$lt_bad_file* | *'Invalid file or object type'*) |
| 4712 | lt_cv_path_NM="$tmp_nm -B" |
| 4713 | break 2 |
| 4714 | ;; |
| 4715 | *) |
| 4716 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4717 | */dev/null*) |
| 4718 | lt_cv_path_NM="$tmp_nm -p" |
| 4719 | break 2 |
| 4720 | ;; |
| 4721 | *) |
| 4722 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4723 | continue # so that we can try to find one that supports BSD flags |
| 4724 | ;; |
| 4725 | esac |
| 4726 | ;; |
| 4727 | esac |
| 4728 | fi |
| 4729 | done |
| 4730 | IFS=$lt_save_ifs |
| 4731 | done |
| 4732 | : ${lt_cv_path_NM=no} |
| 4733 | fi |
| 4734 | fi |
| 4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 4736 | $as_echo "$lt_cv_path_NM" >&6; } |
| 4737 | if test no != "$lt_cv_path_NM"; then |
| 4738 | NM=$lt_cv_path_NM |
| 4739 | else |
| 4740 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 4741 | if test -n "$DUMPBIN"; then : |
| 4742 | # Let the user override the test. |
| 4743 | else |
| 4744 | if test -n "$ac_tool_prefix"; then |
| 4745 | for ac_prog in dumpbin "link -dump" |
| 4746 | do |
| 4747 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4748 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4750 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4751 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 4752 | $as_echo_n "(cached) " >&6 |
| 4753 | else |
| 4754 | if test -n "$DUMPBIN"; then |
| 4755 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 4756 | else |
| 4757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4758 | for as_dir in $PATH |
| 4759 | do |
| 4760 | IFS=$as_save_IFS |
| 4761 | test -z "$as_dir" && as_dir=. |
| 4762 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4763 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4764 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 4765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4766 | break 2 |
| 4767 | fi |
| 4768 | done |
| 4769 | done |
| 4770 | IFS=$as_save_IFS |
| 4771 | |
| 4772 | fi |
| 4773 | fi |
| 4774 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 4775 | if test -n "$DUMPBIN"; then |
| 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 4777 | $as_echo "$DUMPBIN" >&6; } |
| 4778 | else |
| 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4780 | $as_echo "no" >&6; } |
| 4781 | fi |
| 4782 | |
| 4783 | |
| 4784 | test -n "$DUMPBIN" && break |
| 4785 | done |
| 4786 | fi |
| 4787 | if test -z "$DUMPBIN"; then |
| 4788 | ac_ct_DUMPBIN=$DUMPBIN |
| 4789 | for ac_prog in dumpbin "link -dump" |
| 4790 | do |
| 4791 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4792 | set dummy $ac_prog; ac_word=$2 |
| 4793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4794 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4795 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 4796 | $as_echo_n "(cached) " >&6 |
| 4797 | else |
| 4798 | if test -n "$ac_ct_DUMPBIN"; then |
| 4799 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 4800 | else |
| 4801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4802 | for as_dir in $PATH |
| 4803 | do |
| 4804 | IFS=$as_save_IFS |
| 4805 | test -z "$as_dir" && as_dir=. |
| 4806 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4807 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4808 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 4809 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4810 | break 2 |
| 4811 | fi |
| 4812 | done |
| 4813 | done |
| 4814 | IFS=$as_save_IFS |
| 4815 | |
| 4816 | fi |
| 4817 | fi |
| 4818 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 4819 | if test -n "$ac_ct_DUMPBIN"; then |
| 4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 4821 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 4822 | else |
| 4823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4824 | $as_echo "no" >&6; } |
| 4825 | fi |
| 4826 | |
| 4827 | |
| 4828 | test -n "$ac_ct_DUMPBIN" && break |
| 4829 | done |
| 4830 | |
| 4831 | if test "x$ac_ct_DUMPBIN" = x; then |
| 4832 | DUMPBIN=":" |
| 4833 | else |
| 4834 | case $cross_compiling:$ac_tool_warned in |
| 4835 | yes:) |
| 4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4837 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4838 | ac_tool_warned=yes ;; |
| 4839 | esac |
| 4840 | DUMPBIN=$ac_ct_DUMPBIN |
| 4841 | fi |
| 4842 | fi |
| 4843 | |
| 4844 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
| 4845 | *COFF*) |
| 4846 | DUMPBIN="$DUMPBIN -symbols -headers" |
| 4847 | ;; |
| 4848 | *) |
| 4849 | DUMPBIN=: |
| 4850 | ;; |
| 4851 | esac |
| 4852 | fi |
| 4853 | |
| 4854 | if test : != "$DUMPBIN"; then |
| 4855 | NM=$DUMPBIN |
| 4856 | fi |
| 4857 | fi |
| 4858 | test -z "$NM" && NM=nm |
| 4859 | |
| 4860 | |
| 4861 | |
| 4862 | |
| 4863 | |
| 4864 | |
| 4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 4866 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 4867 | if ${lt_cv_nm_interface+:} false; then : |
| 4868 | $as_echo_n "(cached) " >&6 |
| 4869 | else |
| 4870 | lt_cv_nm_interface="BSD nm" |
| 4871 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 4872 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 4873 | (eval "$ac_compile" 2>conftest.err) |
| 4874 | cat conftest.err >&5 |
| 4875 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 4876 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 4877 | cat conftest.err >&5 |
| 4878 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 4879 | cat conftest.out >&5 |
| 4880 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 4881 | lt_cv_nm_interface="MS dumpbin" |
| 4882 | fi |
| 4883 | rm -f conftest* |
| 4884 | fi |
| 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 4886 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 4887 | |
| 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 4889 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 4890 | LN_S=$as_ln_s |
| 4891 | if test "$LN_S" = "ln -s"; then |
| 4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4893 | $as_echo "yes" >&6; } |
| 4894 | else |
| 4895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 4896 | $as_echo "no, using $LN_S" >&6; } |
| 4897 | fi |
| 4898 | |
| 4899 | # find the maximum length of command line arguments |
| 4900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 4901 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 4902 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 4903 | $as_echo_n "(cached) " >&6 |
| 4904 | else |
| 4905 | i=0 |
| 4906 | teststring=ABCD |
| 4907 | |
| 4908 | case $build_os in |
| 4909 | msdosdjgpp*) |
| 4910 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 4911 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 4912 | # during glob expansion). Even if it were fixed, the result of this |
| 4913 | # check would be larger than it should be. |
| 4914 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 4915 | ;; |
| 4916 | |
| 4917 | gnu*) |
| 4918 | # Under GNU Hurd, this test is not required because there is |
| 4919 | # no limit to the length of command line arguments. |
| 4920 | # Libtool will interpret -1 as no limit whatsoever |
| 4921 | lt_cv_sys_max_cmd_len=-1; |
| 4922 | ;; |
| 4923 | |
| 4924 | cygwin* | mingw* | cegcc*) |
| 4925 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 4926 | # about 5 minutes as the teststring grows exponentially. |
| 4927 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 4928 | # you end up with a "frozen" computer, even though with patience |
| 4929 | # the test eventually succeeds (with a max line length of 256k). |
| 4930 | # Instead, let's just punt: use the minimum linelength reported by |
| 4931 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 4932 | lt_cv_sys_max_cmd_len=8192; |
| 4933 | ;; |
| 4934 | |
| 4935 | mint*) |
| 4936 | # On MiNT this can take a long time and run out of memory. |
| 4937 | lt_cv_sys_max_cmd_len=8192; |
| 4938 | ;; |
| 4939 | |
| 4940 | amigaos*) |
| 4941 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 4942 | # So we just punt and use a minimum line length of 8192. |
| 4943 | lt_cv_sys_max_cmd_len=8192; |
| 4944 | ;; |
| 4945 | |
| 4946 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
| 4947 | # This has been around since 386BSD, at least. Likely further. |
| 4948 | if test -x /sbin/sysctl; then |
| 4949 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 4950 | elif test -x /usr/sbin/sysctl; then |
| 4951 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 4952 | else |
| 4953 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 4954 | fi |
| 4955 | # And add a safety zone |
| 4956 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4957 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 4958 | ;; |
| 4959 | |
| 4960 | interix*) |
| 4961 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 4962 | lt_cv_sys_max_cmd_len=196608 |
| 4963 | ;; |
| 4964 | |
| 4965 | os2*) |
| 4966 | # The test takes a long time on OS/2. |
| 4967 | lt_cv_sys_max_cmd_len=8192 |
| 4968 | ;; |
| 4969 | |
| 4970 | osf*) |
| 4971 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 4972 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 4973 | # nice to cause kernel panics so lets avoid the loop below. |
| 4974 | # First set a reasonable default. |
| 4975 | lt_cv_sys_max_cmd_len=16384 |
| 4976 | # |
| 4977 | if test -x /sbin/sysconfig; then |
| 4978 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 4979 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 4980 | esac |
| 4981 | fi |
| 4982 | ;; |
| 4983 | sco3.2v5*) |
| 4984 | lt_cv_sys_max_cmd_len=102400 |
| 4985 | ;; |
| 4986 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 4987 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 4988 | if test -n "$kargmax"; then |
| 4989 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 4990 | else |
| 4991 | lt_cv_sys_max_cmd_len=32768 |
| 4992 | fi |
| 4993 | ;; |
| 4994 | *) |
| 4995 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 4996 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 4997 | test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 4998 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 4999 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5000 | else |
| 5001 | # Make teststring a little bigger before we do anything with it. |
| 5002 | # a 1K string should be a reasonable start. |
| 5003 | for i in 1 2 3 4 5 6 7 8; do |
| 5004 | teststring=$teststring$teststring |
| 5005 | done |
| 5006 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5007 | # If test is not a shell built-in, we'll probably end up computing a |
| 5008 | # maximum length that is only half of the actual maximum length, but |
| 5009 | # we can't tell. |
| 5010 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5011 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5012 | test 17 != "$i" # 1/2 MB should be enough |
| 5013 | do |
| 5014 | i=`expr $i + 1` |
| 5015 | teststring=$teststring$teststring |
| 5016 | done |
| 5017 | # Only check the string length outside the loop. |
| 5018 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5019 | teststring= |
| 5020 | # Add a significant safety factor because C++ compilers can tack on |
| 5021 | # massive amounts of additional arguments before passing them to the |
| 5022 | # linker. It appears as though 1/2 is a usable value. |
| 5023 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5024 | fi |
| 5025 | ;; |
| 5026 | esac |
| 5027 | |
| 5028 | fi |
| 5029 | |
| 5030 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5032 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5033 | else |
| 5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5035 | $as_echo "none" >&6; } |
| 5036 | fi |
| 5037 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5038 | |
| 5039 | |
| 5040 | |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | : ${CP="cp -f"} |
| 5045 | : ${MV="mv -f"} |
| 5046 | : ${RM="rm -f"} |
| 5047 | |
| 5048 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5049 | lt_unset=unset |
| 5050 | else |
| 5051 | lt_unset=false |
| 5052 | fi |
| 5053 | |
| 5054 | |
| 5055 | |
| 5056 | |
| 5057 | |
| 5058 | # test EBCDIC or ASCII |
| 5059 | case `echo X|tr X '\101'` in |
| 5060 | A) # ASCII based system |
| 5061 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5062 | lt_SP2NL='tr \040 \012' |
| 5063 | lt_NL2SP='tr \015\012 \040\040' |
| 5064 | ;; |
| 5065 | *) # EBCDIC based system |
| 5066 | lt_SP2NL='tr \100 \n' |
| 5067 | lt_NL2SP='tr \r\n \100\100' |
| 5068 | ;; |
| 5069 | esac |
| 5070 | |
| 5071 | |
| 5072 | |
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | |
| 5077 | |
| 5078 | |
| 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5080 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5081 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5082 | $as_echo_n "(cached) " >&6 |
| 5083 | else |
| 5084 | case $host in |
| 5085 | *-*-mingw* ) |
| 5086 | case $build in |
| 5087 | *-*-mingw* ) # actually msys |
| 5088 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5089 | ;; |
| 5090 | *-*-cygwin* ) |
| 5091 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5092 | ;; |
| 5093 | * ) # otherwise, assume *nix |
| 5094 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5095 | ;; |
| 5096 | esac |
| 5097 | ;; |
| 5098 | *-*-cygwin* ) |
| 5099 | case $build in |
| 5100 | *-*-mingw* ) # actually msys |
| 5101 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5102 | ;; |
| 5103 | *-*-cygwin* ) |
| 5104 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5105 | ;; |
| 5106 | * ) # otherwise, assume *nix |
| 5107 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5108 | ;; |
| 5109 | esac |
| 5110 | ;; |
| 5111 | * ) # unhandled hosts (and "normal" native builds) |
| 5112 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5113 | ;; |
| 5114 | esac |
| 5115 | |
| 5116 | fi |
| 5117 | |
| 5118 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5120 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5121 | |
| 5122 | |
| 5123 | |
| 5124 | |
| 5125 | |
| 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5127 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5128 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5129 | $as_echo_n "(cached) " >&6 |
| 5130 | else |
| 5131 | #assume ordinary cross tools, or native build. |
| 5132 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5133 | case $host in |
| 5134 | *-*-mingw* ) |
| 5135 | case $build in |
| 5136 | *-*-mingw* ) # actually msys |
| 5137 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5138 | ;; |
| 5139 | esac |
| 5140 | ;; |
| 5141 | esac |
| 5142 | |
| 5143 | fi |
| 5144 | |
| 5145 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5147 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5148 | |
| 5149 | |
| 5150 | |
| 5151 | |
| 5152 | |
| 5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5154 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5155 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5156 | $as_echo_n "(cached) " >&6 |
| 5157 | else |
| 5158 | lt_cv_ld_reload_flag='-r' |
| 5159 | fi |
| 5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5161 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5162 | reload_flag=$lt_cv_ld_reload_flag |
| 5163 | case $reload_flag in |
| 5164 | "" | " "*) ;; |
| 5165 | *) reload_flag=" $reload_flag" ;; |
| 5166 | esac |
| 5167 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5168 | case $host_os in |
| 5169 | cygwin* | mingw* | pw32* | cegcc*) |
| 5170 | if test yes != "$GCC"; then |
| 5171 | reload_cmds=false |
| 5172 | fi |
| 5173 | ;; |
| 5174 | darwin*) |
| 5175 | if test yes = "$GCC"; then |
| 5176 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 5177 | else |
| 5178 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5179 | fi |
| 5180 | ;; |
| 5181 | esac |
| 5182 | |
| 5183 | |
| 5184 | |
| 5185 | |
| 5186 | |
| 5187 | |
| 5188 | |
| 5189 | |
| 5190 | |
| 5191 | if test -n "$ac_tool_prefix"; then |
| 5192 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5193 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5195 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5196 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5197 | $as_echo_n "(cached) " >&6 |
| 5198 | else |
| 5199 | if test -n "$OBJDUMP"; then |
| 5200 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5201 | else |
| 5202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5203 | for as_dir in $PATH |
| 5204 | do |
| 5205 | IFS=$as_save_IFS |
| 5206 | test -z "$as_dir" && as_dir=. |
| 5207 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5208 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5209 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5210 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5211 | break 2 |
| 5212 | fi |
| 5213 | done |
| 5214 | done |
| 5215 | IFS=$as_save_IFS |
| 5216 | |
| 5217 | fi |
| 5218 | fi |
| 5219 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5220 | if test -n "$OBJDUMP"; then |
| 5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5222 | $as_echo "$OBJDUMP" >&6; } |
| 5223 | else |
| 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5225 | $as_echo "no" >&6; } |
| 5226 | fi |
| 5227 | |
| 5228 | |
| 5229 | fi |
| 5230 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5231 | ac_ct_OBJDUMP=$OBJDUMP |
| 5232 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5233 | set dummy objdump; ac_word=$2 |
| 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5235 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5236 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5237 | $as_echo_n "(cached) " >&6 |
| 5238 | else |
| 5239 | if test -n "$ac_ct_OBJDUMP"; then |
| 5240 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5241 | else |
| 5242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5243 | for as_dir in $PATH |
| 5244 | do |
| 5245 | IFS=$as_save_IFS |
| 5246 | test -z "$as_dir" && as_dir=. |
| 5247 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5248 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5249 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5250 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5251 | break 2 |
| 5252 | fi |
| 5253 | done |
| 5254 | done |
| 5255 | IFS=$as_save_IFS |
| 5256 | |
| 5257 | fi |
| 5258 | fi |
| 5259 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5260 | if test -n "$ac_ct_OBJDUMP"; then |
| 5261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5262 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5263 | else |
| 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5265 | $as_echo "no" >&6; } |
| 5266 | fi |
| 5267 | |
| 5268 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5269 | OBJDUMP="false" |
| 5270 | else |
| 5271 | case $cross_compiling:$ac_tool_warned in |
| 5272 | yes:) |
| 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5274 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5275 | ac_tool_warned=yes ;; |
| 5276 | esac |
| 5277 | OBJDUMP=$ac_ct_OBJDUMP |
| 5278 | fi |
| 5279 | else |
| 5280 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5281 | fi |
| 5282 | |
| 5283 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5284 | |
| 5285 | |
| 5286 | |
| 5287 | |
| 5288 | |
| 5289 | |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5294 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5295 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5296 | $as_echo_n "(cached) " >&6 |
| 5297 | else |
| 5298 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5299 | lt_cv_file_magic_test_file= |
| 5300 | lt_cv_deplibs_check_method='unknown' |
| 5301 | # Need to set the preceding variable on all platforms that support |
| 5302 | # interlibrary dependencies. |
| 5303 | # 'none' -- dependencies not supported. |
| 5304 | # 'unknown' -- same as none, but documents that we really don't know. |
| 5305 | # 'pass_all' -- all dependencies passed with no checks. |
| 5306 | # 'test_compile' -- check by making test program. |
| 5307 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5308 | # that responds to the $file_magic_cmd with a given extended regex. |
| 5309 | # If you have 'file' or equivalent on your system and you're not sure |
| 5310 | # whether 'pass_all' will *always* work, you probably want this one. |
| 5311 | |
| 5312 | case $host_os in |
| 5313 | aix[4-9]*) |
| 5314 | lt_cv_deplibs_check_method=pass_all |
| 5315 | ;; |
| 5316 | |
| 5317 | beos*) |
| 5318 | lt_cv_deplibs_check_method=pass_all |
| 5319 | ;; |
| 5320 | |
| 5321 | bsdi[45]*) |
| 5322 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5323 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5324 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5325 | ;; |
| 5326 | |
| 5327 | cygwin*) |
| 5328 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5329 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5330 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5331 | ;; |
| 5332 | |
| 5333 | mingw* | pw32*) |
| 5334 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5335 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5336 | # unless we find 'file', for example because we are cross-compiling. |
| 5337 | if ( file / ) >/dev/null 2>&1; then |
| 5338 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5339 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5340 | else |
| 5341 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5342 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5343 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5344 | fi |
| 5345 | ;; |
| 5346 | |
| 5347 | cegcc*) |
| 5348 | # use the weaker test based on 'objdump'. See mingw*. |
| 5349 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5350 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5351 | ;; |
| 5352 | |
| 5353 | darwin* | rhapsody*) |
| 5354 | lt_cv_deplibs_check_method=pass_all |
| 5355 | ;; |
| 5356 | |
| 5357 | freebsd* | dragonfly*) |
| 5358 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5359 | case $host_cpu in |
| 5360 | i*86 ) |
| 5361 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5362 | # Let's accept both of them until this is cleared up. |
| 5363 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5364 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5365 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5366 | ;; |
| 5367 | esac |
| 5368 | else |
| 5369 | lt_cv_deplibs_check_method=pass_all |
| 5370 | fi |
| 5371 | ;; |
| 5372 | |
| 5373 | haiku*) |
| 5374 | lt_cv_deplibs_check_method=pass_all |
| 5375 | ;; |
| 5376 | |
| 5377 | hpux10.20* | hpux11*) |
| 5378 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5379 | case $host_cpu in |
| 5380 | ia64*) |
| 5381 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5382 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5383 | ;; |
| 5384 | hppa*64*) |
| 5385 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 5386 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5387 | ;; |
| 5388 | *) |
| 5389 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5390 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5391 | ;; |
| 5392 | esac |
| 5393 | ;; |
| 5394 | |
| 5395 | interix[3-9]*) |
| 5396 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5397 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5398 | ;; |
| 5399 | |
| 5400 | irix5* | irix6* | nonstopux*) |
| 5401 | case $LD in |
| 5402 | *-32|*"-32 ") libmagic=32-bit;; |
| 5403 | *-n32|*"-n32 ") libmagic=N32;; |
| 5404 | *-64|*"-64 ") libmagic=64-bit;; |
| 5405 | *) libmagic=never-match;; |
| 5406 | esac |
| 5407 | lt_cv_deplibs_check_method=pass_all |
| 5408 | ;; |
| 5409 | |
| 5410 | # This must be glibc/ELF. |
| 5411 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 5412 | lt_cv_deplibs_check_method=pass_all |
| 5413 | ;; |
| 5414 | |
| 5415 | netbsd* | netbsdelf*-gnu) |
| 5416 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5417 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5418 | else |
| 5419 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5420 | fi |
| 5421 | ;; |
| 5422 | |
| 5423 | newos6*) |
| 5424 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5425 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5426 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5427 | ;; |
| 5428 | |
| 5429 | *nto* | *qnx*) |
| 5430 | lt_cv_deplibs_check_method=pass_all |
| 5431 | ;; |
| 5432 | |
| 5433 | openbsd* | bitrig*) |
| 5434 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 5435 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5436 | else |
| 5437 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5438 | fi |
| 5439 | ;; |
| 5440 | |
| 5441 | osf3* | osf4* | osf5*) |
| 5442 | lt_cv_deplibs_check_method=pass_all |
| 5443 | ;; |
| 5444 | |
| 5445 | rdos*) |
| 5446 | lt_cv_deplibs_check_method=pass_all |
| 5447 | ;; |
| 5448 | |
| 5449 | solaris*) |
| 5450 | lt_cv_deplibs_check_method=pass_all |
| 5451 | ;; |
| 5452 | |
| 5453 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5454 | lt_cv_deplibs_check_method=pass_all |
| 5455 | ;; |
| 5456 | |
| 5457 | sysv4 | sysv4.3*) |
| 5458 | case $host_vendor in |
| 5459 | motorola) |
| 5460 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 5461 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5462 | ;; |
| 5463 | ncr) |
| 5464 | lt_cv_deplibs_check_method=pass_all |
| 5465 | ;; |
| 5466 | sequent) |
| 5467 | lt_cv_file_magic_cmd='/bin/file' |
| 5468 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5469 | ;; |
| 5470 | sni) |
| 5471 | lt_cv_file_magic_cmd='/bin/file' |
| 5472 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5473 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5474 | ;; |
| 5475 | siemens) |
| 5476 | lt_cv_deplibs_check_method=pass_all |
| 5477 | ;; |
| 5478 | pc) |
| 5479 | lt_cv_deplibs_check_method=pass_all |
| 5480 | ;; |
| 5481 | esac |
| 5482 | ;; |
| 5483 | |
| 5484 | tpf*) |
| 5485 | lt_cv_deplibs_check_method=pass_all |
| 5486 | ;; |
| 5487 | os2*) |
| 5488 | lt_cv_deplibs_check_method=pass_all |
| 5489 | ;; |
| 5490 | esac |
| 5491 | |
| 5492 | fi |
| 5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5494 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5495 | |
| 5496 | file_magic_glob= |
| 5497 | want_nocaseglob=no |
| 5498 | if test "$build" = "$host"; then |
| 5499 | case $host_os in |
| 5500 | mingw* | pw32*) |
| 5501 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5502 | want_nocaseglob=yes |
| 5503 | else |
| 5504 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5505 | fi |
| 5506 | ;; |
| 5507 | esac |
| 5508 | fi |
| 5509 | |
| 5510 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5511 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5512 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5513 | |
| 5514 | |
| 5515 | |
| 5516 | |
| 5517 | |
| 5518 | |
| 5519 | |
| 5520 | |
| 5521 | |
| 5522 | |
| 5523 | |
| 5524 | |
| 5525 | |
| 5526 | |
| 5527 | |
| 5528 | |
| 5529 | |
| 5530 | |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | if test -n "$ac_tool_prefix"; then |
| 5536 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5537 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5539 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5540 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5541 | $as_echo_n "(cached) " >&6 |
| 5542 | else |
| 5543 | if test -n "$DLLTOOL"; then |
| 5544 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5545 | else |
| 5546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5547 | for as_dir in $PATH |
| 5548 | do |
| 5549 | IFS=$as_save_IFS |
| 5550 | test -z "$as_dir" && as_dir=. |
| 5551 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5552 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5553 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5554 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5555 | break 2 |
| 5556 | fi |
| 5557 | done |
| 5558 | done |
| 5559 | IFS=$as_save_IFS |
| 5560 | |
| 5561 | fi |
| 5562 | fi |
| 5563 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5564 | if test -n "$DLLTOOL"; then |
| 5565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5566 | $as_echo "$DLLTOOL" >&6; } |
| 5567 | else |
| 5568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5569 | $as_echo "no" >&6; } |
| 5570 | fi |
| 5571 | |
| 5572 | |
| 5573 | fi |
| 5574 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5575 | ac_ct_DLLTOOL=$DLLTOOL |
| 5576 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5577 | set dummy dlltool; ac_word=$2 |
| 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5579 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5580 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5581 | $as_echo_n "(cached) " >&6 |
| 5582 | else |
| 5583 | if test -n "$ac_ct_DLLTOOL"; then |
| 5584 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5585 | else |
| 5586 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5587 | for as_dir in $PATH |
| 5588 | do |
| 5589 | IFS=$as_save_IFS |
| 5590 | test -z "$as_dir" && as_dir=. |
| 5591 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5592 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5593 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5594 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5595 | break 2 |
| 5596 | fi |
| 5597 | done |
| 5598 | done |
| 5599 | IFS=$as_save_IFS |
| 5600 | |
| 5601 | fi |
| 5602 | fi |
| 5603 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5604 | if test -n "$ac_ct_DLLTOOL"; then |
| 5605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5606 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5607 | else |
| 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5609 | $as_echo "no" >&6; } |
| 5610 | fi |
| 5611 | |
| 5612 | if test "x$ac_ct_DLLTOOL" = x; then |
| 5613 | DLLTOOL="false" |
| 5614 | else |
| 5615 | case $cross_compiling:$ac_tool_warned in |
| 5616 | yes:) |
| 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5618 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5619 | ac_tool_warned=yes ;; |
| 5620 | esac |
| 5621 | DLLTOOL=$ac_ct_DLLTOOL |
| 5622 | fi |
| 5623 | else |
| 5624 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 5625 | fi |
| 5626 | |
| 5627 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | |
| 5632 | |
| 5633 | |
| 5634 | |
| 5635 | |
| 5636 | |
| 5637 | |
| 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 5639 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 5640 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 5641 | $as_echo_n "(cached) " >&6 |
| 5642 | else |
| 5643 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 5644 | |
| 5645 | case $host_os in |
| 5646 | cygwin* | mingw* | pw32* | cegcc*) |
| 5647 | # two different shell functions defined in ltmain.sh; |
| 5648 | # decide which one to use based on capabilities of $DLLTOOL |
| 5649 | case `$DLLTOOL --help 2>&1` in |
| 5650 | *--identify-strict*) |
| 5651 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 5652 | ;; |
| 5653 | *) |
| 5654 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 5655 | ;; |
| 5656 | esac |
| 5657 | ;; |
| 5658 | *) |
| 5659 | # fallback: assume linklib IS sharedlib |
| 5660 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 5661 | ;; |
| 5662 | esac |
| 5663 | |
| 5664 | fi |
| 5665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 5666 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 5667 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 5668 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 5669 | |
| 5670 | |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | if test -n "$ac_tool_prefix"; then |
| 5678 | for ac_prog in ar |
| 5679 | do |
| 5680 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5681 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5683 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5684 | if ${ac_cv_prog_AR+:} false; then : |
| 5685 | $as_echo_n "(cached) " >&6 |
| 5686 | else |
| 5687 | if test -n "$AR"; then |
| 5688 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5689 | else |
| 5690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5691 | for as_dir in $PATH |
| 5692 | do |
| 5693 | IFS=$as_save_IFS |
| 5694 | test -z "$as_dir" && as_dir=. |
| 5695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5697 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 5698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5699 | break 2 |
| 5700 | fi |
| 5701 | done |
| 5702 | done |
| 5703 | IFS=$as_save_IFS |
| 5704 | |
| 5705 | fi |
| 5706 | fi |
| 5707 | AR=$ac_cv_prog_AR |
| 5708 | if test -n "$AR"; then |
| 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5710 | $as_echo "$AR" >&6; } |
| 5711 | else |
| 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5713 | $as_echo "no" >&6; } |
| 5714 | fi |
| 5715 | |
| 5716 | |
| 5717 | test -n "$AR" && break |
| 5718 | done |
| 5719 | fi |
| 5720 | if test -z "$AR"; then |
| 5721 | ac_ct_AR=$AR |
| 5722 | for ac_prog in ar |
| 5723 | do |
| 5724 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5725 | set dummy $ac_prog; ac_word=$2 |
| 5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5727 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5728 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 5729 | $as_echo_n "(cached) " >&6 |
| 5730 | else |
| 5731 | if test -n "$ac_ct_AR"; then |
| 5732 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5733 | else |
| 5734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5735 | for as_dir in $PATH |
| 5736 | do |
| 5737 | IFS=$as_save_IFS |
| 5738 | test -z "$as_dir" && as_dir=. |
| 5739 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5741 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 5742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5743 | break 2 |
| 5744 | fi |
| 5745 | done |
| 5746 | done |
| 5747 | IFS=$as_save_IFS |
| 5748 | |
| 5749 | fi |
| 5750 | fi |
| 5751 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5752 | if test -n "$ac_ct_AR"; then |
| 5753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5754 | $as_echo "$ac_ct_AR" >&6; } |
| 5755 | else |
| 5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5757 | $as_echo "no" >&6; } |
| 5758 | fi |
| 5759 | |
| 5760 | |
| 5761 | test -n "$ac_ct_AR" && break |
| 5762 | done |
| 5763 | |
| 5764 | if test "x$ac_ct_AR" = x; then |
| 5765 | AR="false" |
| 5766 | else |
| 5767 | case $cross_compiling:$ac_tool_warned in |
| 5768 | yes:) |
| 5769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5771 | ac_tool_warned=yes ;; |
| 5772 | esac |
| 5773 | AR=$ac_ct_AR |
| 5774 | fi |
| 5775 | fi |
| 5776 | |
| 5777 | : ${AR=ar} |
| 5778 | : ${AR_FLAGS=cru} |
| 5779 | |
| 5780 | |
| 5781 | |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
| 5787 | |
| 5788 | |
| 5789 | |
| 5790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 5791 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 5792 | if ${lt_cv_ar_at_file+:} false; then : |
| 5793 | $as_echo_n "(cached) " >&6 |
| 5794 | else |
| 5795 | lt_cv_ar_at_file=no |
| 5796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5797 | /* end confdefs.h. */ |
| 5798 | |
| 5799 | int |
| 5800 | main () |
| 5801 | { |
| 5802 | |
| 5803 | ; |
| 5804 | return 0; |
| 5805 | } |
| 5806 | _ACEOF |
| 5807 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5808 | echo conftest.$ac_objext > conftest.lst |
| 5809 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 5810 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5811 | (eval $lt_ar_try) 2>&5 |
| 5812 | ac_status=$? |
| 5813 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5814 | test $ac_status = 0; } |
| 5815 | if test 0 -eq "$ac_status"; then |
| 5816 | # Ensure the archiver fails upon bogus file names. |
| 5817 | rm -f conftest.$ac_objext libconftest.a |
| 5818 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 5819 | (eval $lt_ar_try) 2>&5 |
| 5820 | ac_status=$? |
| 5821 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5822 | test $ac_status = 0; } |
| 5823 | if test 0 -ne "$ac_status"; then |
| 5824 | lt_cv_ar_at_file=@ |
| 5825 | fi |
| 5826 | fi |
| 5827 | rm -f conftest.* libconftest.a |
| 5828 | |
| 5829 | fi |
| 5830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5831 | |
| 5832 | fi |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 5834 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 5835 | |
| 5836 | if test no = "$lt_cv_ar_at_file"; then |
| 5837 | archiver_list_spec= |
| 5838 | else |
| 5839 | archiver_list_spec=$lt_cv_ar_at_file |
| 5840 | fi |
| 5841 | |
| 5842 | |
| 5843 | |
| 5844 | |
| 5845 | |
| 5846 | |
| 5847 | |
| 5848 | if test -n "$ac_tool_prefix"; then |
| 5849 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5850 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5852 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5853 | if ${ac_cv_prog_STRIP+:} false; then : |
| 5854 | $as_echo_n "(cached) " >&6 |
| 5855 | else |
| 5856 | if test -n "$STRIP"; then |
| 5857 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5858 | else |
| 5859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5860 | for as_dir in $PATH |
| 5861 | do |
| 5862 | IFS=$as_save_IFS |
| 5863 | test -z "$as_dir" && as_dir=. |
| 5864 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5865 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5866 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5867 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5868 | break 2 |
| 5869 | fi |
| 5870 | done |
| 5871 | done |
| 5872 | IFS=$as_save_IFS |
| 5873 | |
| 5874 | fi |
| 5875 | fi |
| 5876 | STRIP=$ac_cv_prog_STRIP |
| 5877 | if test -n "$STRIP"; then |
| 5878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5879 | $as_echo "$STRIP" >&6; } |
| 5880 | else |
| 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5882 | $as_echo "no" >&6; } |
| 5883 | fi |
| 5884 | |
| 5885 | |
| 5886 | fi |
| 5887 | if test -z "$ac_cv_prog_STRIP"; then |
| 5888 | ac_ct_STRIP=$STRIP |
| 5889 | # Extract the first word of "strip", so it can be a program name with args. |
| 5890 | set dummy strip; ac_word=$2 |
| 5891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5892 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5893 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 5894 | $as_echo_n "(cached) " >&6 |
| 5895 | else |
| 5896 | if test -n "$ac_ct_STRIP"; then |
| 5897 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5898 | else |
| 5899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5900 | for as_dir in $PATH |
| 5901 | do |
| 5902 | IFS=$as_save_IFS |
| 5903 | test -z "$as_dir" && as_dir=. |
| 5904 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5905 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5906 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5907 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5908 | break 2 |
| 5909 | fi |
| 5910 | done |
| 5911 | done |
| 5912 | IFS=$as_save_IFS |
| 5913 | |
| 5914 | fi |
| 5915 | fi |
| 5916 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5917 | if test -n "$ac_ct_STRIP"; then |
| 5918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5919 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5920 | else |
| 5921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5922 | $as_echo "no" >&6; } |
| 5923 | fi |
| 5924 | |
| 5925 | if test "x$ac_ct_STRIP" = x; then |
| 5926 | STRIP=":" |
| 5927 | else |
| 5928 | case $cross_compiling:$ac_tool_warned in |
| 5929 | yes:) |
| 5930 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5931 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5932 | ac_tool_warned=yes ;; |
| 5933 | esac |
| 5934 | STRIP=$ac_ct_STRIP |
| 5935 | fi |
| 5936 | else |
| 5937 | STRIP="$ac_cv_prog_STRIP" |
| 5938 | fi |
| 5939 | |
| 5940 | test -z "$STRIP" && STRIP=: |
| 5941 | |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | if test -n "$ac_tool_prefix"; then |
| 5948 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5949 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5951 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5952 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 5953 | $as_echo_n "(cached) " >&6 |
| 5954 | else |
| 5955 | if test -n "$RANLIB"; then |
| 5956 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5957 | else |
| 5958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5959 | for as_dir in $PATH |
| 5960 | do |
| 5961 | IFS=$as_save_IFS |
| 5962 | test -z "$as_dir" && as_dir=. |
| 5963 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5964 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5965 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5966 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5967 | break 2 |
| 5968 | fi |
| 5969 | done |
| 5970 | done |
| 5971 | IFS=$as_save_IFS |
| 5972 | |
| 5973 | fi |
| 5974 | fi |
| 5975 | RANLIB=$ac_cv_prog_RANLIB |
| 5976 | if test -n "$RANLIB"; then |
| 5977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5978 | $as_echo "$RANLIB" >&6; } |
| 5979 | else |
| 5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5981 | $as_echo "no" >&6; } |
| 5982 | fi |
| 5983 | |
| 5984 | |
| 5985 | fi |
| 5986 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5987 | ac_ct_RANLIB=$RANLIB |
| 5988 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5989 | set dummy ranlib; ac_word=$2 |
| 5990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5991 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5992 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 5993 | $as_echo_n "(cached) " >&6 |
| 5994 | else |
| 5995 | if test -n "$ac_ct_RANLIB"; then |
| 5996 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5997 | else |
| 5998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5999 | for as_dir in $PATH |
| 6000 | do |
| 6001 | IFS=$as_save_IFS |
| 6002 | test -z "$as_dir" && as_dir=. |
| 6003 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6004 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6005 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6006 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6007 | break 2 |
| 6008 | fi |
| 6009 | done |
| 6010 | done |
| 6011 | IFS=$as_save_IFS |
| 6012 | |
| 6013 | fi |
| 6014 | fi |
| 6015 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6016 | if test -n "$ac_ct_RANLIB"; then |
| 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6018 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6019 | else |
| 6020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6021 | $as_echo "no" >&6; } |
| 6022 | fi |
| 6023 | |
| 6024 | if test "x$ac_ct_RANLIB" = x; then |
| 6025 | RANLIB=":" |
| 6026 | else |
| 6027 | case $cross_compiling:$ac_tool_warned in |
| 6028 | yes:) |
| 6029 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6030 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6031 | ac_tool_warned=yes ;; |
| 6032 | esac |
| 6033 | RANLIB=$ac_ct_RANLIB |
| 6034 | fi |
| 6035 | else |
| 6036 | RANLIB="$ac_cv_prog_RANLIB" |
| 6037 | fi |
| 6038 | |
| 6039 | test -z "$RANLIB" && RANLIB=: |
| 6040 | |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
| 6045 | |
| 6046 | # Determine commands to create old-style static archives. |
| 6047 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6048 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6049 | old_postuninstall_cmds= |
| 6050 | |
| 6051 | if test -n "$RANLIB"; then |
| 6052 | case $host_os in |
| 6053 | bitrig* | openbsd*) |
| 6054 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6055 | ;; |
| 6056 | *) |
| 6057 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6058 | ;; |
| 6059 | esac |
| 6060 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6061 | fi |
| 6062 | |
| 6063 | case $host_os in |
| 6064 | darwin*) |
| 6065 | lock_old_archive_extraction=yes ;; |
| 6066 | *) |
| 6067 | lock_old_archive_extraction=no ;; |
| 6068 | esac |
| 6069 | |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
| 6094 | |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
| 6104 | |
| 6105 | |
| 6106 | |
| 6107 | |
| 6108 | # If no C compiler was specified, use CC. |
| 6109 | LTCC=${LTCC-"$CC"} |
| 6110 | |
| 6111 | # If no C compiler flags were specified, use CFLAGS. |
| 6112 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6113 | |
| 6114 | # Allow CC to be a program name with arguments. |
| 6115 | compiler=$CC |
| 6116 | |
| 6117 | |
| 6118 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6120 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6121 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6122 | $as_echo_n "(cached) " >&6 |
| 6123 | else |
| 6124 | |
| 6125 | # These are sane defaults that work on at least a few old systems. |
| 6126 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6127 | |
| 6128 | # Character class describing NM global symbol codes. |
| 6129 | symcode='[BCDEGRST]' |
| 6130 | |
| 6131 | # Regexp to match symbols that can be accessed directly from C. |
| 6132 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6133 | |
| 6134 | # Define system-specific variables. |
| 6135 | case $host_os in |
| 6136 | aix*) |
| 6137 | symcode='[BCDT]' |
| 6138 | ;; |
| 6139 | cygwin* | mingw* | pw32* | cegcc*) |
| 6140 | symcode='[ABCDGISTW]' |
| 6141 | ;; |
| 6142 | hpux*) |
| 6143 | if test ia64 = "$host_cpu"; then |
| 6144 | symcode='[ABCDEGRST]' |
| 6145 | fi |
| 6146 | ;; |
| 6147 | irix* | nonstopux*) |
| 6148 | symcode='[BCDEGRST]' |
| 6149 | ;; |
| 6150 | osf*) |
| 6151 | symcode='[BCDEGQRST]' |
| 6152 | ;; |
| 6153 | solaris*) |
| 6154 | symcode='[BDRT]' |
| 6155 | ;; |
| 6156 | sco3.2v5*) |
| 6157 | symcode='[DT]' |
| 6158 | ;; |
| 6159 | sysv4.2uw2*) |
| 6160 | symcode='[DT]' |
| 6161 | ;; |
| 6162 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6163 | symcode='[ABDT]' |
| 6164 | ;; |
| 6165 | sysv4) |
| 6166 | symcode='[DFNSTU]' |
| 6167 | ;; |
| 6168 | esac |
| 6169 | |
| 6170 | # If we're using GNU nm, then use its standard symbol codes. |
| 6171 | case `$NM -V 2>&1` in |
| 6172 | *GNU* | *'with BFD'*) |
| 6173 | symcode='[ABCDGIRSTW]' ;; |
| 6174 | esac |
| 6175 | |
| 6176 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6177 | # Gets list of data symbols to import. |
| 6178 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" |
| 6179 | # Adjust the below global symbol transforms to fixup imported variables. |
| 6180 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 6181 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 6182 | lt_c_name_lib_hook="\ |
| 6183 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 6184 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 6185 | else |
| 6186 | # Disable hooks by default. |
| 6187 | lt_cv_sys_global_symbol_to_import= |
| 6188 | lt_cdecl_hook= |
| 6189 | lt_c_name_hook= |
| 6190 | lt_c_name_lib_hook= |
| 6191 | fi |
| 6192 | |
| 6193 | # Transform an extracted symbol line into a proper C declaration. |
| 6194 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6195 | # so use this general approach. |
| 6196 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
| 6197 | $lt_cdecl_hook\ |
| 6198 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 6199 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6200 | |
| 6201 | # Transform an extracted symbol line into symbol name and symbol address |
| 6202 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
| 6203 | $lt_c_name_hook\ |
| 6204 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6205 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 6206 | |
| 6207 | # Transform an extracted symbol line into symbol name with lib prefix and |
| 6208 | # symbol address. |
| 6209 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ |
| 6210 | $lt_c_name_lib_hook\ |
| 6211 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 6212 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 6213 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 6214 | |
| 6215 | # Handle CRLF in mingw tool chain |
| 6216 | opt_cr= |
| 6217 | case $build_os in |
| 6218 | mingw*) |
| 6219 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6220 | ;; |
| 6221 | esac |
| 6222 | |
| 6223 | # Try without a prefix underscore, then with it. |
| 6224 | for ac_symprfx in "" "_"; do |
| 6225 | |
| 6226 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6227 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6228 | |
| 6229 | # Write the raw and C identifiers. |
| 6230 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6231 | # Fake it for dumpbin and say T for any non-static function, |
| 6232 | # D for any global variable and I for any imported variable. |
| 6233 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6234 | # which start with @ or ?. |
| 6235 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6236 | " {last_section=section; section=\$ 3};"\ |
| 6237 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6238 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6239 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 6240 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 6241 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 6242 | " \$ 0!~/External *\|/{next};"\ |
| 6243 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6244 | " {if(hide[section]) next};"\ |
| 6245 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 6246 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 6247 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 6248 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 6249 | " ' prfx=^$ac_symprfx" |
| 6250 | else |
| 6251 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6252 | fi |
| 6253 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6254 | |
| 6255 | # Check to see that the pipe works correctly. |
| 6256 | pipe_works=no |
| 6257 | |
| 6258 | rm -f conftest* |
| 6259 | cat > conftest.$ac_ext <<_LT_EOF |
| 6260 | #ifdef __cplusplus |
| 6261 | extern "C" { |
| 6262 | #endif |
| 6263 | char nm_test_var; |
| 6264 | void nm_test_func(void); |
| 6265 | void nm_test_func(void){} |
| 6266 | #ifdef __cplusplus |
| 6267 | } |
| 6268 | #endif |
| 6269 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6270 | _LT_EOF |
| 6271 | |
| 6272 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6273 | (eval $ac_compile) 2>&5 |
| 6274 | ac_status=$? |
| 6275 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6276 | test $ac_status = 0; }; then |
| 6277 | # Now try to grab the symbols. |
| 6278 | nlist=conftest.nm |
| 6279 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6280 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6281 | ac_status=$? |
| 6282 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6283 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6284 | # Try sorting and uniquifying the output. |
| 6285 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6286 | mv -f "$nlist"T "$nlist" |
| 6287 | else |
| 6288 | rm -f "$nlist"T |
| 6289 | fi |
| 6290 | |
| 6291 | # Make sure that we snagged all the symbols we need. |
| 6292 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6293 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6294 | cat <<_LT_EOF > conftest.$ac_ext |
| 6295 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6296 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 6297 | /* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 6298 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6299 | # define LT_DLSYM_CONST |
| 6300 | #elif defined __osf__ |
| 6301 | /* This system does not cope well with relocations in const data. */ |
| 6302 | # define LT_DLSYM_CONST |
| 6303 | #else |
| 6304 | # define LT_DLSYM_CONST const |
| 6305 | #endif |
| 6306 | |
| 6307 | #ifdef __cplusplus |
| 6308 | extern "C" { |
| 6309 | #endif |
| 6310 | |
| 6311 | _LT_EOF |
| 6312 | # Now generate the symbol file. |
| 6313 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6314 | |
| 6315 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6316 | |
| 6317 | /* The mapping between symbol names and symbols. */ |
| 6318 | LT_DLSYM_CONST struct { |
| 6319 | const char *name; |
| 6320 | void *address; |
| 6321 | } |
| 6322 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6323 | { |
| 6324 | { "@PROGRAM@", (void *) 0 }, |
| 6325 | _LT_EOF |
| 6326 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6327 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6328 | {0, (void *) 0} |
| 6329 | }; |
| 6330 | |
| 6331 | /* This works around a problem in FreeBSD linker */ |
| 6332 | #ifdef FREEBSD_WORKAROUND |
| 6333 | static const void *lt_preloaded_setup() { |
| 6334 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6335 | } |
| 6336 | #endif |
| 6337 | |
| 6338 | #ifdef __cplusplus |
| 6339 | } |
| 6340 | #endif |
| 6341 | _LT_EOF |
| 6342 | # Now try linking the two files. |
| 6343 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6344 | lt_globsym_save_LIBS=$LIBS |
| 6345 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6346 | LIBS=conftstm.$ac_objext |
| 6347 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6348 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6349 | (eval $ac_link) 2>&5 |
| 6350 | ac_status=$? |
| 6351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6352 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 6353 | pipe_works=yes |
| 6354 | fi |
| 6355 | LIBS=$lt_globsym_save_LIBS |
| 6356 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6357 | else |
| 6358 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6359 | fi |
| 6360 | else |
| 6361 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6362 | fi |
| 6363 | else |
| 6364 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6365 | fi |
| 6366 | else |
| 6367 | echo "$progname: failed program was:" >&5 |
| 6368 | cat conftest.$ac_ext >&5 |
| 6369 | fi |
| 6370 | rm -rf conftest* conftst* |
| 6371 | |
| 6372 | # Do not use the global_symbol_pipe unless it works. |
| 6373 | if test yes = "$pipe_works"; then |
| 6374 | break |
| 6375 | else |
| 6376 | lt_cv_sys_global_symbol_pipe= |
| 6377 | fi |
| 6378 | done |
| 6379 | |
| 6380 | fi |
| 6381 | |
| 6382 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6383 | lt_cv_sys_global_symbol_to_cdecl= |
| 6384 | fi |
| 6385 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6387 | $as_echo "failed" >&6; } |
| 6388 | else |
| 6389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6390 | $as_echo "ok" >&6; } |
| 6391 | fi |
| 6392 | |
| 6393 | # Response file support. |
| 6394 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6395 | nm_file_list_spec='@' |
| 6396 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6397 | nm_file_list_spec='@' |
| 6398 | fi |
| 6399 | |
| 6400 | |
| 6401 | |
| 6402 | |
| 6403 | |
| 6404 | |
| 6405 | |
| 6406 | |
| 6407 | |
| 6408 | |
| 6409 | |
| 6410 | |
| 6411 | |
| 6412 | |
| 6413 | |
| 6414 | |
| 6415 | |
| 6416 | |
| 6417 | |
| 6418 | |
| 6419 | |
| 6420 | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | |
| 6426 | |
| 6427 | |
| 6428 | |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | |
| 6433 | |
| 6434 | |
| 6435 | |
| 6436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6437 | $as_echo_n "checking for sysroot... " >&6; } |
| 6438 | |
| 6439 | # Check whether --with-sysroot was given. |
| 6440 | if test "${with_sysroot+set}" = set; then : |
| 6441 | withval=$with_sysroot; |
| 6442 | else |
| 6443 | with_sysroot=no |
| 6444 | fi |
| 6445 | |
| 6446 | |
| 6447 | lt_sysroot= |
| 6448 | case $with_sysroot in #( |
| 6449 | yes) |
| 6450 | if test yes = "$GCC"; then |
| 6451 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6452 | fi |
| 6453 | ;; #( |
| 6454 | /*) |
| 6455 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6456 | ;; #( |
| 6457 | no|'') |
| 6458 | ;; #( |
| 6459 | *) |
| 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 6461 | $as_echo "$with_sysroot" >&6; } |
| 6462 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6463 | ;; |
| 6464 | esac |
| 6465 | |
| 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6467 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 6474 | $as_echo_n "checking for a working dd... " >&6; } |
| 6475 | if ${ac_cv_path_lt_DD+:} false; then : |
| 6476 | $as_echo_n "(cached) " >&6 |
| 6477 | else |
| 6478 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6479 | cat conftest.i conftest.i >conftest2.i |
| 6480 | : ${lt_DD:=$DD} |
| 6481 | if test -z "$lt_DD"; then |
| 6482 | ac_path_lt_DD_found=false |
| 6483 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6485 | for as_dir in $PATH |
| 6486 | do |
| 6487 | IFS=$as_save_IFS |
| 6488 | test -z "$as_dir" && as_dir=. |
| 6489 | for ac_prog in dd; do |
| 6490 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6491 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" |
| 6492 | as_fn_executable_p "$ac_path_lt_DD" || continue |
| 6493 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6494 | cmp -s conftest.i conftest.out \ |
| 6495 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 6496 | fi |
| 6497 | $ac_path_lt_DD_found && break 3 |
| 6498 | done |
| 6499 | done |
| 6500 | done |
| 6501 | IFS=$as_save_IFS |
| 6502 | if test -z "$ac_cv_path_lt_DD"; then |
| 6503 | : |
| 6504 | fi |
| 6505 | else |
| 6506 | ac_cv_path_lt_DD=$lt_DD |
| 6507 | fi |
| 6508 | |
| 6509 | rm -f conftest.i conftest2.i conftest.out |
| 6510 | fi |
| 6511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 6512 | $as_echo "$ac_cv_path_lt_DD" >&6; } |
| 6513 | |
| 6514 | |
| 6515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 6516 | $as_echo_n "checking how to truncate binary pipes... " >&6; } |
| 6517 | if ${lt_cv_truncate_bin+:} false; then : |
| 6518 | $as_echo_n "(cached) " >&6 |
| 6519 | else |
| 6520 | printf 0123456789abcdef0123456789abcdef >conftest.i |
| 6521 | cat conftest.i conftest.i >conftest2.i |
| 6522 | lt_cv_truncate_bin= |
| 6523 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 6524 | cmp -s conftest.i conftest.out \ |
| 6525 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 6526 | fi |
| 6527 | rm -f conftest.i conftest2.i conftest.out |
| 6528 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" |
| 6529 | fi |
| 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 6531 | $as_echo "$lt_cv_truncate_bin" >&6; } |
| 6532 | |
| 6533 | |
| 6534 | |
| 6535 | |
| 6536 | |
| 6537 | |
| 6538 | |
| 6539 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 6540 | func_cc_basename () |
| 6541 | { |
| 6542 | for cc_temp in $*""; do |
| 6543 | case $cc_temp in |
| 6544 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 6545 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 6546 | \-*) ;; |
| 6547 | *) break;; |
| 6548 | esac |
| 6549 | done |
| 6550 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 6551 | } |
| 6552 | |
| 6553 | # Check whether --enable-libtool-lock was given. |
| 6554 | if test "${enable_libtool_lock+set}" = set; then : |
| 6555 | enableval=$enable_libtool_lock; |
| 6556 | fi |
| 6557 | |
| 6558 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 6559 | |
| 6560 | # Some flags need to be propagated to the compiler or linker for good |
| 6561 | # libtool support. |
| 6562 | case $host in |
| 6563 | ia64-*-hpux*) |
| 6564 | # Find out what ABI is being produced by ac_compile, and set mode |
| 6565 | # options accordingly. |
| 6566 | echo 'int i;' > conftest.$ac_ext |
| 6567 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6568 | (eval $ac_compile) 2>&5 |
| 6569 | ac_status=$? |
| 6570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6571 | test $ac_status = 0; }; then |
| 6572 | case `/usr/bin/file conftest.$ac_objext` in |
| 6573 | *ELF-32*) |
| 6574 | HPUX_IA64_MODE=32 |
| 6575 | ;; |
| 6576 | *ELF-64*) |
| 6577 | HPUX_IA64_MODE=64 |
| 6578 | ;; |
| 6579 | esac |
| 6580 | fi |
| 6581 | rm -rf conftest* |
| 6582 | ;; |
| 6583 | *-*-irix6*) |
| 6584 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6585 | # options accordingly. |
| 6586 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6587 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6588 | (eval $ac_compile) 2>&5 |
| 6589 | ac_status=$? |
| 6590 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6591 | test $ac_status = 0; }; then |
| 6592 | if test yes = "$lt_cv_prog_gnu_ld"; then |
| 6593 | case `/usr/bin/file conftest.$ac_objext` in |
| 6594 | *32-bit*) |
| 6595 | LD="${LD-ld} -melf32bsmip" |
| 6596 | ;; |
| 6597 | *N32*) |
| 6598 | LD="${LD-ld} -melf32bmipn32" |
| 6599 | ;; |
| 6600 | *64-bit*) |
| 6601 | LD="${LD-ld} -melf64bmip" |
| 6602 | ;; |
| 6603 | esac |
| 6604 | else |
| 6605 | case `/usr/bin/file conftest.$ac_objext` in |
| 6606 | *32-bit*) |
| 6607 | LD="${LD-ld} -32" |
| 6608 | ;; |
| 6609 | *N32*) |
| 6610 | LD="${LD-ld} -n32" |
| 6611 | ;; |
| 6612 | *64-bit*) |
| 6613 | LD="${LD-ld} -64" |
| 6614 | ;; |
| 6615 | esac |
| 6616 | fi |
| 6617 | fi |
| 6618 | rm -rf conftest* |
| 6619 | ;; |
| 6620 | |
| 6621 | mips64*-*linux*) |
| 6622 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6623 | # options accordingly. |
| 6624 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6625 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6626 | (eval $ac_compile) 2>&5 |
| 6627 | ac_status=$? |
| 6628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6629 | test $ac_status = 0; }; then |
| 6630 | emul=elf |
| 6631 | case `/usr/bin/file conftest.$ac_objext` in |
| 6632 | *32-bit*) |
| 6633 | emul="${emul}32" |
| 6634 | ;; |
| 6635 | *64-bit*) |
| 6636 | emul="${emul}64" |
| 6637 | ;; |
| 6638 | esac |
| 6639 | case `/usr/bin/file conftest.$ac_objext` in |
| 6640 | *MSB*) |
| 6641 | emul="${emul}btsmip" |
| 6642 | ;; |
| 6643 | *LSB*) |
| 6644 | emul="${emul}ltsmip" |
| 6645 | ;; |
| 6646 | esac |
| 6647 | case `/usr/bin/file conftest.$ac_objext` in |
| 6648 | *N32*) |
| 6649 | emul="${emul}n32" |
| 6650 | ;; |
| 6651 | esac |
| 6652 | LD="${LD-ld} -m $emul" |
| 6653 | fi |
| 6654 | rm -rf conftest* |
| 6655 | ;; |
| 6656 | |
| 6657 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 6658 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6659 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6660 | # options accordingly. Note that the listed cases only cover the |
| 6661 | # situations where additional linker options are needed (such as when |
| 6662 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 6663 | # vice versa); the common cases where no linker options are needed do |
| 6664 | # not appear in the list. |
| 6665 | echo 'int i;' > conftest.$ac_ext |
| 6666 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6667 | (eval $ac_compile) 2>&5 |
| 6668 | ac_status=$? |
| 6669 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6670 | test $ac_status = 0; }; then |
| 6671 | case `/usr/bin/file conftest.o` in |
| 6672 | *32-bit*) |
| 6673 | case $host in |
| 6674 | x86_64-*kfreebsd*-gnu) |
| 6675 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6676 | ;; |
| 6677 | x86_64-*linux*) |
| 6678 | case `/usr/bin/file conftest.o` in |
| 6679 | *x86-64*) |
| 6680 | LD="${LD-ld} -m elf32_x86_64" |
| 6681 | ;; |
| 6682 | *) |
| 6683 | LD="${LD-ld} -m elf_i386" |
| 6684 | ;; |
| 6685 | esac |
| 6686 | ;; |
| 6687 | powerpc64le-*linux*) |
| 6688 | LD="${LD-ld} -m elf32lppclinux" |
| 6689 | ;; |
| 6690 | powerpc64-*linux*) |
| 6691 | LD="${LD-ld} -m elf32ppclinux" |
| 6692 | ;; |
| 6693 | s390x-*linux*) |
| 6694 | LD="${LD-ld} -m elf_s390" |
| 6695 | ;; |
| 6696 | sparc64-*linux*) |
| 6697 | LD="${LD-ld} -m elf32_sparc" |
| 6698 | ;; |
| 6699 | esac |
| 6700 | ;; |
| 6701 | *64-bit*) |
| 6702 | case $host in |
| 6703 | x86_64-*kfreebsd*-gnu) |
| 6704 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6705 | ;; |
| 6706 | x86_64-*linux*) |
| 6707 | LD="${LD-ld} -m elf_x86_64" |
| 6708 | ;; |
| 6709 | powerpcle-*linux*) |
| 6710 | LD="${LD-ld} -m elf64lppc" |
| 6711 | ;; |
| 6712 | powerpc-*linux*) |
| 6713 | LD="${LD-ld} -m elf64ppc" |
| 6714 | ;; |
| 6715 | s390*-*linux*|s390*-*tpf*) |
| 6716 | LD="${LD-ld} -m elf64_s390" |
| 6717 | ;; |
| 6718 | sparc*-*linux*) |
| 6719 | LD="${LD-ld} -m elf64_sparc" |
| 6720 | ;; |
| 6721 | esac |
| 6722 | ;; |
| 6723 | esac |
| 6724 | fi |
| 6725 | rm -rf conftest* |
| 6726 | ;; |
| 6727 | |
| 6728 | *-*-sco3.2v5*) |
| 6729 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6730 | SAVE_CFLAGS=$CFLAGS |
| 6731 | CFLAGS="$CFLAGS -belf" |
| 6732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6733 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6734 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 6735 | $as_echo_n "(cached) " >&6 |
| 6736 | else |
| 6737 | ac_ext=c |
| 6738 | ac_cpp='$CPP $CPPFLAGS' |
| 6739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6742 | |
| 6743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6744 | /* end confdefs.h. */ |
| 6745 | |
| 6746 | int |
| 6747 | main () |
| 6748 | { |
| 6749 | |
| 6750 | ; |
| 6751 | return 0; |
| 6752 | } |
| 6753 | _ACEOF |
| 6754 | if ac_fn_c_try_link "$LINENO"; then : |
| 6755 | lt_cv_cc_needs_belf=yes |
| 6756 | else |
| 6757 | lt_cv_cc_needs_belf=no |
| 6758 | fi |
| 6759 | rm -f core conftest.err conftest.$ac_objext \ |
| 6760 | conftest$ac_exeext conftest.$ac_ext |
| 6761 | ac_ext=c |
| 6762 | ac_cpp='$CPP $CPPFLAGS' |
| 6763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6766 | |
| 6767 | fi |
| 6768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6769 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6770 | if test yes != "$lt_cv_cc_needs_belf"; then |
| 6771 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6772 | CFLAGS=$SAVE_CFLAGS |
| 6773 | fi |
| 6774 | ;; |
| 6775 | *-*solaris*) |
| 6776 | # Find out what ABI is being produced by ac_compile, and set linker |
| 6777 | # options accordingly. |
| 6778 | echo 'int i;' > conftest.$ac_ext |
| 6779 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6780 | (eval $ac_compile) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6783 | test $ac_status = 0; }; then |
| 6784 | case `/usr/bin/file conftest.o` in |
| 6785 | *64-bit*) |
| 6786 | case $lt_cv_prog_gnu_ld in |
| 6787 | yes*) |
| 6788 | case $host in |
| 6789 | i?86-*-solaris*|x86_64-*-solaris*) |
| 6790 | LD="${LD-ld} -m elf_x86_64" |
| 6791 | ;; |
| 6792 | sparc*-*-solaris*) |
| 6793 | LD="${LD-ld} -m elf64_sparc" |
| 6794 | ;; |
| 6795 | esac |
| 6796 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 6797 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 6798 | LD=${LD-ld}_sol2 |
| 6799 | fi |
| 6800 | ;; |
| 6801 | *) |
| 6802 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6803 | LD="${LD-ld} -64" |
| 6804 | fi |
| 6805 | ;; |
| 6806 | esac |
| 6807 | ;; |
| 6808 | esac |
| 6809 | fi |
| 6810 | rm -rf conftest* |
| 6811 | ;; |
| 6812 | esac |
| 6813 | |
| 6814 | need_locks=$enable_libtool_lock |
| 6815 | |
| 6816 | if test -n "$ac_tool_prefix"; then |
| 6817 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 6818 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6820 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6821 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 6822 | $as_echo_n "(cached) " >&6 |
| 6823 | else |
| 6824 | if test -n "$MANIFEST_TOOL"; then |
| 6825 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 6826 | else |
| 6827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6828 | for as_dir in $PATH |
| 6829 | do |
| 6830 | IFS=$as_save_IFS |
| 6831 | test -z "$as_dir" && as_dir=. |
| 6832 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6834 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 6835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6836 | break 2 |
| 6837 | fi |
| 6838 | done |
| 6839 | done |
| 6840 | IFS=$as_save_IFS |
| 6841 | |
| 6842 | fi |
| 6843 | fi |
| 6844 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 6845 | if test -n "$MANIFEST_TOOL"; then |
| 6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 6847 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 6848 | else |
| 6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6850 | $as_echo "no" >&6; } |
| 6851 | fi |
| 6852 | |
| 6853 | |
| 6854 | fi |
| 6855 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 6856 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 6857 | # Extract the first word of "mt", so it can be a program name with args. |
| 6858 | set dummy mt; ac_word=$2 |
| 6859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6860 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6861 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 6862 | $as_echo_n "(cached) " >&6 |
| 6863 | else |
| 6864 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6865 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 6866 | else |
| 6867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6868 | for as_dir in $PATH |
| 6869 | do |
| 6870 | IFS=$as_save_IFS |
| 6871 | test -z "$as_dir" && as_dir=. |
| 6872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6874 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 6875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6876 | break 2 |
| 6877 | fi |
| 6878 | done |
| 6879 | done |
| 6880 | IFS=$as_save_IFS |
| 6881 | |
| 6882 | fi |
| 6883 | fi |
| 6884 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 6885 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 6886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 6887 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 6888 | else |
| 6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6890 | $as_echo "no" >&6; } |
| 6891 | fi |
| 6892 | |
| 6893 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 6894 | MANIFEST_TOOL=":" |
| 6895 | else |
| 6896 | case $cross_compiling:$ac_tool_warned in |
| 6897 | yes:) |
| 6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6900 | ac_tool_warned=yes ;; |
| 6901 | esac |
| 6902 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 6903 | fi |
| 6904 | else |
| 6905 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 6906 | fi |
| 6907 | |
| 6908 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 6910 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 6911 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 6912 | $as_echo_n "(cached) " >&6 |
| 6913 | else |
| 6914 | lt_cv_path_mainfest_tool=no |
| 6915 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 6916 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 6917 | cat conftest.err >&5 |
| 6918 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 6919 | lt_cv_path_mainfest_tool=yes |
| 6920 | fi |
| 6921 | rm -f conftest* |
| 6922 | fi |
| 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 6924 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 6925 | if test yes != "$lt_cv_path_mainfest_tool"; then |
| 6926 | MANIFEST_TOOL=: |
| 6927 | fi |
| 6928 | |
| 6929 | |
| 6930 | |
| 6931 | |
| 6932 | |
| 6933 | |
| 6934 | case $host_os in |
| 6935 | rhapsody* | darwin*) |
| 6936 | if test -n "$ac_tool_prefix"; then |
| 6937 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6938 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6940 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6941 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 6942 | $as_echo_n "(cached) " >&6 |
| 6943 | else |
| 6944 | if test -n "$DSYMUTIL"; then |
| 6945 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6946 | else |
| 6947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6948 | for as_dir in $PATH |
| 6949 | do |
| 6950 | IFS=$as_save_IFS |
| 6951 | test -z "$as_dir" && as_dir=. |
| 6952 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6953 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6954 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6955 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6956 | break 2 |
| 6957 | fi |
| 6958 | done |
| 6959 | done |
| 6960 | IFS=$as_save_IFS |
| 6961 | |
| 6962 | fi |
| 6963 | fi |
| 6964 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6965 | if test -n "$DSYMUTIL"; then |
| 6966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6967 | $as_echo "$DSYMUTIL" >&6; } |
| 6968 | else |
| 6969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6970 | $as_echo "no" >&6; } |
| 6971 | fi |
| 6972 | |
| 6973 | |
| 6974 | fi |
| 6975 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6976 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6977 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6978 | set dummy dsymutil; ac_word=$2 |
| 6979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6980 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6981 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 6982 | $as_echo_n "(cached) " >&6 |
| 6983 | else |
| 6984 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6985 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6986 | else |
| 6987 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6988 | for as_dir in $PATH |
| 6989 | do |
| 6990 | IFS=$as_save_IFS |
| 6991 | test -z "$as_dir" && as_dir=. |
| 6992 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6993 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6994 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6995 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6996 | break 2 |
| 6997 | fi |
| 6998 | done |
| 6999 | done |
| 7000 | IFS=$as_save_IFS |
| 7001 | |
| 7002 | fi |
| 7003 | fi |
| 7004 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7005 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7007 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7008 | else |
| 7009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7010 | $as_echo "no" >&6; } |
| 7011 | fi |
| 7012 | |
| 7013 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7014 | DSYMUTIL=":" |
| 7015 | else |
| 7016 | case $cross_compiling:$ac_tool_warned in |
| 7017 | yes:) |
| 7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7019 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7020 | ac_tool_warned=yes ;; |
| 7021 | esac |
| 7022 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7023 | fi |
| 7024 | else |
| 7025 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7026 | fi |
| 7027 | |
| 7028 | if test -n "$ac_tool_prefix"; then |
| 7029 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7030 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7032 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7033 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7034 | $as_echo_n "(cached) " >&6 |
| 7035 | else |
| 7036 | if test -n "$NMEDIT"; then |
| 7037 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7038 | else |
| 7039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7040 | for as_dir in $PATH |
| 7041 | do |
| 7042 | IFS=$as_save_IFS |
| 7043 | test -z "$as_dir" && as_dir=. |
| 7044 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7046 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7048 | break 2 |
| 7049 | fi |
| 7050 | done |
| 7051 | done |
| 7052 | IFS=$as_save_IFS |
| 7053 | |
| 7054 | fi |
| 7055 | fi |
| 7056 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7057 | if test -n "$NMEDIT"; then |
| 7058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7059 | $as_echo "$NMEDIT" >&6; } |
| 7060 | else |
| 7061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7062 | $as_echo "no" >&6; } |
| 7063 | fi |
| 7064 | |
| 7065 | |
| 7066 | fi |
| 7067 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7068 | ac_ct_NMEDIT=$NMEDIT |
| 7069 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7070 | set dummy nmedit; ac_word=$2 |
| 7071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7072 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7073 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7074 | $as_echo_n "(cached) " >&6 |
| 7075 | else |
| 7076 | if test -n "$ac_ct_NMEDIT"; then |
| 7077 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7078 | else |
| 7079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7080 | for as_dir in $PATH |
| 7081 | do |
| 7082 | IFS=$as_save_IFS |
| 7083 | test -z "$as_dir" && as_dir=. |
| 7084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7086 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7088 | break 2 |
| 7089 | fi |
| 7090 | done |
| 7091 | done |
| 7092 | IFS=$as_save_IFS |
| 7093 | |
| 7094 | fi |
| 7095 | fi |
| 7096 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7097 | if test -n "$ac_ct_NMEDIT"; then |
| 7098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7099 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7100 | else |
| 7101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7102 | $as_echo "no" >&6; } |
| 7103 | fi |
| 7104 | |
| 7105 | if test "x$ac_ct_NMEDIT" = x; then |
| 7106 | NMEDIT=":" |
| 7107 | else |
| 7108 | case $cross_compiling:$ac_tool_warned in |
| 7109 | yes:) |
| 7110 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7111 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7112 | ac_tool_warned=yes ;; |
| 7113 | esac |
| 7114 | NMEDIT=$ac_ct_NMEDIT |
| 7115 | fi |
| 7116 | else |
| 7117 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7118 | fi |
| 7119 | |
| 7120 | if test -n "$ac_tool_prefix"; then |
| 7121 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7122 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7124 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7125 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7126 | $as_echo_n "(cached) " >&6 |
| 7127 | else |
| 7128 | if test -n "$LIPO"; then |
| 7129 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7130 | else |
| 7131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7132 | for as_dir in $PATH |
| 7133 | do |
| 7134 | IFS=$as_save_IFS |
| 7135 | test -z "$as_dir" && as_dir=. |
| 7136 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7138 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7140 | break 2 |
| 7141 | fi |
| 7142 | done |
| 7143 | done |
| 7144 | IFS=$as_save_IFS |
| 7145 | |
| 7146 | fi |
| 7147 | fi |
| 7148 | LIPO=$ac_cv_prog_LIPO |
| 7149 | if test -n "$LIPO"; then |
| 7150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7151 | $as_echo "$LIPO" >&6; } |
| 7152 | else |
| 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7154 | $as_echo "no" >&6; } |
| 7155 | fi |
| 7156 | |
| 7157 | |
| 7158 | fi |
| 7159 | if test -z "$ac_cv_prog_LIPO"; then |
| 7160 | ac_ct_LIPO=$LIPO |
| 7161 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7162 | set dummy lipo; ac_word=$2 |
| 7163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7164 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7165 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7166 | $as_echo_n "(cached) " >&6 |
| 7167 | else |
| 7168 | if test -n "$ac_ct_LIPO"; then |
| 7169 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7170 | else |
| 7171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7172 | for as_dir in $PATH |
| 7173 | do |
| 7174 | IFS=$as_save_IFS |
| 7175 | test -z "$as_dir" && as_dir=. |
| 7176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7178 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7180 | break 2 |
| 7181 | fi |
| 7182 | done |
| 7183 | done |
| 7184 | IFS=$as_save_IFS |
| 7185 | |
| 7186 | fi |
| 7187 | fi |
| 7188 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7189 | if test -n "$ac_ct_LIPO"; then |
| 7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7191 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7192 | else |
| 7193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7194 | $as_echo "no" >&6; } |
| 7195 | fi |
| 7196 | |
| 7197 | if test "x$ac_ct_LIPO" = x; then |
| 7198 | LIPO=":" |
| 7199 | else |
| 7200 | case $cross_compiling:$ac_tool_warned in |
| 7201 | yes:) |
| 7202 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7203 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7204 | ac_tool_warned=yes ;; |
| 7205 | esac |
| 7206 | LIPO=$ac_ct_LIPO |
| 7207 | fi |
| 7208 | else |
| 7209 | LIPO="$ac_cv_prog_LIPO" |
| 7210 | fi |
| 7211 | |
| 7212 | if test -n "$ac_tool_prefix"; then |
| 7213 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7214 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7216 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7217 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7218 | $as_echo_n "(cached) " >&6 |
| 7219 | else |
| 7220 | if test -n "$OTOOL"; then |
| 7221 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7222 | else |
| 7223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7224 | for as_dir in $PATH |
| 7225 | do |
| 7226 | IFS=$as_save_IFS |
| 7227 | test -z "$as_dir" && as_dir=. |
| 7228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7229 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7230 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7232 | break 2 |
| 7233 | fi |
| 7234 | done |
| 7235 | done |
| 7236 | IFS=$as_save_IFS |
| 7237 | |
| 7238 | fi |
| 7239 | fi |
| 7240 | OTOOL=$ac_cv_prog_OTOOL |
| 7241 | if test -n "$OTOOL"; then |
| 7242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7243 | $as_echo "$OTOOL" >&6; } |
| 7244 | else |
| 7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7246 | $as_echo "no" >&6; } |
| 7247 | fi |
| 7248 | |
| 7249 | |
| 7250 | fi |
| 7251 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7252 | ac_ct_OTOOL=$OTOOL |
| 7253 | # Extract the first word of "otool", so it can be a program name with args. |
| 7254 | set dummy otool; ac_word=$2 |
| 7255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7256 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7257 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7258 | $as_echo_n "(cached) " >&6 |
| 7259 | else |
| 7260 | if test -n "$ac_ct_OTOOL"; then |
| 7261 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7262 | else |
| 7263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7264 | for as_dir in $PATH |
| 7265 | do |
| 7266 | IFS=$as_save_IFS |
| 7267 | test -z "$as_dir" && as_dir=. |
| 7268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7269 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7270 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7271 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7272 | break 2 |
| 7273 | fi |
| 7274 | done |
| 7275 | done |
| 7276 | IFS=$as_save_IFS |
| 7277 | |
| 7278 | fi |
| 7279 | fi |
| 7280 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7281 | if test -n "$ac_ct_OTOOL"; then |
| 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7283 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7284 | else |
| 7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7286 | $as_echo "no" >&6; } |
| 7287 | fi |
| 7288 | |
| 7289 | if test "x$ac_ct_OTOOL" = x; then |
| 7290 | OTOOL=":" |
| 7291 | else |
| 7292 | case $cross_compiling:$ac_tool_warned in |
| 7293 | yes:) |
| 7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7295 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7296 | ac_tool_warned=yes ;; |
| 7297 | esac |
| 7298 | OTOOL=$ac_ct_OTOOL |
| 7299 | fi |
| 7300 | else |
| 7301 | OTOOL="$ac_cv_prog_OTOOL" |
| 7302 | fi |
| 7303 | |
| 7304 | if test -n "$ac_tool_prefix"; then |
| 7305 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7306 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7308 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7309 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7310 | $as_echo_n "(cached) " >&6 |
| 7311 | else |
| 7312 | if test -n "$OTOOL64"; then |
| 7313 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7314 | else |
| 7315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7316 | for as_dir in $PATH |
| 7317 | do |
| 7318 | IFS=$as_save_IFS |
| 7319 | test -z "$as_dir" && as_dir=. |
| 7320 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7321 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7322 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7323 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7324 | break 2 |
| 7325 | fi |
| 7326 | done |
| 7327 | done |
| 7328 | IFS=$as_save_IFS |
| 7329 | |
| 7330 | fi |
| 7331 | fi |
| 7332 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7333 | if test -n "$OTOOL64"; then |
| 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7335 | $as_echo "$OTOOL64" >&6; } |
| 7336 | else |
| 7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7338 | $as_echo "no" >&6; } |
| 7339 | fi |
| 7340 | |
| 7341 | |
| 7342 | fi |
| 7343 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7344 | ac_ct_OTOOL64=$OTOOL64 |
| 7345 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7346 | set dummy otool64; ac_word=$2 |
| 7347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7348 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7349 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7350 | $as_echo_n "(cached) " >&6 |
| 7351 | else |
| 7352 | if test -n "$ac_ct_OTOOL64"; then |
| 7353 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7354 | else |
| 7355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7356 | for as_dir in $PATH |
| 7357 | do |
| 7358 | IFS=$as_save_IFS |
| 7359 | test -z "$as_dir" && as_dir=. |
| 7360 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7362 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7364 | break 2 |
| 7365 | fi |
| 7366 | done |
| 7367 | done |
| 7368 | IFS=$as_save_IFS |
| 7369 | |
| 7370 | fi |
| 7371 | fi |
| 7372 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7373 | if test -n "$ac_ct_OTOOL64"; then |
| 7374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7375 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7376 | else |
| 7377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7378 | $as_echo "no" >&6; } |
| 7379 | fi |
| 7380 | |
| 7381 | if test "x$ac_ct_OTOOL64" = x; then |
| 7382 | OTOOL64=":" |
| 7383 | else |
| 7384 | case $cross_compiling:$ac_tool_warned in |
| 7385 | yes:) |
| 7386 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7387 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7388 | ac_tool_warned=yes ;; |
| 7389 | esac |
| 7390 | OTOOL64=$ac_ct_OTOOL64 |
| 7391 | fi |
| 7392 | else |
| 7393 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7394 | fi |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
| 7399 | |
| 7400 | |
| 7401 | |
| 7402 | |
| 7403 | |
| 7404 | |
| 7405 | |
| 7406 | |
| 7407 | |
| 7408 | |
| 7409 | |
| 7410 | |
| 7411 | |
| 7412 | |
| 7413 | |
| 7414 | |
| 7415 | |
| 7416 | |
| 7417 | |
| 7418 | |
| 7419 | |
| 7420 | |
| 7421 | |
| 7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7423 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7424 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7425 | $as_echo_n "(cached) " >&6 |
| 7426 | else |
| 7427 | lt_cv_apple_cc_single_mod=no |
| 7428 | if test -z "$LT_MULTI_MODULE"; then |
| 7429 | # By default we will add the -single_module flag. You can override |
| 7430 | # by either setting the environment variable LT_MULTI_MODULE |
| 7431 | # non-empty at configure time, or by adding -multi_module to the |
| 7432 | # link flags. |
| 7433 | rm -rf libconftest.dylib* |
| 7434 | echo "int foo(void){return 1;}" > conftest.c |
| 7435 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7436 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7437 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7438 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7439 | _lt_result=$? |
| 7440 | # If there is a non-empty error log, and "single_module" |
| 7441 | # appears in it, assume the flag caused a linker warning |
| 7442 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7443 | cat conftest.err >&5 |
| 7444 | # Otherwise, if the output was created with a 0 exit code from |
| 7445 | # the compiler, it worked. |
| 7446 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 7447 | lt_cv_apple_cc_single_mod=yes |
| 7448 | else |
| 7449 | cat conftest.err >&5 |
| 7450 | fi |
| 7451 | rm -rf libconftest.dylib* |
| 7452 | rm -f conftest.* |
| 7453 | fi |
| 7454 | fi |
| 7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7456 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7457 | |
| 7458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7459 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7460 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7461 | $as_echo_n "(cached) " >&6 |
| 7462 | else |
| 7463 | lt_cv_ld_exported_symbols_list=no |
| 7464 | save_LDFLAGS=$LDFLAGS |
| 7465 | echo "_main" > conftest.sym |
| 7466 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7468 | /* end confdefs.h. */ |
| 7469 | |
| 7470 | int |
| 7471 | main () |
| 7472 | { |
| 7473 | |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
| 7478 | if ac_fn_c_try_link "$LINENO"; then : |
| 7479 | lt_cv_ld_exported_symbols_list=yes |
| 7480 | else |
| 7481 | lt_cv_ld_exported_symbols_list=no |
| 7482 | fi |
| 7483 | rm -f core conftest.err conftest.$ac_objext \ |
| 7484 | conftest$ac_exeext conftest.$ac_ext |
| 7485 | LDFLAGS=$save_LDFLAGS |
| 7486 | |
| 7487 | fi |
| 7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7489 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7490 | |
| 7491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7492 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7493 | if ${lt_cv_ld_force_load+:} false; then : |
| 7494 | $as_echo_n "(cached) " >&6 |
| 7495 | else |
| 7496 | lt_cv_ld_force_load=no |
| 7497 | cat > conftest.c << _LT_EOF |
| 7498 | int forced_loaded() { return 2;} |
| 7499 | _LT_EOF |
| 7500 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7501 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7502 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7503 | $AR cru libconftest.a conftest.o 2>&5 |
| 7504 | echo "$RANLIB libconftest.a" >&5 |
| 7505 | $RANLIB libconftest.a 2>&5 |
| 7506 | cat > conftest.c << _LT_EOF |
| 7507 | int main() { return 0;} |
| 7508 | _LT_EOF |
| 7509 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7510 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7511 | _lt_result=$? |
| 7512 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7513 | cat conftest.err >&5 |
| 7514 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 7515 | lt_cv_ld_force_load=yes |
| 7516 | else |
| 7517 | cat conftest.err >&5 |
| 7518 | fi |
| 7519 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7520 | rm -rf conftest.dSYM |
| 7521 | |
| 7522 | fi |
| 7523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7524 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7525 | case $host_os in |
| 7526 | rhapsody* | darwin1.[012]) |
| 7527 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 7528 | darwin1.*) |
| 7529 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7530 | darwin*) # darwin 5.x on |
| 7531 | # if running on 10.5 or later, the deployment target defaults |
| 7532 | # to the OS version, if on x86, and 10.4, the deployment |
| 7533 | # target defaults to 10.4. Don't you love it? |
| 7534 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7535 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7536 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7537 | 10.[012][,.]*) |
| 7538 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 7539 | 10.*) |
| 7540 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
| 7541 | esac |
| 7542 | ;; |
| 7543 | esac |
| 7544 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 7545 | _lt_dar_single_mod='$single_module' |
| 7546 | fi |
| 7547 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 7548 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 7549 | else |
| 7550 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 7551 | fi |
| 7552 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 7553 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7554 | else |
| 7555 | _lt_dsymutil= |
| 7556 | fi |
| 7557 | ;; |
| 7558 | esac |
| 7559 | |
| 7560 | # func_munge_path_list VARIABLE PATH |
| 7561 | # ----------------------------------- |
| 7562 | # VARIABLE is name of variable containing _space_ separated list of |
| 7563 | # directories to be munged by the contents of PATH, which is string |
| 7564 | # having a format: |
| 7565 | # "DIR[:DIR]:" |
| 7566 | # string "DIR[ DIR]" will be prepended to VARIABLE |
| 7567 | # ":DIR[:DIR]" |
| 7568 | # string "DIR[ DIR]" will be appended to VARIABLE |
| 7569 | # "DIRP[:DIRP]::[DIRA:]DIRA" |
| 7570 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 7571 | # "DIRA[ DIRA]" will be appended to VARIABLE |
| 7572 | # "DIR[:DIR]" |
| 7573 | # VARIABLE will be replaced by "DIR[ DIR]" |
| 7574 | func_munge_path_list () |
| 7575 | { |
| 7576 | case x$2 in |
| 7577 | x) |
| 7578 | ;; |
| 7579 | *:) |
| 7580 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 7581 | ;; |
| 7582 | x:*) |
| 7583 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 7584 | ;; |
| 7585 | *::*) |
| 7586 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 7587 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 7588 | ;; |
| 7589 | *) |
| 7590 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 7591 | ;; |
| 7592 | esac |
| 7593 | } |
| 7594 | |
| 7595 | ac_ext=c |
| 7596 | ac_cpp='$CPP $CPPFLAGS' |
| 7597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7601 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7602 | # On Suns, sometimes $CPP names a directory. |
| 7603 | if test -n "$CPP" && test -d "$CPP"; then |
| 7604 | CPP= |
| 7605 | fi |
| 7606 | if test -z "$CPP"; then |
| 7607 | if ${ac_cv_prog_CPP+:} false; then : |
| 7608 | $as_echo_n "(cached) " >&6 |
| 7609 | else |
| 7610 | # Double quotes because CPP needs to be expanded |
| 7611 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7612 | do |
| 7613 | ac_preproc_ok=false |
| 7614 | for ac_c_preproc_warn_flag in '' yes |
| 7615 | do |
| 7616 | # Use a header file that comes with gcc, so configuring glibc |
| 7617 | # with a fresh cross-compiler works. |
| 7618 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7619 | # <limits.h> exists even on freestanding compilers. |
| 7620 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7621 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7623 | /* end confdefs.h. */ |
| 7624 | #ifdef __STDC__ |
| 7625 | # include <limits.h> |
| 7626 | #else |
| 7627 | # include <assert.h> |
| 7628 | #endif |
| 7629 | Syntax error |
| 7630 | _ACEOF |
| 7631 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7632 | |
| 7633 | else |
| 7634 | # Broken: fails on valid input. |
| 7635 | continue |
| 7636 | fi |
| 7637 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7638 | |
| 7639 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7640 | # can be detected and how. |
| 7641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7642 | /* end confdefs.h. */ |
| 7643 | #include <ac_nonexistent.h> |
| 7644 | _ACEOF |
| 7645 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7646 | # Broken: success on invalid input. |
| 7647 | continue |
| 7648 | else |
| 7649 | # Passes both tests. |
| 7650 | ac_preproc_ok=: |
| 7651 | break |
| 7652 | fi |
| 7653 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7654 | |
| 7655 | done |
| 7656 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7657 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7658 | if $ac_preproc_ok; then : |
| 7659 | break |
| 7660 | fi |
| 7661 | |
| 7662 | done |
| 7663 | ac_cv_prog_CPP=$CPP |
| 7664 | |
| 7665 | fi |
| 7666 | CPP=$ac_cv_prog_CPP |
| 7667 | else |
| 7668 | ac_cv_prog_CPP=$CPP |
| 7669 | fi |
| 7670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7671 | $as_echo "$CPP" >&6; } |
| 7672 | ac_preproc_ok=false |
| 7673 | for ac_c_preproc_warn_flag in '' yes |
| 7674 | do |
| 7675 | # Use a header file that comes with gcc, so configuring glibc |
| 7676 | # with a fresh cross-compiler works. |
| 7677 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7678 | # <limits.h> exists even on freestanding compilers. |
| 7679 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7680 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7682 | /* end confdefs.h. */ |
| 7683 | #ifdef __STDC__ |
| 7684 | # include <limits.h> |
| 7685 | #else |
| 7686 | # include <assert.h> |
| 7687 | #endif |
| 7688 | Syntax error |
| 7689 | _ACEOF |
| 7690 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7691 | |
| 7692 | else |
| 7693 | # Broken: fails on valid input. |
| 7694 | continue |
| 7695 | fi |
| 7696 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7697 | |
| 7698 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7699 | # can be detected and how. |
| 7700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7701 | /* end confdefs.h. */ |
| 7702 | #include <ac_nonexistent.h> |
| 7703 | _ACEOF |
| 7704 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7705 | # Broken: success on invalid input. |
| 7706 | continue |
| 7707 | else |
| 7708 | # Passes both tests. |
| 7709 | ac_preproc_ok=: |
| 7710 | break |
| 7711 | fi |
| 7712 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7713 | |
| 7714 | done |
| 7715 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7716 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7717 | if $ac_preproc_ok; then : |
| 7718 | |
| 7719 | else |
| 7720 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7721 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7722 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7723 | See \`config.log' for more details" "$LINENO" 5; } |
| 7724 | fi |
| 7725 | |
| 7726 | ac_ext=c |
| 7727 | ac_cpp='$CPP $CPPFLAGS' |
| 7728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7731 | |
| 7732 | |
| 7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7734 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7735 | if ${ac_cv_header_stdc+:} false; then : |
| 7736 | $as_echo_n "(cached) " >&6 |
| 7737 | else |
| 7738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7739 | /* end confdefs.h. */ |
| 7740 | #include <stdlib.h> |
| 7741 | #include <stdarg.h> |
| 7742 | #include <string.h> |
| 7743 | #include <float.h> |
| 7744 | |
| 7745 | int |
| 7746 | main () |
| 7747 | { |
| 7748 | |
| 7749 | ; |
| 7750 | return 0; |
| 7751 | } |
| 7752 | _ACEOF |
| 7753 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7754 | ac_cv_header_stdc=yes |
| 7755 | else |
| 7756 | ac_cv_header_stdc=no |
| 7757 | fi |
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7759 | |
| 7760 | if test $ac_cv_header_stdc = yes; then |
| 7761 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7762 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7763 | /* end confdefs.h. */ |
| 7764 | #include <string.h> |
| 7765 | |
| 7766 | _ACEOF |
| 7767 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7768 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7769 | |
| 7770 | else |
| 7771 | ac_cv_header_stdc=no |
| 7772 | fi |
| 7773 | rm -f conftest* |
| 7774 | |
| 7775 | fi |
| 7776 | |
| 7777 | if test $ac_cv_header_stdc = yes; then |
| 7778 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7779 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7780 | /* end confdefs.h. */ |
| 7781 | #include <stdlib.h> |
| 7782 | |
| 7783 | _ACEOF |
| 7784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7785 | $EGREP "free" >/dev/null 2>&1; then : |
| 7786 | |
| 7787 | else |
| 7788 | ac_cv_header_stdc=no |
| 7789 | fi |
| 7790 | rm -f conftest* |
| 7791 | |
| 7792 | fi |
| 7793 | |
| 7794 | if test $ac_cv_header_stdc = yes; then |
| 7795 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7796 | if test "$cross_compiling" = yes; then : |
| 7797 | : |
| 7798 | else |
| 7799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7800 | /* end confdefs.h. */ |
| 7801 | #include <ctype.h> |
| 7802 | #include <stdlib.h> |
| 7803 | #if ((' ' & 0x0FF) == 0x020) |
| 7804 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7805 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7806 | #else |
| 7807 | # define ISLOWER(c) \ |
| 7808 | (('a' <= (c) && (c) <= 'i') \ |
| 7809 | || ('j' <= (c) && (c) <= 'r') \ |
| 7810 | || ('s' <= (c) && (c) <= 'z')) |
| 7811 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7812 | #endif |
| 7813 | |
| 7814 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7815 | int |
| 7816 | main () |
| 7817 | { |
| 7818 | int i; |
| 7819 | for (i = 0; i < 256; i++) |
| 7820 | if (XOR (islower (i), ISLOWER (i)) |
| 7821 | || toupper (i) != TOUPPER (i)) |
| 7822 | return 2; |
| 7823 | return 0; |
| 7824 | } |
| 7825 | _ACEOF |
| 7826 | if ac_fn_c_try_run "$LINENO"; then : |
| 7827 | |
| 7828 | else |
| 7829 | ac_cv_header_stdc=no |
| 7830 | fi |
| 7831 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7832 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7833 | fi |
| 7834 | |
| 7835 | fi |
| 7836 | fi |
| 7837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7838 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7839 | if test $ac_cv_header_stdc = yes; then |
| 7840 | |
| 7841 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7842 | |
| 7843 | fi |
| 7844 | |
| 7845 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7846 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7847 | inttypes.h stdint.h unistd.h |
| 7848 | do : |
| 7849 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7850 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7851 | " |
| 7852 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 7853 | cat >>confdefs.h <<_ACEOF |
| 7854 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7855 | _ACEOF |
| 7856 | |
| 7857 | fi |
| 7858 | |
| 7859 | done |
| 7860 | |
| 7861 | |
| 7862 | for ac_header in dlfcn.h |
| 7863 | do : |
| 7864 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7865 | " |
| 7866 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 7867 | cat >>confdefs.h <<_ACEOF |
| 7868 | #define HAVE_DLFCN_H 1 |
| 7869 | _ACEOF |
| 7870 | |
| 7871 | fi |
| 7872 | |
| 7873 | done |
| 7874 | |
| 7875 | |
| 7876 | |
| 7877 | |
| 7878 | |
| 7879 | # Set options |
| 7880 | |
| 7881 | |
| 7882 | |
| 7883 | enable_dlopen=no |
| 7884 | |
| 7885 | |
| 7886 | enable_win32_dll=no |
| 7887 | |
| 7888 | |
| 7889 | # Check whether --enable-shared was given. |
| 7890 | if test "${enable_shared+set}" = set; then : |
| 7891 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7892 | case $enableval in |
| 7893 | yes) enable_shared=yes ;; |
| 7894 | no) enable_shared=no ;; |
| 7895 | *) |
| 7896 | enable_shared=no |
| 7897 | # Look at the argument we got. We use all the common list separators. |
| 7898 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7899 | for pkg in $enableval; do |
| 7900 | IFS=$lt_save_ifs |
| 7901 | if test "X$pkg" = "X$p"; then |
| 7902 | enable_shared=yes |
| 7903 | fi |
| 7904 | done |
| 7905 | IFS=$lt_save_ifs |
| 7906 | ;; |
| 7907 | esac |
| 7908 | else |
| 7909 | enable_shared=yes |
| 7910 | fi |
| 7911 | |
| 7912 | |
| 7913 | |
| 7914 | |
| 7915 | |
| 7916 | |
| 7917 | |
| 7918 | |
| 7919 | |
| 7920 | # Check whether --enable-static was given. |
| 7921 | if test "${enable_static+set}" = set; then : |
| 7922 | enableval=$enable_static; p=${PACKAGE-default} |
| 7923 | case $enableval in |
| 7924 | yes) enable_static=yes ;; |
| 7925 | no) enable_static=no ;; |
| 7926 | *) |
| 7927 | enable_static=no |
| 7928 | # Look at the argument we got. We use all the common list separators. |
| 7929 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7930 | for pkg in $enableval; do |
| 7931 | IFS=$lt_save_ifs |
| 7932 | if test "X$pkg" = "X$p"; then |
| 7933 | enable_static=yes |
| 7934 | fi |
| 7935 | done |
| 7936 | IFS=$lt_save_ifs |
| 7937 | ;; |
| 7938 | esac |
| 7939 | else |
| 7940 | enable_static=yes |
| 7941 | fi |
| 7942 | |
| 7943 | |
| 7944 | |
| 7945 | |
| 7946 | |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | # Check whether --with-pic was given. |
| 7953 | if test "${with_pic+set}" = set; then : |
| 7954 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 7955 | case $withval in |
| 7956 | yes|no) pic_mode=$withval ;; |
| 7957 | *) |
| 7958 | pic_mode=default |
| 7959 | # Look at the argument we got. We use all the common list separators. |
| 7960 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7961 | for lt_pkg in $withval; do |
| 7962 | IFS=$lt_save_ifs |
| 7963 | if test "X$lt_pkg" = "X$lt_p"; then |
| 7964 | pic_mode=yes |
| 7965 | fi |
| 7966 | done |
| 7967 | IFS=$lt_save_ifs |
| 7968 | ;; |
| 7969 | esac |
| 7970 | else |
| 7971 | pic_mode=default |
| 7972 | fi |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | |
| 7977 | |
| 7978 | |
| 7979 | |
| 7980 | |
| 7981 | # Check whether --enable-fast-install was given. |
| 7982 | if test "${enable_fast_install+set}" = set; then : |
| 7983 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7984 | case $enableval in |
| 7985 | yes) enable_fast_install=yes ;; |
| 7986 | no) enable_fast_install=no ;; |
| 7987 | *) |
| 7988 | enable_fast_install=no |
| 7989 | # Look at the argument we got. We use all the common list separators. |
| 7990 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 7991 | for pkg in $enableval; do |
| 7992 | IFS=$lt_save_ifs |
| 7993 | if test "X$pkg" = "X$p"; then |
| 7994 | enable_fast_install=yes |
| 7995 | fi |
| 7996 | done |
| 7997 | IFS=$lt_save_ifs |
| 7998 | ;; |
| 7999 | esac |
| 8000 | else |
| 8001 | enable_fast_install=yes |
| 8002 | fi |
| 8003 | |
| 8004 | |
| 8005 | |
| 8006 | |
| 8007 | |
| 8008 | |
| 8009 | |
| 8010 | |
| 8011 | shared_archive_member_spec= |
| 8012 | case $host,$enable_shared in |
| 8013 | power*-*-aix[5-9]*,yes) |
| 8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 8015 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } |
| 8016 | |
| 8017 | # Check whether --with-aix-soname was given. |
| 8018 | if test "${with_aix_soname+set}" = set; then : |
| 8019 | withval=$with_aix_soname; case $withval in |
| 8020 | aix|svr4|both) |
| 8021 | ;; |
| 8022 | *) |
| 8023 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 8024 | ;; |
| 8025 | esac |
| 8026 | lt_cv_with_aix_soname=$with_aix_soname |
| 8027 | else |
| 8028 | if ${lt_cv_with_aix_soname+:} false; then : |
| 8029 | $as_echo_n "(cached) " >&6 |
| 8030 | else |
| 8031 | lt_cv_with_aix_soname=aix |
| 8032 | fi |
| 8033 | |
| 8034 | with_aix_soname=$lt_cv_with_aix_soname |
| 8035 | fi |
| 8036 | |
| 8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 8038 | $as_echo "$with_aix_soname" >&6; } |
| 8039 | if test aix != "$with_aix_soname"; then |
| 8040 | # For the AIX way of multilib, we name the shared archive member |
| 8041 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 8042 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 8043 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 8044 | # the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 8045 | if test 64 = "${OBJECT_MODE-32}"; then |
| 8046 | shared_archive_member_spec=shr_64 |
| 8047 | else |
| 8048 | shared_archive_member_spec=shr |
| 8049 | fi |
| 8050 | fi |
| 8051 | ;; |
| 8052 | *) |
| 8053 | with_aix_soname=aix |
| 8054 | ;; |
| 8055 | esac |
| 8056 | |
| 8057 | |
| 8058 | |
| 8059 | |
| 8060 | |
| 8061 | |
| 8062 | |
| 8063 | |
| 8064 | |
| 8065 | |
| 8066 | # This can be used to rebuild libtool when needed |
| 8067 | LIBTOOL_DEPS=$ltmain |
| 8068 | |
| 8069 | # Always use our own libtool. |
| 8070 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8071 | |
| 8072 | |
| 8073 | |
| 8074 | |
| 8075 | |
| 8076 | |
| 8077 | |
| 8078 | |
| 8079 | |
| 8080 | |
| 8081 | |
| 8082 | |
| 8083 | |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
| 8095 | |
| 8096 | |
| 8097 | |
| 8098 | |
| 8099 | |
| 8100 | |
| 8101 | test -z "$LN_S" && LN_S="ln -s" |
| 8102 | |
| 8103 | |
| 8104 | |
| 8105 | |
| 8106 | |
| 8107 | |
| 8108 | |
| 8109 | |
| 8110 | |
| 8111 | |
| 8112 | |
| 8113 | |
| 8114 | |
| 8115 | |
| 8116 | if test -n "${ZSH_VERSION+set}"; then |
| 8117 | setopt NO_GLOB_SUBST |
| 8118 | fi |
| 8119 | |
| 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8121 | $as_echo_n "checking for objdir... " >&6; } |
| 8122 | if ${lt_cv_objdir+:} false; then : |
| 8123 | $as_echo_n "(cached) " >&6 |
| 8124 | else |
| 8125 | rm -f .libs 2>/dev/null |
| 8126 | mkdir .libs 2>/dev/null |
| 8127 | if test -d .libs; then |
| 8128 | lt_cv_objdir=.libs |
| 8129 | else |
| 8130 | # MS-DOS does not allow filenames that begin with a dot. |
| 8131 | lt_cv_objdir=_libs |
| 8132 | fi |
| 8133 | rmdir .libs 2>/dev/null |
| 8134 | fi |
| 8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8136 | $as_echo "$lt_cv_objdir" >&6; } |
| 8137 | objdir=$lt_cv_objdir |
| 8138 | |
| 8139 | |
| 8140 | |
| 8141 | |
| 8142 | |
| 8143 | cat >>confdefs.h <<_ACEOF |
| 8144 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8145 | _ACEOF |
| 8146 | |
| 8147 | |
| 8148 | |
| 8149 | |
| 8150 | case $host_os in |
| 8151 | aix3*) |
| 8152 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8153 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8154 | # vanish in a puff of smoke. |
| 8155 | if test set != "${COLLECT_NAMES+set}"; then |
| 8156 | COLLECT_NAMES= |
| 8157 | export COLLECT_NAMES |
| 8158 | fi |
| 8159 | ;; |
| 8160 | esac |
| 8161 | |
| 8162 | # Global variables: |
| 8163 | ofile=libtool |
| 8164 | can_build_shared=yes |
| 8165 | |
| 8166 | # All known linkers require a '.a' archive for static linking (except MSVC, |
| 8167 | # which needs '.lib'). |
| 8168 | libext=a |
| 8169 | |
| 8170 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 8171 | |
| 8172 | old_CC=$CC |
| 8173 | old_CFLAGS=$CFLAGS |
| 8174 | |
| 8175 | # Set sane defaults for various variables |
| 8176 | test -z "$CC" && CC=cc |
| 8177 | test -z "$LTCC" && LTCC=$CC |
| 8178 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8179 | test -z "$LD" && LD=ld |
| 8180 | test -z "$ac_objext" && ac_objext=o |
| 8181 | |
| 8182 | func_cc_basename $compiler |
| 8183 | cc_basename=$func_cc_basename_result |
| 8184 | |
| 8185 | |
| 8186 | # Only perform the check for file, if the check method requires it |
| 8187 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8188 | case $deplibs_check_method in |
| 8189 | file_magic*) |
| 8190 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8192 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8193 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8194 | $as_echo_n "(cached) " >&6 |
| 8195 | else |
| 8196 | case $MAGIC_CMD in |
| 8197 | [\\/*] | ?:[\\/]*) |
| 8198 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8199 | ;; |
| 8200 | *) |
| 8201 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8202 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8203 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8204 | for ac_dir in $ac_dummy; do |
| 8205 | IFS=$lt_save_ifs |
| 8206 | test -z "$ac_dir" && ac_dir=. |
| 8207 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 8208 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 8209 | if test -n "$file_magic_test_file"; then |
| 8210 | case $deplibs_check_method in |
| 8211 | "file_magic "*) |
| 8212 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8213 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8214 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8215 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8216 | : |
| 8217 | else |
| 8218 | cat <<_LT_EOF 1>&2 |
| 8219 | |
| 8220 | *** Warning: the command libtool uses to detect shared libraries, |
| 8221 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8222 | *** The result is that libtool may fail to recognize shared libraries |
| 8223 | *** as such. This will affect the creation of libtool libraries that |
| 8224 | *** depend on shared libraries, but programs linked with such libtool |
| 8225 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8226 | *** may want to report the problem to your system manager and/or to |
| 8227 | *** bug-libtool@gnu.org |
| 8228 | |
| 8229 | _LT_EOF |
| 8230 | fi ;; |
| 8231 | esac |
| 8232 | fi |
| 8233 | break |
| 8234 | fi |
| 8235 | done |
| 8236 | IFS=$lt_save_ifs |
| 8237 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8238 | ;; |
| 8239 | esac |
| 8240 | fi |
| 8241 | |
| 8242 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8243 | if test -n "$MAGIC_CMD"; then |
| 8244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8245 | $as_echo "$MAGIC_CMD" >&6; } |
| 8246 | else |
| 8247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8248 | $as_echo "no" >&6; } |
| 8249 | fi |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8256 | if test -n "$ac_tool_prefix"; then |
| 8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8258 | $as_echo_n "checking for file... " >&6; } |
| 8259 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8260 | $as_echo_n "(cached) " >&6 |
| 8261 | else |
| 8262 | case $MAGIC_CMD in |
| 8263 | [\\/*] | ?:[\\/]*) |
| 8264 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 8265 | ;; |
| 8266 | *) |
| 8267 | lt_save_MAGIC_CMD=$MAGIC_CMD |
| 8268 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 8269 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8270 | for ac_dir in $ac_dummy; do |
| 8271 | IFS=$lt_save_ifs |
| 8272 | test -z "$ac_dir" && ac_dir=. |
| 8273 | if test -f "$ac_dir/file"; then |
| 8274 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 8275 | if test -n "$file_magic_test_file"; then |
| 8276 | case $deplibs_check_method in |
| 8277 | "file_magic "*) |
| 8278 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8279 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8280 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8281 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8282 | : |
| 8283 | else |
| 8284 | cat <<_LT_EOF 1>&2 |
| 8285 | |
| 8286 | *** Warning: the command libtool uses to detect shared libraries, |
| 8287 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8288 | *** The result is that libtool may fail to recognize shared libraries |
| 8289 | *** as such. This will affect the creation of libtool libraries that |
| 8290 | *** depend on shared libraries, but programs linked with such libtool |
| 8291 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8292 | *** may want to report the problem to your system manager and/or to |
| 8293 | *** bug-libtool@gnu.org |
| 8294 | |
| 8295 | _LT_EOF |
| 8296 | fi ;; |
| 8297 | esac |
| 8298 | fi |
| 8299 | break |
| 8300 | fi |
| 8301 | done |
| 8302 | IFS=$lt_save_ifs |
| 8303 | MAGIC_CMD=$lt_save_MAGIC_CMD |
| 8304 | ;; |
| 8305 | esac |
| 8306 | fi |
| 8307 | |
| 8308 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 8309 | if test -n "$MAGIC_CMD"; then |
| 8310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8311 | $as_echo "$MAGIC_CMD" >&6; } |
| 8312 | else |
| 8313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8314 | $as_echo "no" >&6; } |
| 8315 | fi |
| 8316 | |
| 8317 | |
| 8318 | else |
| 8319 | MAGIC_CMD=: |
| 8320 | fi |
| 8321 | fi |
| 8322 | |
| 8323 | fi |
| 8324 | ;; |
| 8325 | esac |
| 8326 | |
| 8327 | # Use C for the default configuration in the libtool script |
| 8328 | |
| 8329 | lt_save_CC=$CC |
| 8330 | ac_ext=c |
| 8331 | ac_cpp='$CPP $CPPFLAGS' |
| 8332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8335 | |
| 8336 | |
| 8337 | # Source file extension for C test sources. |
| 8338 | ac_ext=c |
| 8339 | |
| 8340 | # Object file extension for compiled C test sources. |
| 8341 | objext=o |
| 8342 | objext=$objext |
| 8343 | |
| 8344 | # Code to be used in simple compile tests |
| 8345 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8346 | |
| 8347 | # Code to be used in simple link tests |
| 8348 | lt_simple_link_test_code='int main(){return(0);}' |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | # If no C compiler was specified, use CC. |
| 8357 | LTCC=${LTCC-"$CC"} |
| 8358 | |
| 8359 | # If no C compiler flags were specified, use CFLAGS. |
| 8360 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8361 | |
| 8362 | # Allow CC to be a program name with arguments. |
| 8363 | compiler=$CC |
| 8364 | |
| 8365 | # Save the default compiler, since it gets overwritten when the other |
| 8366 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8367 | compiler_DEFAULT=$CC |
| 8368 | |
| 8369 | # save warnings/boilerplate of simple test code |
| 8370 | ac_outfile=conftest.$ac_objext |
| 8371 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8372 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8373 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8374 | $RM conftest* |
| 8375 | |
| 8376 | ac_outfile=conftest.$ac_objext |
| 8377 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8378 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8379 | _lt_linker_boilerplate=`cat conftest.err` |
| 8380 | $RM -r conftest* |
| 8381 | |
| 8382 | |
| 8383 | ## CAVEAT EMPTOR: |
| 8384 | ## There is no encapsulation within the following macros, do not change |
| 8385 | ## the running order or otherwise move them around unless you know exactly |
| 8386 | ## what you are doing... |
| 8387 | if test -n "$compiler"; then |
| 8388 | |
| 8389 | lt_prog_compiler_no_builtin_flag= |
| 8390 | |
| 8391 | if test yes = "$GCC"; then |
| 8392 | case $cc_basename in |
| 8393 | nvcc*) |
| 8394 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8395 | *) |
| 8396 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8397 | esac |
| 8398 | |
| 8399 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8400 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8401 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8402 | $as_echo_n "(cached) " >&6 |
| 8403 | else |
| 8404 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8405 | ac_outfile=conftest.$ac_objext |
| 8406 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8407 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 8408 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8409 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8410 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8411 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8412 | # The option is referenced via a variable to avoid confusing sed. |
| 8413 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8414 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8415 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8416 | -e 's:$: $lt_compiler_flag:'` |
| 8417 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8418 | (eval "$lt_compile" 2>conftest.err) |
| 8419 | ac_status=$? |
| 8420 | cat conftest.err >&5 |
| 8421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8422 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8423 | # The compiler can only warn and ignore the option if not recognized |
| 8424 | # So say no if there are warnings other than the usual output. |
| 8425 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8426 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8427 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8428 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8429 | fi |
| 8430 | fi |
| 8431 | $RM conftest* |
| 8432 | |
| 8433 | fi |
| 8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8435 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8436 | |
| 8437 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 8438 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8439 | else |
| 8440 | : |
| 8441 | fi |
| 8442 | |
| 8443 | fi |
| 8444 | |
| 8445 | |
| 8446 | |
| 8447 | |
| 8448 | |
| 8449 | |
| 8450 | lt_prog_compiler_wl= |
| 8451 | lt_prog_compiler_pic= |
| 8452 | lt_prog_compiler_static= |
| 8453 | |
| 8454 | |
| 8455 | if test yes = "$GCC"; then |
| 8456 | lt_prog_compiler_wl='-Wl,' |
| 8457 | lt_prog_compiler_static='-static' |
| 8458 | |
| 8459 | case $host_os in |
| 8460 | aix*) |
| 8461 | # All AIX code is PIC. |
| 8462 | if test ia64 = "$host_cpu"; then |
| 8463 | # AIX 5 now supports IA64 processor |
| 8464 | lt_prog_compiler_static='-Bstatic' |
| 8465 | fi |
| 8466 | lt_prog_compiler_pic='-fPIC' |
| 8467 | ;; |
| 8468 | |
| 8469 | amigaos*) |
| 8470 | case $host_cpu in |
| 8471 | powerpc) |
| 8472 | # see comment about AmigaOS4 .so support |
| 8473 | lt_prog_compiler_pic='-fPIC' |
| 8474 | ;; |
| 8475 | m68k) |
| 8476 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8477 | # adding the '-m68020' flag to GCC prevents building anything better, |
| 8478 | # like '-m68040'. |
| 8479 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8480 | ;; |
| 8481 | esac |
| 8482 | ;; |
| 8483 | |
| 8484 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8485 | # PIC is the default for these OSes. |
| 8486 | ;; |
| 8487 | |
| 8488 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8489 | # This hack is so that the source file can tell whether it is being |
| 8490 | # built for inclusion in a dll (and should export symbols for example). |
| 8491 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8492 | # (--disable-auto-import) libraries |
| 8493 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8494 | case $host_os in |
| 8495 | os2*) |
| 8496 | lt_prog_compiler_static='$wl-static' |
| 8497 | ;; |
| 8498 | esac |
| 8499 | ;; |
| 8500 | |
| 8501 | darwin* | rhapsody*) |
| 8502 | # PIC is the default on this platform |
| 8503 | # Common symbols not allowed in MH_DYLIB files |
| 8504 | lt_prog_compiler_pic='-fno-common' |
| 8505 | ;; |
| 8506 | |
| 8507 | haiku*) |
| 8508 | # PIC is the default for Haiku. |
| 8509 | # The "-static" flag exists, but is broken. |
| 8510 | lt_prog_compiler_static= |
| 8511 | ;; |
| 8512 | |
| 8513 | hpux*) |
| 8514 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8515 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8516 | # sets the default TLS model and affects inlining. |
| 8517 | case $host_cpu in |
| 8518 | hppa*64*) |
| 8519 | # +Z the default |
| 8520 | ;; |
| 8521 | *) |
| 8522 | lt_prog_compiler_pic='-fPIC' |
| 8523 | ;; |
| 8524 | esac |
| 8525 | ;; |
| 8526 | |
| 8527 | interix[3-9]*) |
| 8528 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8529 | # Instead, we relocate shared libraries at runtime. |
| 8530 | ;; |
| 8531 | |
| 8532 | msdosdjgpp*) |
| 8533 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8534 | # on systems that don't support them. |
| 8535 | lt_prog_compiler_can_build_shared=no |
| 8536 | enable_shared=no |
| 8537 | ;; |
| 8538 | |
| 8539 | *nto* | *qnx*) |
| 8540 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8541 | # it will coredump. |
| 8542 | lt_prog_compiler_pic='-fPIC -shared' |
| 8543 | ;; |
| 8544 | |
| 8545 | sysv4*MP*) |
| 8546 | if test -d /usr/nec; then |
| 8547 | lt_prog_compiler_pic=-Kconform_pic |
| 8548 | fi |
| 8549 | ;; |
| 8550 | |
| 8551 | *) |
| 8552 | lt_prog_compiler_pic='-fPIC' |
| 8553 | ;; |
| 8554 | esac |
| 8555 | |
| 8556 | case $cc_basename in |
| 8557 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8558 | lt_prog_compiler_wl='-Xlinker ' |
| 8559 | if test -n "$lt_prog_compiler_pic"; then |
| 8560 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8561 | fi |
| 8562 | ;; |
| 8563 | esac |
| 8564 | else |
| 8565 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8566 | case $host_os in |
| 8567 | aix*) |
| 8568 | lt_prog_compiler_wl='-Wl,' |
| 8569 | if test ia64 = "$host_cpu"; then |
| 8570 | # AIX 5 now supports IA64 processor |
| 8571 | lt_prog_compiler_static='-Bstatic' |
| 8572 | else |
| 8573 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8574 | fi |
| 8575 | ;; |
| 8576 | |
| 8577 | darwin* | rhapsody*) |
| 8578 | # PIC is the default on this platform |
| 8579 | # Common symbols not allowed in MH_DYLIB files |
| 8580 | lt_prog_compiler_pic='-fno-common' |
| 8581 | case $cc_basename in |
| 8582 | nagfor*) |
| 8583 | # NAG Fortran compiler |
| 8584 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8585 | lt_prog_compiler_pic='-PIC' |
| 8586 | lt_prog_compiler_static='-Bstatic' |
| 8587 | ;; |
| 8588 | esac |
| 8589 | ;; |
| 8590 | |
| 8591 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8592 | # This hack is so that the source file can tell whether it is being |
| 8593 | # built for inclusion in a dll (and should export symbols for example). |
| 8594 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8595 | case $host_os in |
| 8596 | os2*) |
| 8597 | lt_prog_compiler_static='$wl-static' |
| 8598 | ;; |
| 8599 | esac |
| 8600 | ;; |
| 8601 | |
| 8602 | hpux9* | hpux10* | hpux11*) |
| 8603 | lt_prog_compiler_wl='-Wl,' |
| 8604 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8605 | # not for PA HP-UX. |
| 8606 | case $host_cpu in |
| 8607 | hppa*64*|ia64*) |
| 8608 | # +Z the default |
| 8609 | ;; |
| 8610 | *) |
| 8611 | lt_prog_compiler_pic='+Z' |
| 8612 | ;; |
| 8613 | esac |
| 8614 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8615 | lt_prog_compiler_static='$wl-a ${wl}archive' |
| 8616 | ;; |
| 8617 | |
| 8618 | irix5* | irix6* | nonstopux*) |
| 8619 | lt_prog_compiler_wl='-Wl,' |
| 8620 | # PIC (with -KPIC) is the default. |
| 8621 | lt_prog_compiler_static='-non_shared' |
| 8622 | ;; |
| 8623 | |
| 8624 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 8625 | case $cc_basename in |
| 8626 | # old Intel for x86_64, which still supported -KPIC. |
| 8627 | ecc*) |
| 8628 | lt_prog_compiler_wl='-Wl,' |
| 8629 | lt_prog_compiler_pic='-KPIC' |
| 8630 | lt_prog_compiler_static='-static' |
| 8631 | ;; |
| 8632 | # icc used to be incompatible with GCC. |
| 8633 | # ICC 10 doesn't accept -KPIC any more. |
| 8634 | icc* | ifort*) |
| 8635 | lt_prog_compiler_wl='-Wl,' |
| 8636 | lt_prog_compiler_pic='-fPIC' |
| 8637 | lt_prog_compiler_static='-static' |
| 8638 | ;; |
| 8639 | # Lahey Fortran 8.1. |
| 8640 | lf95*) |
| 8641 | lt_prog_compiler_wl='-Wl,' |
| 8642 | lt_prog_compiler_pic='--shared' |
| 8643 | lt_prog_compiler_static='--static' |
| 8644 | ;; |
| 8645 | nagfor*) |
| 8646 | # NAG Fortran compiler |
| 8647 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8648 | lt_prog_compiler_pic='-PIC' |
| 8649 | lt_prog_compiler_static='-Bstatic' |
| 8650 | ;; |
| 8651 | tcc*) |
| 8652 | # Fabrice Bellard et al's Tiny C Compiler |
| 8653 | lt_prog_compiler_wl='-Wl,' |
| 8654 | lt_prog_compiler_pic='-fPIC' |
| 8655 | lt_prog_compiler_static='-static' |
| 8656 | ;; |
| 8657 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8658 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8659 | # which looks to be a dead project) |
| 8660 | lt_prog_compiler_wl='-Wl,' |
| 8661 | lt_prog_compiler_pic='-fpic' |
| 8662 | lt_prog_compiler_static='-Bstatic' |
| 8663 | ;; |
| 8664 | ccc*) |
| 8665 | lt_prog_compiler_wl='-Wl,' |
| 8666 | # All Alpha code is PIC. |
| 8667 | lt_prog_compiler_static='-non_shared' |
| 8668 | ;; |
| 8669 | xl* | bgxl* | bgf* | mpixl*) |
| 8670 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8671 | lt_prog_compiler_wl='-Wl,' |
| 8672 | lt_prog_compiler_pic='-qpic' |
| 8673 | lt_prog_compiler_static='-qstaticlink' |
| 8674 | ;; |
| 8675 | *) |
| 8676 | case `$CC -V 2>&1 | sed 5q` in |
| 8677 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8678 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8679 | lt_prog_compiler_pic='-KPIC' |
| 8680 | lt_prog_compiler_static='-Bstatic' |
| 8681 | lt_prog_compiler_wl='' |
| 8682 | ;; |
| 8683 | *Sun\ F* | *Sun*Fortran*) |
| 8684 | lt_prog_compiler_pic='-KPIC' |
| 8685 | lt_prog_compiler_static='-Bstatic' |
| 8686 | lt_prog_compiler_wl='-Qoption ld ' |
| 8687 | ;; |
| 8688 | *Sun\ C*) |
| 8689 | # Sun C 5.9 |
| 8690 | lt_prog_compiler_pic='-KPIC' |
| 8691 | lt_prog_compiler_static='-Bstatic' |
| 8692 | lt_prog_compiler_wl='-Wl,' |
| 8693 | ;; |
| 8694 | *Intel*\ [CF]*Compiler*) |
| 8695 | lt_prog_compiler_wl='-Wl,' |
| 8696 | lt_prog_compiler_pic='-fPIC' |
| 8697 | lt_prog_compiler_static='-static' |
| 8698 | ;; |
| 8699 | *Portland\ Group*) |
| 8700 | lt_prog_compiler_wl='-Wl,' |
| 8701 | lt_prog_compiler_pic='-fpic' |
| 8702 | lt_prog_compiler_static='-Bstatic' |
| 8703 | ;; |
| 8704 | esac |
| 8705 | ;; |
| 8706 | esac |
| 8707 | ;; |
| 8708 | |
| 8709 | newsos6) |
| 8710 | lt_prog_compiler_pic='-KPIC' |
| 8711 | lt_prog_compiler_static='-Bstatic' |
| 8712 | ;; |
| 8713 | |
| 8714 | *nto* | *qnx*) |
| 8715 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8716 | # it will coredump. |
| 8717 | lt_prog_compiler_pic='-fPIC -shared' |
| 8718 | ;; |
| 8719 | |
| 8720 | osf3* | osf4* | osf5*) |
| 8721 | lt_prog_compiler_wl='-Wl,' |
| 8722 | # All OSF/1 code is PIC. |
| 8723 | lt_prog_compiler_static='-non_shared' |
| 8724 | ;; |
| 8725 | |
| 8726 | rdos*) |
| 8727 | lt_prog_compiler_static='-non_shared' |
| 8728 | ;; |
| 8729 | |
| 8730 | solaris*) |
| 8731 | lt_prog_compiler_pic='-KPIC' |
| 8732 | lt_prog_compiler_static='-Bstatic' |
| 8733 | case $cc_basename in |
| 8734 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8735 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8736 | *) |
| 8737 | lt_prog_compiler_wl='-Wl,';; |
| 8738 | esac |
| 8739 | ;; |
| 8740 | |
| 8741 | sunos4*) |
| 8742 | lt_prog_compiler_wl='-Qoption ld ' |
| 8743 | lt_prog_compiler_pic='-PIC' |
| 8744 | lt_prog_compiler_static='-Bstatic' |
| 8745 | ;; |
| 8746 | |
| 8747 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8748 | lt_prog_compiler_wl='-Wl,' |
| 8749 | lt_prog_compiler_pic='-KPIC' |
| 8750 | lt_prog_compiler_static='-Bstatic' |
| 8751 | ;; |
| 8752 | |
| 8753 | sysv4*MP*) |
| 8754 | if test -d /usr/nec; then |
| 8755 | lt_prog_compiler_pic='-Kconform_pic' |
| 8756 | lt_prog_compiler_static='-Bstatic' |
| 8757 | fi |
| 8758 | ;; |
| 8759 | |
| 8760 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8761 | lt_prog_compiler_wl='-Wl,' |
| 8762 | lt_prog_compiler_pic='-KPIC' |
| 8763 | lt_prog_compiler_static='-Bstatic' |
| 8764 | ;; |
| 8765 | |
| 8766 | unicos*) |
| 8767 | lt_prog_compiler_wl='-Wl,' |
| 8768 | lt_prog_compiler_can_build_shared=no |
| 8769 | ;; |
| 8770 | |
| 8771 | uts4*) |
| 8772 | lt_prog_compiler_pic='-pic' |
| 8773 | lt_prog_compiler_static='-Bstatic' |
| 8774 | ;; |
| 8775 | |
| 8776 | *) |
| 8777 | lt_prog_compiler_can_build_shared=no |
| 8778 | ;; |
| 8779 | esac |
| 8780 | fi |
| 8781 | |
| 8782 | case $host_os in |
| 8783 | # For platforms that do not support PIC, -DPIC is meaningless: |
| 8784 | *djgpp*) |
| 8785 | lt_prog_compiler_pic= |
| 8786 | ;; |
| 8787 | *) |
| 8788 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8789 | ;; |
| 8790 | esac |
| 8791 | |
| 8792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8793 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8794 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8795 | $as_echo_n "(cached) " >&6 |
| 8796 | else |
| 8797 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8798 | fi |
| 8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8800 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8801 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8802 | |
| 8803 | # |
| 8804 | # Check to make sure the PIC flag actually works. |
| 8805 | # |
| 8806 | if test -n "$lt_prog_compiler_pic"; then |
| 8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8808 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8809 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8810 | $as_echo_n "(cached) " >&6 |
| 8811 | else |
| 8812 | lt_cv_prog_compiler_pic_works=no |
| 8813 | ac_outfile=conftest.$ac_objext |
| 8814 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8815 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 8816 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8817 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8818 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8819 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8820 | # The option is referenced via a variable to avoid confusing sed. |
| 8821 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8822 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8823 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8824 | -e 's:$: $lt_compiler_flag:'` |
| 8825 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8826 | (eval "$lt_compile" 2>conftest.err) |
| 8827 | ac_status=$? |
| 8828 | cat conftest.err >&5 |
| 8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8830 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8831 | # The compiler can only warn and ignore the option if not recognized |
| 8832 | # So say no if there are warnings other than the usual output. |
| 8833 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8834 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8835 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8836 | lt_cv_prog_compiler_pic_works=yes |
| 8837 | fi |
| 8838 | fi |
| 8839 | $RM conftest* |
| 8840 | |
| 8841 | fi |
| 8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8843 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8844 | |
| 8845 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 8846 | case $lt_prog_compiler_pic in |
| 8847 | "" | " "*) ;; |
| 8848 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8849 | esac |
| 8850 | else |
| 8851 | lt_prog_compiler_pic= |
| 8852 | lt_prog_compiler_can_build_shared=no |
| 8853 | fi |
| 8854 | |
| 8855 | fi |
| 8856 | |
| 8857 | |
| 8858 | |
| 8859 | |
| 8860 | |
| 8861 | |
| 8862 | |
| 8863 | |
| 8864 | |
| 8865 | |
| 8866 | |
| 8867 | # |
| 8868 | # Check to make sure the static flag actually works. |
| 8869 | # |
| 8870 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8872 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8873 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8874 | $as_echo_n "(cached) " >&6 |
| 8875 | else |
| 8876 | lt_cv_prog_compiler_static_works=no |
| 8877 | save_LDFLAGS=$LDFLAGS |
| 8878 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8879 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8880 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8881 | # The linker can only warn and ignore the option if not recognized |
| 8882 | # So say no if there are warnings |
| 8883 | if test -s conftest.err; then |
| 8884 | # Append any errors to the config.log. |
| 8885 | cat conftest.err 1>&5 |
| 8886 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8887 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8888 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8889 | lt_cv_prog_compiler_static_works=yes |
| 8890 | fi |
| 8891 | else |
| 8892 | lt_cv_prog_compiler_static_works=yes |
| 8893 | fi |
| 8894 | fi |
| 8895 | $RM -r conftest* |
| 8896 | LDFLAGS=$save_LDFLAGS |
| 8897 | |
| 8898 | fi |
| 8899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8900 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 8901 | |
| 8902 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 8903 | : |
| 8904 | else |
| 8905 | lt_prog_compiler_static= |
| 8906 | fi |
| 8907 | |
| 8908 | |
| 8909 | |
| 8910 | |
| 8911 | |
| 8912 | |
| 8913 | |
| 8914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8915 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8916 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8917 | $as_echo_n "(cached) " >&6 |
| 8918 | else |
| 8919 | lt_cv_prog_compiler_c_o=no |
| 8920 | $RM -r conftest 2>/dev/null |
| 8921 | mkdir conftest |
| 8922 | cd conftest |
| 8923 | mkdir out |
| 8924 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8925 | |
| 8926 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8927 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8928 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8929 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8930 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8931 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8932 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8933 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8934 | -e 's:$: $lt_compiler_flag:'` |
| 8935 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8936 | (eval "$lt_compile" 2>out/conftest.err) |
| 8937 | ac_status=$? |
| 8938 | cat out/conftest.err >&5 |
| 8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8940 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8941 | then |
| 8942 | # The compiler can only warn and ignore the option if not recognized |
| 8943 | # So say no if there are warnings |
| 8944 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 8945 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8946 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8947 | lt_cv_prog_compiler_c_o=yes |
| 8948 | fi |
| 8949 | fi |
| 8950 | chmod u+w . 2>&5 |
| 8951 | $RM conftest* |
| 8952 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8953 | # template instantiation |
| 8954 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8955 | $RM out/* && rmdir out |
| 8956 | cd .. |
| 8957 | $RM -r conftest |
| 8958 | $RM conftest* |
| 8959 | |
| 8960 | fi |
| 8961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8962 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8963 | |
| 8964 | |
| 8965 | |
| 8966 | |
| 8967 | |
| 8968 | |
| 8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8970 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8971 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 8972 | $as_echo_n "(cached) " >&6 |
| 8973 | else |
| 8974 | lt_cv_prog_compiler_c_o=no |
| 8975 | $RM -r conftest 2>/dev/null |
| 8976 | mkdir conftest |
| 8977 | cd conftest |
| 8978 | mkdir out |
| 8979 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8980 | |
| 8981 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8982 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8983 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8984 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8985 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8986 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8987 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8988 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8989 | -e 's:$: $lt_compiler_flag:'` |
| 8990 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8991 | (eval "$lt_compile" 2>out/conftest.err) |
| 8992 | ac_status=$? |
| 8993 | cat out/conftest.err >&5 |
| 8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8995 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8996 | then |
| 8997 | # The compiler can only warn and ignore the option if not recognized |
| 8998 | # So say no if there are warnings |
| 8999 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9000 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9001 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9002 | lt_cv_prog_compiler_c_o=yes |
| 9003 | fi |
| 9004 | fi |
| 9005 | chmod u+w . 2>&5 |
| 9006 | $RM conftest* |
| 9007 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9008 | # template instantiation |
| 9009 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9010 | $RM out/* && rmdir out |
| 9011 | cd .. |
| 9012 | $RM -r conftest |
| 9013 | $RM conftest* |
| 9014 | |
| 9015 | fi |
| 9016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9017 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9018 | |
| 9019 | |
| 9020 | |
| 9021 | |
| 9022 | hard_links=nottested |
| 9023 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 9024 | # do not overwrite the value of need_locks provided by the user |
| 9025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9026 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9027 | hard_links=yes |
| 9028 | $RM conftest* |
| 9029 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9030 | touch conftest.a |
| 9031 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9032 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9034 | $as_echo "$hard_links" >&6; } |
| 9035 | if test no = "$hard_links"; then |
| 9036 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 9037 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 9038 | need_locks=warn |
| 9039 | fi |
| 9040 | else |
| 9041 | need_locks=no |
| 9042 | fi |
| 9043 | |
| 9044 | |
| 9045 | |
| 9046 | |
| 9047 | |
| 9048 | |
| 9049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9050 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9051 | |
| 9052 | runpath_var= |
| 9053 | allow_undefined_flag= |
| 9054 | always_export_symbols=no |
| 9055 | archive_cmds= |
| 9056 | archive_expsym_cmds= |
| 9057 | compiler_needs_object=no |
| 9058 | enable_shared_with_static_runtimes=no |
| 9059 | export_dynamic_flag_spec= |
| 9060 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9061 | hardcode_automatic=no |
| 9062 | hardcode_direct=no |
| 9063 | hardcode_direct_absolute=no |
| 9064 | hardcode_libdir_flag_spec= |
| 9065 | hardcode_libdir_separator= |
| 9066 | hardcode_minus_L=no |
| 9067 | hardcode_shlibpath_var=unsupported |
| 9068 | inherit_rpath=no |
| 9069 | link_all_deplibs=unknown |
| 9070 | module_cmds= |
| 9071 | module_expsym_cmds= |
| 9072 | old_archive_from_new_cmds= |
| 9073 | old_archive_from_expsyms_cmds= |
| 9074 | thread_safe_flag_spec= |
| 9075 | whole_archive_flag_spec= |
| 9076 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9077 | # included in the symbol list |
| 9078 | include_expsyms= |
| 9079 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9080 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 9081 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 9082 | # as well as any symbol that contains 'd'. |
| 9083 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9084 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9085 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9086 | # the symbol is explicitly referenced. Since portable code cannot |
| 9087 | # rely on this symbol name, it's probably fine to never include it in |
| 9088 | # preloaded symbol tables. |
| 9089 | # Exclude shared library initialization/finalization symbols. |
| 9090 | extract_expsyms_cmds= |
| 9091 | |
| 9092 | case $host_os in |
| 9093 | cygwin* | mingw* | pw32* | cegcc*) |
| 9094 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9095 | # When not using gcc, we currently assume that we are using |
| 9096 | # Microsoft Visual C++. |
| 9097 | if test yes != "$GCC"; then |
| 9098 | with_gnu_ld=no |
| 9099 | fi |
| 9100 | ;; |
| 9101 | interix*) |
| 9102 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9103 | with_gnu_ld=yes |
| 9104 | ;; |
| 9105 | openbsd* | bitrig*) |
| 9106 | with_gnu_ld=no |
| 9107 | ;; |
| 9108 | linux* | k*bsd*-gnu | gnu*) |
| 9109 | link_all_deplibs=no |
| 9110 | ;; |
| 9111 | esac |
| 9112 | |
| 9113 | ld_shlibs=yes |
| 9114 | |
| 9115 | # On some targets, GNU ld is compatible enough with the native linker |
| 9116 | # that we're better off using the native interface for both. |
| 9117 | lt_use_gnu_ld_interface=no |
| 9118 | if test yes = "$with_gnu_ld"; then |
| 9119 | case $host_os in |
| 9120 | aix*) |
| 9121 | # The AIX port of GNU ld has always aspired to compatibility |
| 9122 | # with the native linker. However, as the warning in the GNU ld |
| 9123 | # block says, versions before 2.19.5* couldn't really create working |
| 9124 | # shared libraries, regardless of the interface used. |
| 9125 | case `$LD -v 2>&1` in |
| 9126 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9127 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9128 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9129 | *) |
| 9130 | lt_use_gnu_ld_interface=yes |
| 9131 | ;; |
| 9132 | esac |
| 9133 | ;; |
| 9134 | *) |
| 9135 | lt_use_gnu_ld_interface=yes |
| 9136 | ;; |
| 9137 | esac |
| 9138 | fi |
| 9139 | |
| 9140 | if test yes = "$lt_use_gnu_ld_interface"; then |
| 9141 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9142 | wlarc='$wl' |
| 9143 | |
| 9144 | # Set some defaults for GNU ld with shared library support. These |
| 9145 | # are reset later if shared libraries are not supported. Putting them |
| 9146 | # here allows them to be overridden if necessary. |
| 9147 | runpath_var=LD_RUN_PATH |
| 9148 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 9149 | export_dynamic_flag_spec='$wl--export-dynamic' |
| 9150 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9151 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9152 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 9153 | else |
| 9154 | whole_archive_flag_spec= |
| 9155 | fi |
| 9156 | supports_anon_versioning=no |
| 9157 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
| 9158 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9159 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9160 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9161 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9162 | *\ 2.11.*) ;; # other 2.11 versions |
| 9163 | *) supports_anon_versioning=yes ;; |
| 9164 | esac |
| 9165 | |
| 9166 | # See if GNU ld supports shared libraries. |
| 9167 | case $host_os in |
| 9168 | aix[3-9]*) |
| 9169 | # On AIX/PPC, the GNU linker is very broken |
| 9170 | if test ia64 != "$host_cpu"; then |
| 9171 | ld_shlibs=no |
| 9172 | cat <<_LT_EOF 1>&2 |
| 9173 | |
| 9174 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9175 | *** to be unable to reliably create shared libraries on AIX. |
| 9176 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9177 | *** really care for shared libraries, you may want to install binutils |
| 9178 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9179 | *** You will then need to restart the configuration process. |
| 9180 | |
| 9181 | _LT_EOF |
| 9182 | fi |
| 9183 | ;; |
| 9184 | |
| 9185 | amigaos*) |
| 9186 | case $host_cpu in |
| 9187 | powerpc) |
| 9188 | # see comment about AmigaOS4 .so support |
| 9189 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9190 | archive_expsym_cmds='' |
| 9191 | ;; |
| 9192 | m68k) |
| 9193 | 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)' |
| 9194 | hardcode_libdir_flag_spec='-L$libdir' |
| 9195 | hardcode_minus_L=yes |
| 9196 | ;; |
| 9197 | esac |
| 9198 | ;; |
| 9199 | |
| 9200 | beos*) |
| 9201 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9202 | allow_undefined_flag=unsupported |
| 9203 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9204 | # support --undefined. This deserves some investigation. FIXME |
| 9205 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9206 | else |
| 9207 | ld_shlibs=no |
| 9208 | fi |
| 9209 | ;; |
| 9210 | |
| 9211 | cygwin* | mingw* | pw32* | cegcc*) |
| 9212 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9213 | # as there is no search path for DLLs. |
| 9214 | hardcode_libdir_flag_spec='-L$libdir' |
| 9215 | export_dynamic_flag_spec='$wl--export-all-symbols' |
| 9216 | allow_undefined_flag=unsupported |
| 9217 | always_export_symbols=no |
| 9218 | enable_shared_with_static_runtimes=yes |
| 9219 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 9220 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9221 | |
| 9222 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9223 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9224 | # If the export-symbols file already is a .def file, use it as |
| 9225 | # is; otherwise, prepend EXPORTS... |
| 9226 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 9227 | cp $export_symbols $output_objdir/$soname.def; |
| 9228 | else |
| 9229 | echo EXPORTS > $output_objdir/$soname.def; |
| 9230 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9231 | fi~ |
| 9232 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9233 | else |
| 9234 | ld_shlibs=no |
| 9235 | fi |
| 9236 | ;; |
| 9237 | |
| 9238 | haiku*) |
| 9239 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 9240 | link_all_deplibs=yes |
| 9241 | ;; |
| 9242 | |
| 9243 | os2*) |
| 9244 | hardcode_libdir_flag_spec='-L$libdir' |
| 9245 | hardcode_minus_L=yes |
| 9246 | allow_undefined_flag=unsupported |
| 9247 | shrext_cmds=.dll |
| 9248 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9249 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9250 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9251 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9252 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 9253 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9254 | emximp -o $lib $output_objdir/$libname.def' |
| 9255 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 9256 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 9257 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 9258 | $ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 9259 | prefix_cmds="$SED"~ |
| 9260 | if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 9261 | prefix_cmds="$prefix_cmds -e 1d"; |
| 9262 | fi~ |
| 9263 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 9264 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 9265 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 9266 | emximp -o $lib $output_objdir/$libname.def' |
| 9267 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 9268 | enable_shared_with_static_runtimes=yes |
| 9269 | ;; |
| 9270 | |
| 9271 | interix[3-9]*) |
| 9272 | hardcode_direct=no |
| 9273 | hardcode_shlibpath_var=no |
| 9274 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 9275 | export_dynamic_flag_spec='$wl-E' |
| 9276 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9277 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9278 | # default) and relocated if they conflict, which is a slow very memory |
| 9279 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9280 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9281 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9282 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9283 | 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' |
| 9284 | ;; |
| 9285 | |
| 9286 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9287 | tmp_diet=no |
| 9288 | if test linux-dietlibc = "$host_os"; then |
| 9289 | case $cc_basename in |
| 9290 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9291 | esac |
| 9292 | fi |
| 9293 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9294 | && test no = "$tmp_diet" |
| 9295 | then |
| 9296 | tmp_addflag=' $pic_flag' |
| 9297 | tmp_sharedflag='-shared' |
| 9298 | case $cc_basename,$host_cpu in |
| 9299 | pgcc*) # Portland Group C compiler |
| 9300 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9301 | tmp_addflag=' $pic_flag' |
| 9302 | ;; |
| 9303 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9304 | # Portland Group f77 and f90 compilers |
| 9305 | whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 9306 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9307 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9308 | &n |