… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
|
|
244 | |
|
|
245 | # Check that we are running under the correct shell. |
|
|
246 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
247 | |
|
|
248 | case X$ECHO in |
|
|
249 | X*--fallback-echo) |
|
|
250 | # Remove one level of quotation (which was required for Make). |
|
|
251 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
252 | ;; |
|
|
253 | esac |
|
|
254 | |
|
|
255 | echo=${ECHO-echo} |
|
|
256 | if test "X$1" = X--no-reexec; then |
|
|
257 | # Discard the --no-reexec flag, and continue. |
|
|
258 | shift |
|
|
259 | elif test "X$1" = X--fallback-echo; then |
|
|
260 | # Avoid inline document here, it may be left over |
|
|
261 | : |
|
|
262 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
|
|
263 | # Yippee, $echo works! |
|
|
264 | : |
|
|
265 | else |
|
|
266 | # Restart under the correct shell. |
|
|
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
268 | fi |
|
|
269 | |
|
|
270 | if test "X$1" = X--fallback-echo; then |
|
|
271 | # used as fallback echo |
|
|
272 | shift |
|
|
273 | cat <<EOF |
|
|
274 | $* |
|
|
275 | EOF |
|
|
276 | exit 0 |
|
|
277 | fi |
|
|
278 | |
|
|
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
280 | # if CDPATH is set. |
|
|
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
282 | |
|
|
283 | if test -z "$ECHO"; then |
|
|
284 | if test "X${echo_test_string+set}" != Xset; then |
|
|
285 | # find a string as large as possible, as long as the shell can cope with it |
|
|
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
|
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
|
288 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
|
|
289 | echo_test_string=`eval $cmd` && |
|
|
290 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
|
|
291 | then |
|
|
292 | break |
|
|
293 | fi |
|
|
294 | done |
|
|
295 | fi |
|
|
296 | |
|
|
297 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
298 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
299 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
300 | : |
|
|
301 | else |
|
|
302 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
|
|
303 | # backslashes. This makes it impossible to quote backslashes using |
|
|
304 | # echo "$something" | sed 's/\\/\\\\/g' |
|
|
305 | # |
|
|
306 | # So, first we look for a working echo in the user's PATH. |
|
|
307 | |
|
|
308 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
309 | for dir in $PATH /usr/ucb; do |
|
|
310 | IFS="$lt_save_ifs" |
|
|
311 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
|
312 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
313 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
|
314 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
315 | echo="$dir/echo" |
|
|
316 | break |
|
|
317 | fi |
|
|
318 | done |
|
|
319 | IFS="$lt_save_ifs" |
|
|
320 | |
|
|
321 | if test "X$echo" = Xecho; then |
|
|
322 | # We didn't find a better echo, so look for alternatives. |
|
|
323 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
|
|
324 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
|
|
325 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
326 | # This shell has a builtin print -r that does the trick. |
|
|
327 | echo='print -r' |
|
|
328 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
|
|
329 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
|
330 | # If we have ksh, try running configure again with it. |
|
|
331 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
332 | export ORIGINAL_CONFIG_SHELL |
|
|
333 | CONFIG_SHELL=/bin/ksh |
|
|
334 | export CONFIG_SHELL |
|
|
335 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
|
336 | else |
|
|
337 | # Try using printf. |
|
|
338 | echo='printf %s\n' |
|
|
339 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
|
|
340 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
|
|
341 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
342 | # Cool, printf works |
|
|
343 | : |
|
|
344 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
345 | test "X$echo_testing_string" = 'X\t' && |
|
|
346 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
347 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
348 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
|
349 | export CONFIG_SHELL |
|
|
350 | SHELL="$CONFIG_SHELL" |
|
|
351 | export SHELL |
|
|
352 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
353 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
|
354 | test "X$echo_testing_string" = 'X\t' && |
|
|
355 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
|
356 | test "X$echo_testing_string" = "X$echo_test_string"; then |
|
|
357 | echo="$CONFIG_SHELL $0 --fallback-echo" |
|
|
358 | else |
|
|
359 | # maybe with a smaller string... |
|
|
360 | prev=: |
|
|
361 | |
|
|
362 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
|
363 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
|
|
364 | then |
|
|
365 | break |
|
|
366 | fi |
|
|
367 | prev="$cmd" |
|
|
368 | done |
|
|
369 | |
|
|
370 | if test "$prev" != 'sed 50q "$0"'; then |
|
|
371 | echo_test_string=`eval $prev` |
|
|
372 | export echo_test_string |
|
|
373 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
|
374 | else |
|
|
375 | # Oops. We lost completely, so just stick with echo. |
|
|
376 | echo=echo |
|
|
377 | fi |
|
|
378 | fi |
|
|
379 | fi |
|
|
380 | fi |
|
|
381 | fi |
|
|
382 | fi |
|
|
383 | |
|
|
384 | # Copy echo and quote the copy suitably for passing to libtool from |
|
|
385 | # the Makefile, instead of quoting the original, which is used later. |
|
|
386 | ECHO=$echo |
|
|
387 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
388 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
389 | fi |
|
|
390 | |
|
|
391 | |
|
|
392 | |
|
|
393 | |
|
|
394 | tagnames=${tagnames+${tagnames},}CXX |
|
|
395 | |
|
|
396 | tagnames=${tagnames+${tagnames},}F77 |
|
|
397 | |
244 | # Name of the host. |
398 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
399 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
246 | # so uname gets run too. |
400 | # so uname gets run too. |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
401 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
248 | |
402 | |
… | |
… | |
269 | PACKAGE_TARNAME= |
423 | PACKAGE_TARNAME= |
270 | PACKAGE_VERSION= |
424 | PACKAGE_VERSION= |
271 | PACKAGE_STRING= |
425 | PACKAGE_STRING= |
272 | PACKAGE_BUGREPORT= |
426 | PACKAGE_BUGREPORT= |
273 | |
427 | |
274 | ac_unique_file="src/logging.C" |
|
|
275 | # Factoring default headers for most tests. |
428 | # Factoring default headers for most tests. |
276 | ac_includes_default="\ |
429 | ac_includes_default="\ |
277 | #include <stdio.h> |
430 | #include <stdio.h> |
278 | #if HAVE_SYS_TYPES_H |
431 | #if HAVE_SYS_TYPES_H |
279 | # include <sys/types.h> |
432 | # include <sys/types.h> |
… | |
… | |
307 | #endif |
460 | #endif |
308 | #if HAVE_UNISTD_H |
461 | #if HAVE_UNISTD_H |
309 | # include <unistd.h> |
462 | # include <unistd.h> |
310 | #endif" |
463 | #endif" |
311 | |
464 | |
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RM CXXCPP EGREP LIBOBJS LTLIBOBJS' |
465 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS ac_ct_CC EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' |
466 | ac_subst_files='' |
314 | |
467 | |
315 | # Initialize some variables set by options. |
468 | # Initialize some variables set by options. |
316 | ac_init_help= |
469 | ac_init_help= |
317 | ac_init_version=false |
470 | ac_init_version=false |
… | |
… | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
917 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
918 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
919 | ac_env_CPPFLAGS_value=$CPPFLAGS |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
920 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
921 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
|
|
922 | ac_env_CC_set=${CC+set} |
|
|
923 | ac_env_CC_value=$CC |
|
|
924 | ac_cv_env_CC_set=${CC+set} |
|
|
925 | ac_cv_env_CC_value=$CC |
|
|
926 | ac_env_CFLAGS_set=${CFLAGS+set} |
|
|
927 | ac_env_CFLAGS_value=$CFLAGS |
|
|
928 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
|
|
929 | ac_cv_env_CFLAGS_value=$CFLAGS |
|
|
930 | ac_env_CPP_set=${CPP+set} |
|
|
931 | ac_env_CPP_value=$CPP |
|
|
932 | ac_cv_env_CPP_set=${CPP+set} |
|
|
933 | ac_cv_env_CPP_value=$CPP |
769 | ac_env_CXXCPP_set=${CXXCPP+set} |
934 | ac_env_CXXCPP_set=${CXXCPP+set} |
770 | ac_env_CXXCPP_value=$CXXCPP |
935 | ac_env_CXXCPP_value=$CXXCPP |
771 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
936 | ac_cv_env_CXXCPP_set=${CXXCPP+set} |
772 | ac_cv_env_CXXCPP_value=$CXXCPP |
937 | ac_cv_env_CXXCPP_value=$CXXCPP |
|
|
938 | ac_env_F77_set=${F77+set} |
|
|
939 | ac_env_F77_value=$F77 |
|
|
940 | ac_cv_env_F77_set=${F77+set} |
|
|
941 | ac_cv_env_F77_value=$F77 |
|
|
942 | ac_env_FFLAGS_set=${FFLAGS+set} |
|
|
943 | ac_env_FFLAGS_value=$FFLAGS |
|
|
944 | ac_cv_env_FFLAGS_set=${FFLAGS+set} |
|
|
945 | ac_cv_env_FFLAGS_value=$FFLAGS |
773 | |
946 | |
774 | # |
947 | # |
775 | # Report the --help message. |
948 | # Report the --help message. |
776 | # |
949 | # |
777 | if test "$ac_init_help" = "long"; then |
950 | if test "$ac_init_help" = "long"; then |
… | |
… | |
839 | |
1012 | |
840 | if test -n "$ac_init_help"; then |
1013 | if test -n "$ac_init_help"; then |
841 | |
1014 | |
842 | cat <<\_ACEOF |
1015 | cat <<\_ACEOF |
843 | |
1016 | |
|
|
1017 | Optional Features: |
|
|
1018 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
|
1019 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
|
1020 | --enable-shared[=PKGS] |
|
|
1021 | build shared libraries [default=yes] |
|
|
1022 | --enable-static[=PKGS] |
|
|
1023 | build static libraries [default=yes] |
|
|
1024 | --enable-fast-install[=PKGS] |
|
|
1025 | optimize for fast installation [default=yes] |
|
|
1026 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1027 | |
|
|
1028 | Optional Packages: |
|
|
1029 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
1030 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
1031 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
|
1032 | --with-pic try to use only PIC/non-PIC objects [default=use |
|
|
1033 | both] |
|
|
1034 | --with-tags[=TAGS] |
|
|
1035 | include additional configurations [automatic] |
|
|
1036 | |
844 | Some influential environment variables: |
1037 | Some influential environment variables: |
845 | CXX C++ compiler command |
1038 | CXX C++ compiler command |
846 | CXXFLAGS C++ compiler flags |
1039 | CXXFLAGS C++ compiler flags |
847 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1040 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
848 | nonstandard directory <lib dir> |
1041 | nonstandard directory <lib dir> |
849 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
1042 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
850 | headers in a nonstandard directory <include dir> |
1043 | headers in a nonstandard directory <include dir> |
|
|
1044 | CC C compiler command |
|
|
1045 | CFLAGS C compiler flags |
|
|
1046 | CPP C preprocessor |
851 | CXXCPP C++ preprocessor |
1047 | CXXCPP C++ preprocessor |
|
|
1048 | F77 Fortran 77 compiler command |
|
|
1049 | FFLAGS Fortran 77 compiler flags |
852 | |
1050 | |
853 | Use these variables to override the choices made by `configure' or to help |
1051 | Use these variables to override the choices made by `configure' or to help |
854 | it to find libraries and programs with nonstandard names/locations. |
1052 | it to find libraries and programs with nonstandard names/locations. |
855 | |
1053 | |
856 | _ACEOF |
1054 | _ACEOF |
… | |
… | |
1286 | |
1484 | |
1287 | |
1485 | |
1288 | |
1486 | |
1289 | |
1487 | |
1290 | |
1488 | |
1291 | |
|
|
1292 | |
|
|
1293 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1489 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
1294 | |
1490 | |
1295 | |
1491 | |
1296 | ac_aux_dir= |
1492 | ac_aux_dir= |
1297 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1493 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
… | |
… | |
2002 | |
2198 | |
2003 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2199 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2004 | |
2200 | |
2005 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2201 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2006 | |
2202 | |
|
|
2203 | # Check whether --enable-shared or --disable-shared was given. |
|
|
2204 | if test "${enable_shared+set}" = set; then |
|
|
2205 | enableval="$enable_shared" |
|
|
2206 | p=${PACKAGE-default} |
|
|
2207 | case $enableval in |
|
|
2208 | yes) enable_shared=yes ;; |
|
|
2209 | no) enable_shared=no ;; |
|
|
2210 | *) |
|
|
2211 | enable_shared=no |
|
|
2212 | # Look at the argument we got. We use all the common list separators. |
|
|
2213 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2214 | for pkg in $enableval; do |
|
|
2215 | IFS="$lt_save_ifs" |
|
|
2216 | if test "X$pkg" = "X$p"; then |
|
|
2217 | enable_shared=yes |
|
|
2218 | fi |
|
|
2219 | done |
|
|
2220 | IFS="$lt_save_ifs" |
|
|
2221 | ;; |
|
|
2222 | esac |
|
|
2223 | else |
|
|
2224 | enable_shared=yes |
|
|
2225 | fi; |
2007 | |
2226 | |
|
|
2227 | # Check whether --enable-static or --disable-static was given. |
|
|
2228 | if test "${enable_static+set}" = set; then |
|
|
2229 | enableval="$enable_static" |
|
|
2230 | p=${PACKAGE-default} |
|
|
2231 | case $enableval in |
|
|
2232 | yes) enable_static=yes ;; |
|
|
2233 | no) enable_static=no ;; |
|
|
2234 | *) |
|
|
2235 | enable_static=no |
|
|
2236 | # Look at the argument we got. We use all the common list separators. |
|
|
2237 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2238 | for pkg in $enableval; do |
|
|
2239 | IFS="$lt_save_ifs" |
|
|
2240 | if test "X$pkg" = "X$p"; then |
|
|
2241 | enable_static=yes |
|
|
2242 | fi |
|
|
2243 | done |
|
|
2244 | IFS="$lt_save_ifs" |
|
|
2245 | ;; |
|
|
2246 | esac |
|
|
2247 | else |
|
|
2248 | enable_static=yes |
|
|
2249 | fi; |
|
|
2250 | |
|
|
2251 | # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
2252 | if test "${enable_fast_install+set}" = set; then |
|
|
2253 | enableval="$enable_fast_install" |
|
|
2254 | p=${PACKAGE-default} |
|
|
2255 | case $enableval in |
|
|
2256 | yes) enable_fast_install=yes ;; |
|
|
2257 | no) enable_fast_install=no ;; |
|
|
2258 | *) |
|
|
2259 | enable_fast_install=no |
|
|
2260 | # Look at the argument we got. We use all the common list separators. |
|
|
2261 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
2262 | for pkg in $enableval; do |
|
|
2263 | IFS="$lt_save_ifs" |
|
|
2264 | if test "X$pkg" = "X$p"; then |
|
|
2265 | enable_fast_install=yes |
|
|
2266 | fi |
|
|
2267 | done |
|
|
2268 | IFS="$lt_save_ifs" |
|
|
2269 | ;; |
|
|
2270 | esac |
|
|
2271 | else |
|
|
2272 | enable_fast_install=yes |
|
|
2273 | fi; |
|
|
2274 | |
2008 | ac_ext=cc |
2275 | ac_ext=c |
2009 | ac_cpp='$CXXCPP $CPPFLAGS' |
2276 | ac_cpp='$CPP $CPPFLAGS' |
2010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2277 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2278 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2279 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2013 | |
2280 | if test -n "$ac_tool_prefix"; then |
2014 | |
|
|
2015 | # Extract the first word of "rm", so it can be a program name with args. |
2281 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2016 | set dummy rm; ac_word=$2 |
2282 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2283 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2019 | if test "${ac_cv_path_RM+set}" = set; then |
2285 | if test "${ac_cv_prog_CC+set}" = set; then |
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2021 | else |
2287 | else |
2022 | case $RM in |
2288 | if test -n "$CC"; then |
2023 | [\\/]* | ?:[\\/]*) |
|
|
2024 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
2289 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2025 | ;; |
2290 | else |
2026 | *) |
|
|
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2028 | for as_dir in $PATH |
2292 | for as_dir in $PATH |
2029 | do |
2293 | do |
2030 | IFS=$as_save_IFS |
2294 | IFS=$as_save_IFS |
2031 | test -z "$as_dir" && as_dir=. |
2295 | test -z "$as_dir" && as_dir=. |
2032 | for ac_exec_ext in '' $ac_executable_extensions; do |
2296 | for ac_exec_ext in '' $ac_executable_extensions; do |
2033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2297 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2034 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
2298 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2299 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2036 | break 2 |
2300 | break 2 |
2037 | fi |
2301 | fi |
2038 | done |
2302 | done |
2039 | done |
2303 | done |
2040 | |
2304 | |
|
|
2305 | fi |
|
|
2306 | fi |
|
|
2307 | CC=$ac_cv_prog_CC |
|
|
2308 | if test -n "$CC"; then |
|
|
2309 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2310 | echo "${ECHO_T}$CC" >&6 |
|
|
2311 | else |
|
|
2312 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2313 | echo "${ECHO_T}no" >&6 |
|
|
2314 | fi |
|
|
2315 | |
|
|
2316 | fi |
|
|
2317 | if test -z "$ac_cv_prog_CC"; then |
|
|
2318 | ac_ct_CC=$CC |
|
|
2319 | # Extract the first word of "gcc", so it can be a program name with args. |
|
|
2320 | set dummy gcc; ac_word=$2 |
|
|
2321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2323 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2324 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2325 | else |
|
|
2326 | if test -n "$ac_ct_CC"; then |
|
|
2327 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2328 | else |
|
|
2329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2330 | for as_dir in $PATH |
|
|
2331 | do |
|
|
2332 | IFS=$as_save_IFS |
|
|
2333 | test -z "$as_dir" && as_dir=. |
|
|
2334 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2336 | ac_cv_prog_ac_ct_CC="gcc" |
|
|
2337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2338 | break 2 |
|
|
2339 | fi |
|
|
2340 | done |
|
|
2341 | done |
|
|
2342 | |
|
|
2343 | fi |
|
|
2344 | fi |
|
|
2345 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2346 | if test -n "$ac_ct_CC"; then |
|
|
2347 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2348 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2349 | else |
|
|
2350 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2351 | echo "${ECHO_T}no" >&6 |
|
|
2352 | fi |
|
|
2353 | |
|
|
2354 | CC=$ac_ct_CC |
|
|
2355 | else |
|
|
2356 | CC="$ac_cv_prog_CC" |
|
|
2357 | fi |
|
|
2358 | |
|
|
2359 | if test -z "$CC"; then |
|
|
2360 | if test -n "$ac_tool_prefix"; then |
|
|
2361 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
|
2362 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
|
2363 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2364 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2365 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2367 | else |
|
|
2368 | if test -n "$CC"; then |
|
|
2369 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2370 | else |
|
|
2371 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2372 | for as_dir in $PATH |
|
|
2373 | do |
|
|
2374 | IFS=$as_save_IFS |
|
|
2375 | test -z "$as_dir" && as_dir=. |
|
|
2376 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2377 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2378 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
|
2379 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2380 | break 2 |
|
|
2381 | fi |
|
|
2382 | done |
|
|
2383 | done |
|
|
2384 | |
|
|
2385 | fi |
|
|
2386 | fi |
|
|
2387 | CC=$ac_cv_prog_CC |
|
|
2388 | if test -n "$CC"; then |
|
|
2389 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2390 | echo "${ECHO_T}$CC" >&6 |
|
|
2391 | else |
|
|
2392 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2393 | echo "${ECHO_T}no" >&6 |
|
|
2394 | fi |
|
|
2395 | |
|
|
2396 | fi |
|
|
2397 | if test -z "$ac_cv_prog_CC"; then |
|
|
2398 | ac_ct_CC=$CC |
|
|
2399 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
2400 | set dummy cc; ac_word=$2 |
|
|
2401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2403 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2405 | else |
|
|
2406 | if test -n "$ac_ct_CC"; then |
|
|
2407 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2408 | else |
|
|
2409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2410 | for as_dir in $PATH |
|
|
2411 | do |
|
|
2412 | IFS=$as_save_IFS |
|
|
2413 | test -z "$as_dir" && as_dir=. |
|
|
2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2416 | ac_cv_prog_ac_ct_CC="cc" |
|
|
2417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2418 | break 2 |
|
|
2419 | fi |
|
|
2420 | done |
|
|
2421 | done |
|
|
2422 | |
|
|
2423 | fi |
|
|
2424 | fi |
|
|
2425 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2426 | if test -n "$ac_ct_CC"; then |
|
|
2427 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2428 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2429 | else |
|
|
2430 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2431 | echo "${ECHO_T}no" >&6 |
|
|
2432 | fi |
|
|
2433 | |
|
|
2434 | CC=$ac_ct_CC |
|
|
2435 | else |
|
|
2436 | CC="$ac_cv_prog_CC" |
|
|
2437 | fi |
|
|
2438 | |
|
|
2439 | fi |
|
|
2440 | if test -z "$CC"; then |
|
|
2441 | # Extract the first word of "cc", so it can be a program name with args. |
|
|
2442 | set dummy cc; ac_word=$2 |
|
|
2443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2445 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2447 | else |
|
|
2448 | if test -n "$CC"; then |
|
|
2449 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2450 | else |
|
|
2451 | ac_prog_rejected=no |
|
|
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2453 | for as_dir in $PATH |
|
|
2454 | do |
|
|
2455 | IFS=$as_save_IFS |
|
|
2456 | test -z "$as_dir" && as_dir=. |
|
|
2457 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2459 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
|
2460 | ac_prog_rejected=yes |
|
|
2461 | continue |
|
|
2462 | fi |
|
|
2463 | ac_cv_prog_CC="cc" |
|
|
2464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2465 | break 2 |
|
|
2466 | fi |
|
|
2467 | done |
|
|
2468 | done |
|
|
2469 | |
|
|
2470 | if test $ac_prog_rejected = yes; then |
|
|
2471 | # We found a bogon in the path, so make sure we never use it. |
|
|
2472 | set dummy $ac_cv_prog_CC |
|
|
2473 | shift |
|
|
2474 | if test $# != 0; then |
|
|
2475 | # We chose a different compiler from the bogus one. |
|
|
2476 | # However, it has the same basename, so the bogon will be chosen |
|
|
2477 | # first if we set CC to just the basename; use the full file name. |
|
|
2478 | shift |
|
|
2479 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
|
2480 | fi |
|
|
2481 | fi |
|
|
2482 | fi |
|
|
2483 | fi |
|
|
2484 | CC=$ac_cv_prog_CC |
|
|
2485 | if test -n "$CC"; then |
|
|
2486 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2487 | echo "${ECHO_T}$CC" >&6 |
|
|
2488 | else |
|
|
2489 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2490 | echo "${ECHO_T}no" >&6 |
|
|
2491 | fi |
|
|
2492 | |
|
|
2493 | fi |
|
|
2494 | if test -z "$CC"; then |
|
|
2495 | if test -n "$ac_tool_prefix"; then |
|
|
2496 | for ac_prog in cl |
|
|
2497 | do |
|
|
2498 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
2499 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
|
2500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2502 | if test "${ac_cv_prog_CC+set}" = set; then |
|
|
2503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2504 | else |
|
|
2505 | if test -n "$CC"; then |
|
|
2506 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2507 | else |
|
|
2508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2509 | for as_dir in $PATH |
|
|
2510 | do |
|
|
2511 | IFS=$as_save_IFS |
|
|
2512 | test -z "$as_dir" && as_dir=. |
|
|
2513 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2515 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
|
2516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2517 | break 2 |
|
|
2518 | fi |
|
|
2519 | done |
|
|
2520 | done |
|
|
2521 | |
|
|
2522 | fi |
|
|
2523 | fi |
|
|
2524 | CC=$ac_cv_prog_CC |
|
|
2525 | if test -n "$CC"; then |
|
|
2526 | echo "$as_me:$LINENO: result: $CC" >&5 |
|
|
2527 | echo "${ECHO_T}$CC" >&6 |
|
|
2528 | else |
|
|
2529 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2530 | echo "${ECHO_T}no" >&6 |
|
|
2531 | fi |
|
|
2532 | |
|
|
2533 | test -n "$CC" && break |
|
|
2534 | done |
|
|
2535 | fi |
|
|
2536 | if test -z "$CC"; then |
|
|
2537 | ac_ct_CC=$CC |
|
|
2538 | for ac_prog in cl |
|
|
2539 | do |
|
|
2540 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
2541 | set dummy $ac_prog; ac_word=$2 |
|
|
2542 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
2543 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
2544 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
|
|
2545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2546 | else |
|
|
2547 | if test -n "$ac_ct_CC"; then |
|
|
2548 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2549 | else |
|
|
2550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2551 | for as_dir in $PATH |
|
|
2552 | do |
|
|
2553 | IFS=$as_save_IFS |
|
|
2554 | test -z "$as_dir" && as_dir=. |
|
|
2555 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2556 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
2557 | ac_cv_prog_ac_ct_CC="$ac_prog" |
|
|
2558 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
2559 | break 2 |
|
|
2560 | fi |
|
|
2561 | done |
|
|
2562 | done |
|
|
2563 | |
|
|
2564 | fi |
|
|
2565 | fi |
|
|
2566 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2567 | if test -n "$ac_ct_CC"; then |
|
|
2568 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
|
|
2569 | echo "${ECHO_T}$ac_ct_CC" >&6 |
|
|
2570 | else |
|
|
2571 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
2572 | echo "${ECHO_T}no" >&6 |
|
|
2573 | fi |
|
|
2574 | |
|
|
2575 | test -n "$ac_ct_CC" && break |
|
|
2576 | done |
|
|
2577 | |
|
|
2578 | CC=$ac_ct_CC |
|
|
2579 | fi |
|
|
2580 | |
|
|
2581 | fi |
|
|
2582 | |
|
|
2583 | |
|
|
2584 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
|
|
2585 | See \`config.log' for more details." >&5 |
|
|
2586 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
|
|
2587 | See \`config.log' for more details." >&2;} |
|
|
2588 | { (exit 1); exit 1; }; } |
|
|
2589 | |
|
|
2590 | # Provide some information about the compiler. |
|
|
2591 | echo "$as_me:$LINENO:" \ |
|
|
2592 | "checking for C compiler version" >&5 |
|
|
2593 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
2594 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
2595 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
2596 | ac_status=$? |
|
|
2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2598 | (exit $ac_status); } |
|
|
2599 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
2600 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
2601 | ac_status=$? |
|
|
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2603 | (exit $ac_status); } |
|
|
2604 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
2605 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
2606 | ac_status=$? |
|
|
2607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2608 | (exit $ac_status); } |
|
|
2609 | |
|
|
2610 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
|
|
2611 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
|
|
2612 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
|
|
2613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2614 | else |
|
|
2615 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2616 | /* confdefs.h. */ |
|
|
2617 | _ACEOF |
|
|
2618 | cat confdefs.h >>conftest.$ac_ext |
|
|
2619 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2620 | /* end confdefs.h. */ |
|
|
2621 | |
|
|
2622 | int |
|
|
2623 | main () |
|
|
2624 | { |
|
|
2625 | #ifndef __GNUC__ |
|
|
2626 | choke me |
|
|
2627 | #endif |
|
|
2628 | |
|
|
2629 | ; |
|
|
2630 | return 0; |
|
|
2631 | } |
|
|
2632 | _ACEOF |
|
|
2633 | rm -f conftest.$ac_objext |
|
|
2634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2635 | (eval $ac_compile) 2>conftest.er1 |
|
|
2636 | ac_status=$? |
|
|
2637 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2638 | rm -f conftest.er1 |
|
|
2639 | cat conftest.err >&5 |
|
|
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2641 | (exit $ac_status); } && |
|
|
2642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2644 | (eval $ac_try) 2>&5 |
|
|
2645 | ac_status=$? |
|
|
2646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2647 | (exit $ac_status); }; } && |
|
|
2648 | { ac_try='test -s conftest.$ac_objext' |
|
|
2649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2650 | (eval $ac_try) 2>&5 |
|
|
2651 | ac_status=$? |
|
|
2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2653 | (exit $ac_status); }; }; then |
|
|
2654 | ac_compiler_gnu=yes |
|
|
2655 | else |
|
|
2656 | echo "$as_me: failed program was:" >&5 |
|
|
2657 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2658 | |
|
|
2659 | ac_compiler_gnu=no |
|
|
2660 | fi |
|
|
2661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2662 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
|
2663 | |
|
|
2664 | fi |
|
|
2665 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
|
|
2666 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
|
|
2667 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
|
|
2668 | ac_test_CFLAGS=${CFLAGS+set} |
|
|
2669 | ac_save_CFLAGS=$CFLAGS |
|
|
2670 | CFLAGS="-g" |
|
|
2671 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
|
|
2672 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
|
|
2673 | if test "${ac_cv_prog_cc_g+set}" = set; then |
|
|
2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2675 | else |
|
|
2676 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2677 | /* confdefs.h. */ |
|
|
2678 | _ACEOF |
|
|
2679 | cat confdefs.h >>conftest.$ac_ext |
|
|
2680 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2681 | /* end confdefs.h. */ |
|
|
2682 | |
|
|
2683 | int |
|
|
2684 | main () |
|
|
2685 | { |
|
|
2686 | |
|
|
2687 | ; |
|
|
2688 | return 0; |
|
|
2689 | } |
|
|
2690 | _ACEOF |
|
|
2691 | rm -f conftest.$ac_objext |
|
|
2692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2693 | (eval $ac_compile) 2>conftest.er1 |
|
|
2694 | ac_status=$? |
|
|
2695 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2696 | rm -f conftest.er1 |
|
|
2697 | cat conftest.err >&5 |
|
|
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2699 | (exit $ac_status); } && |
|
|
2700 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2702 | (eval $ac_try) 2>&5 |
|
|
2703 | ac_status=$? |
|
|
2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2705 | (exit $ac_status); }; } && |
|
|
2706 | { ac_try='test -s conftest.$ac_objext' |
|
|
2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2708 | (eval $ac_try) 2>&5 |
|
|
2709 | ac_status=$? |
|
|
2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2711 | (exit $ac_status); }; }; then |
|
|
2712 | ac_cv_prog_cc_g=yes |
|
|
2713 | else |
|
|
2714 | echo "$as_me: failed program was:" >&5 |
|
|
2715 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2716 | |
|
|
2717 | ac_cv_prog_cc_g=no |
|
|
2718 | fi |
|
|
2719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2720 | fi |
|
|
2721 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
|
|
2722 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
|
|
2723 | if test "$ac_test_CFLAGS" = set; then |
|
|
2724 | CFLAGS=$ac_save_CFLAGS |
|
|
2725 | elif test $ac_cv_prog_cc_g = yes; then |
|
|
2726 | if test "$GCC" = yes; then |
|
|
2727 | CFLAGS="-g -O2" |
|
|
2728 | else |
|
|
2729 | CFLAGS="-g" |
|
|
2730 | fi |
|
|
2731 | else |
|
|
2732 | if test "$GCC" = yes; then |
|
|
2733 | CFLAGS="-O2" |
|
|
2734 | else |
|
|
2735 | CFLAGS= |
|
|
2736 | fi |
|
|
2737 | fi |
|
|
2738 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
|
|
2739 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
|
|
2740 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
|
|
2741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2742 | else |
|
|
2743 | ac_cv_prog_cc_stdc=no |
|
|
2744 | ac_save_CC=$CC |
|
|
2745 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2746 | /* confdefs.h. */ |
|
|
2747 | _ACEOF |
|
|
2748 | cat confdefs.h >>conftest.$ac_ext |
|
|
2749 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2750 | /* end confdefs.h. */ |
|
|
2751 | #include <stdarg.h> |
|
|
2752 | #include <stdio.h> |
|
|
2753 | #include <sys/types.h> |
|
|
2754 | #include <sys/stat.h> |
|
|
2755 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2756 | struct buf { int x; }; |
|
|
2757 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2758 | static char *e (p, i) |
|
|
2759 | char **p; |
|
|
2760 | int i; |
|
|
2761 | { |
|
|
2762 | return p[i]; |
|
|
2763 | } |
|
|
2764 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2765 | { |
|
|
2766 | char *s; |
|
|
2767 | va_list v; |
|
|
2768 | va_start (v,p); |
|
|
2769 | s = g (p, va_arg (v,int)); |
|
|
2770 | va_end (v); |
|
|
2771 | return s; |
|
|
2772 | } |
|
|
2773 | |
|
|
2774 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2775 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2776 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2777 | as 'x'. The following induces an error, until -std1 is added to get |
|
|
2778 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2779 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2780 | that's true only with -std1. */ |
|
|
2781 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2782 | |
|
|
2783 | int test (int i, double x); |
|
|
2784 | struct s1 {int (*f) (int a);}; |
|
|
2785 | struct s2 {int (*f) (double a);}; |
|
|
2786 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2787 | int argc; |
|
|
2788 | char **argv; |
|
|
2789 | int |
|
|
2790 | main () |
|
|
2791 | { |
|
|
2792 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2793 | ; |
|
|
2794 | return 0; |
|
|
2795 | } |
|
|
2796 | _ACEOF |
|
|
2797 | # Don't try gcc -ansi; that turns off useful extensions and |
|
|
2798 | # breaks some systems' header files. |
|
|
2799 | # AIX -qlanglvl=ansi |
|
|
2800 | # Ultrix and OSF/1 -std1 |
|
|
2801 | # HP-UX 10.20 and later -Ae |
|
|
2802 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
|
|
2803 | # SVR4 -Xc -D__EXTENSIONS__ |
|
|
2804 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2805 | do |
|
|
2806 | CC="$ac_save_CC $ac_arg" |
|
|
2807 | rm -f conftest.$ac_objext |
|
|
2808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2809 | (eval $ac_compile) 2>conftest.er1 |
|
|
2810 | ac_status=$? |
|
|
2811 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2812 | rm -f conftest.er1 |
|
|
2813 | cat conftest.err >&5 |
|
|
2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2815 | (exit $ac_status); } && |
|
|
2816 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2818 | (eval $ac_try) 2>&5 |
|
|
2819 | ac_status=$? |
|
|
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2821 | (exit $ac_status); }; } && |
|
|
2822 | { ac_try='test -s conftest.$ac_objext' |
|
|
2823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2824 | (eval $ac_try) 2>&5 |
|
|
2825 | ac_status=$? |
|
|
2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2827 | (exit $ac_status); }; }; then |
|
|
2828 | ac_cv_prog_cc_stdc=$ac_arg |
|
|
2829 | break |
|
|
2830 | else |
|
|
2831 | echo "$as_me: failed program was:" >&5 |
|
|
2832 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2833 | |
|
|
2834 | fi |
|
|
2835 | rm -f conftest.err conftest.$ac_objext |
|
|
2836 | done |
|
|
2837 | rm -f conftest.$ac_ext conftest.$ac_objext |
|
|
2838 | CC=$ac_save_CC |
|
|
2839 | |
|
|
2840 | fi |
|
|
2841 | |
|
|
2842 | case "x$ac_cv_prog_cc_stdc" in |
|
|
2843 | x|xno) |
|
|
2844 | echo "$as_me:$LINENO: result: none needed" >&5 |
|
|
2845 | echo "${ECHO_T}none needed" >&6 ;; |
|
|
2846 | *) |
|
|
2847 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
|
|
2848 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
|
|
2849 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
|
|
2850 | esac |
|
|
2851 | |
|
|
2852 | # Some people use a C++ compiler to compile C. Since we use `exit', |
|
|
2853 | # in C++ we need to declare it. In case someone uses the same compiler |
|
|
2854 | # for both compiling C and C++ we need to have the C++ compiler decide |
|
|
2855 | # the declaration of exit, since it's the most demanding environment. |
|
|
2856 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2857 | #ifndef __cplusplus |
|
|
2858 | choke me |
|
|
2859 | #endif |
|
|
2860 | _ACEOF |
|
|
2861 | rm -f conftest.$ac_objext |
|
|
2862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2863 | (eval $ac_compile) 2>conftest.er1 |
|
|
2864 | ac_status=$? |
|
|
2865 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2866 | rm -f conftest.er1 |
|
|
2867 | cat conftest.err >&5 |
|
|
2868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2869 | (exit $ac_status); } && |
|
|
2870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2872 | (eval $ac_try) 2>&5 |
|
|
2873 | ac_status=$? |
|
|
2874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2875 | (exit $ac_status); }; } && |
|
|
2876 | { ac_try='test -s conftest.$ac_objext' |
|
|
2877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2878 | (eval $ac_try) 2>&5 |
|
|
2879 | ac_status=$? |
|
|
2880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2881 | (exit $ac_status); }; }; then |
|
|
2882 | for ac_declaration in \ |
|
|
2883 | '' \ |
|
|
2884 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
|
|
2885 | 'extern "C" void std::exit (int); using std::exit;' \ |
|
|
2886 | 'extern "C" void exit (int) throw ();' \ |
|
|
2887 | 'extern "C" void exit (int);' \ |
|
|
2888 | 'void exit (int);' |
|
|
2889 | do |
|
|
2890 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2891 | /* confdefs.h. */ |
|
|
2892 | _ACEOF |
|
|
2893 | cat confdefs.h >>conftest.$ac_ext |
|
|
2894 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2895 | /* end confdefs.h. */ |
|
|
2896 | $ac_declaration |
|
|
2897 | #include <stdlib.h> |
|
|
2898 | int |
|
|
2899 | main () |
|
|
2900 | { |
|
|
2901 | exit (42); |
|
|
2902 | ; |
|
|
2903 | return 0; |
|
|
2904 | } |
|
|
2905 | _ACEOF |
|
|
2906 | rm -f conftest.$ac_objext |
|
|
2907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2908 | (eval $ac_compile) 2>conftest.er1 |
|
|
2909 | ac_status=$? |
|
|
2910 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2911 | rm -f conftest.er1 |
|
|
2912 | cat conftest.err >&5 |
|
|
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2914 | (exit $ac_status); } && |
|
|
2915 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2917 | (eval $ac_try) 2>&5 |
|
|
2918 | ac_status=$? |
|
|
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2920 | (exit $ac_status); }; } && |
|
|
2921 | { ac_try='test -s conftest.$ac_objext' |
|
|
2922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2923 | (eval $ac_try) 2>&5 |
|
|
2924 | ac_status=$? |
|
|
2925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2926 | (exit $ac_status); }; }; then |
|
|
2927 | : |
|
|
2928 | else |
|
|
2929 | echo "$as_me: failed program was:" >&5 |
|
|
2930 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2931 | |
|
|
2932 | continue |
|
|
2933 | fi |
|
|
2934 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2935 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2936 | /* confdefs.h. */ |
|
|
2937 | _ACEOF |
|
|
2938 | cat confdefs.h >>conftest.$ac_ext |
|
|
2939 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2940 | /* end confdefs.h. */ |
|
|
2941 | $ac_declaration |
|
|
2942 | int |
|
|
2943 | main () |
|
|
2944 | { |
|
|
2945 | exit (42); |
|
|
2946 | ; |
|
|
2947 | return 0; |
|
|
2948 | } |
|
|
2949 | _ACEOF |
|
|
2950 | rm -f conftest.$ac_objext |
|
|
2951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2952 | (eval $ac_compile) 2>conftest.er1 |
|
|
2953 | ac_status=$? |
|
|
2954 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2955 | rm -f conftest.er1 |
|
|
2956 | cat conftest.err >&5 |
|
|
2957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2958 | (exit $ac_status); } && |
|
|
2959 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
2960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2961 | (eval $ac_try) 2>&5 |
|
|
2962 | ac_status=$? |
|
|
2963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2964 | (exit $ac_status); }; } && |
|
|
2965 | { ac_try='test -s conftest.$ac_objext' |
|
|
2966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2967 | (eval $ac_try) 2>&5 |
|
|
2968 | ac_status=$? |
|
|
2969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2970 | (exit $ac_status); }; }; then |
|
|
2971 | break |
|
|
2972 | else |
|
|
2973 | echo "$as_me: failed program was:" >&5 |
|
|
2974 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2975 | |
|
|
2976 | fi |
|
|
2977 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2978 | done |
|
|
2979 | rm -f conftest* |
|
|
2980 | if test -n "$ac_declaration"; then |
|
|
2981 | echo '#ifdef __cplusplus' >>confdefs.h |
|
|
2982 | echo $ac_declaration >>confdefs.h |
|
|
2983 | echo '#endif' >>confdefs.h |
|
|
2984 | fi |
|
|
2985 | |
|
|
2986 | else |
|
|
2987 | echo "$as_me: failed program was:" >&5 |
|
|
2988 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2989 | |
|
|
2990 | fi |
|
|
2991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
2992 | ac_ext=c |
|
|
2993 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2997 | |
|
|
2998 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
|
|
2999 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 |
|
|
3000 | if test "${lt_cv_path_SED+set}" = set; then |
|
|
3001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3002 | else |
|
|
3003 | # Loop through the user's path and test for sed and gsed. |
|
|
3004 | # Then use that list of sed's as ones to test for truncation. |
|
|
3005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3006 | for as_dir in $PATH |
|
|
3007 | do |
|
|
3008 | IFS=$as_save_IFS |
|
|
3009 | test -z "$as_dir" && as_dir=. |
|
|
3010 | for lt_ac_prog in sed gsed; do |
|
|
3011 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3012 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
|
|
3013 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
|
|
3014 | fi |
|
|
3015 | done |
|
|
3016 | done |
|
|
3017 | done |
|
|
3018 | lt_ac_max=0 |
|
|
3019 | lt_ac_count=0 |
|
|
3020 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
|
|
3021 | # along with /bin/sed that truncates output. |
|
|
3022 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
|
|
3023 | test ! -f $lt_ac_sed && continue |
|
|
3024 | cat /dev/null > conftest.in |
|
|
3025 | lt_ac_count=0 |
|
|
3026 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
|
|
3027 | # Check for GNU sed and select it if it is found. |
|
|
3028 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
|
|
3029 | lt_cv_path_SED=$lt_ac_sed |
|
|
3030 | break |
|
|
3031 | fi |
|
|
3032 | while true; do |
|
|
3033 | cat conftest.in conftest.in >conftest.tmp |
|
|
3034 | mv conftest.tmp conftest.in |
|
|
3035 | cp conftest.in conftest.nl |
|
|
3036 | echo >>conftest.nl |
|
|
3037 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
|
|
3038 | cmp -s conftest.out conftest.nl || break |
|
|
3039 | # 10000 chars as input seems more than enough |
|
|
3040 | test $lt_ac_count -gt 10 && break |
|
|
3041 | lt_ac_count=`expr $lt_ac_count + 1` |
|
|
3042 | if test $lt_ac_count -gt $lt_ac_max; then |
|
|
3043 | lt_ac_max=$lt_ac_count |
|
|
3044 | lt_cv_path_SED=$lt_ac_sed |
|
|
3045 | fi |
|
|
3046 | done |
|
|
3047 | done |
|
|
3048 | |
|
|
3049 | fi |
|
|
3050 | |
|
|
3051 | SED=$lt_cv_path_SED |
|
|
3052 | echo "$as_me:$LINENO: result: $SED" >&5 |
|
|
3053 | echo "${ECHO_T}$SED" >&6 |
|
|
3054 | |
|
|
3055 | echo "$as_me:$LINENO: checking for egrep" >&5 |
|
|
3056 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
|
|
3057 | if test "${ac_cv_prog_egrep+set}" = set; then |
|
|
3058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3059 | else |
|
|
3060 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
|
|
3061 | then ac_cv_prog_egrep='grep -E' |
|
|
3062 | else ac_cv_prog_egrep='egrep' |
|
|
3063 | fi |
|
|
3064 | fi |
|
|
3065 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
|
|
3066 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
|
|
3067 | EGREP=$ac_cv_prog_egrep |
|
|
3068 | |
|
|
3069 | |
|
|
3070 | |
|
|
3071 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
3072 | if test "${with_gnu_ld+set}" = set; then |
|
|
3073 | withval="$with_gnu_ld" |
|
|
3074 | test "$withval" = no || with_gnu_ld=yes |
|
|
3075 | else |
|
|
3076 | with_gnu_ld=no |
|
|
3077 | fi; |
|
|
3078 | ac_prog=ld |
|
|
3079 | if test "$GCC" = yes; then |
|
|
3080 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
3081 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
|
3082 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
|
3083 | case $host in |
|
|
3084 | *-*-mingw*) |
|
|
3085 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
3086 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
3087 | *) |
|
|
3088 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
3089 | esac |
|
|
3090 | case $ac_prog in |
|
|
3091 | # Accept absolute paths. |
|
|
3092 | [\\/]* | ?:[\\/]*) |
|
|
3093 | re_direlt='/[^/][^/]*/\.\./' |
|
|
3094 | # Canonicalize the pathname of ld |
|
|
3095 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
3096 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
3097 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
3098 | done |
|
|
3099 | test -z "$LD" && LD="$ac_prog" |
|
|
3100 | ;; |
|
|
3101 | "") |
|
|
3102 | # If it fails, then pretend we aren't using GCC. |
|
|
3103 | ac_prog=ld |
|
|
3104 | ;; |
|
|
3105 | *) |
|
|
3106 | # If it is relative, then search for the first ld in PATH. |
|
|
3107 | with_gnu_ld=unknown |
|
|
3108 | ;; |
|
|
3109 | esac |
|
|
3110 | elif test "$with_gnu_ld" = yes; then |
|
|
3111 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
3112 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
3113 | else |
|
|
3114 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
3115 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
3116 | fi |
|
|
3117 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
3118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3119 | else |
|
|
3120 | if test -z "$LD"; then |
|
|
3121 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
3122 | for ac_dir in $PATH; do |
|
|
3123 | IFS="$lt_save_ifs" |
|
|
3124 | test -z "$ac_dir" && ac_dir=. |
|
|
3125 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
3126 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
3127 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
3128 | # but apparently some variants of GNU ld only accept -v. |
|
|
3129 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
3130 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
|
3131 | *GNU* | *'with BFD'*) |
|
|
3132 | test "$with_gnu_ld" != no && break |
|
|
3133 | ;; |
|
|
3134 | *) |
|
|
3135 | test "$with_gnu_ld" != yes && break |
|
|
3136 | ;; |
|
|
3137 | esac |
|
|
3138 | fi |
|
|
3139 | done |
|
|
3140 | IFS="$lt_save_ifs" |
|
|
3141 | else |
|
|
3142 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
3143 | fi |
|
|
3144 | fi |
|
|
3145 | |
|
|
3146 | LD="$lt_cv_path_LD" |
|
|
3147 | if test -n "$LD"; then |
|
|
3148 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
3149 | echo "${ECHO_T}$LD" >&6 |
|
|
3150 | else |
|
|
3151 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3152 | echo "${ECHO_T}no" >&6 |
|
|
3153 | fi |
|
|
3154 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
3155 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
3156 | { (exit 1); exit 1; }; } |
|
|
3157 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
3158 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
3159 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3161 | else |
|
|
3162 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
|
3163 | case `$LD -v 2>&1 </dev/null` in |
|
|
3164 | *GNU* | *'with BFD'*) |
|
|
3165 | lt_cv_prog_gnu_ld=yes |
|
|
3166 | ;; |
|
|
3167 | *) |
|
|
3168 | lt_cv_prog_gnu_ld=no |
2041 | ;; |
3169 | ;; |
2042 | esac |
3170 | esac |
2043 | fi |
3171 | fi |
2044 | RM=$ac_cv_path_RM |
3172 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
3173 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
3174 | with_gnu_ld=$lt_cv_prog_gnu_ld |
2045 | |
3175 | |
|
|
3176 | |
|
|
3177 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
3178 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
3179 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3181 | else |
|
|
3182 | lt_cv_ld_reload_flag='-r' |
|
|
3183 | fi |
|
|
3184 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
3185 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
3186 | reload_flag=$lt_cv_ld_reload_flag |
|
|
3187 | case $reload_flag in |
|
|
3188 | "" | " "*) ;; |
|
|
3189 | *) reload_flag=" $reload_flag" ;; |
|
|
3190 | esac |
|
|
3191 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3192 | case $host_os in |
|
|
3193 | darwin*) |
|
|
3194 | if test "$GCC" = yes; then |
|
|
3195 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
|
3196 | else |
|
|
3197 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
3198 | fi |
|
|
3199 | ;; |
|
|
3200 | esac |
|
|
3201 | |
|
|
3202 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
3203 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
3204 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
3205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3206 | else |
2046 | if test -n "$RM"; then |
3207 | if test -n "$NM"; then |
|
|
3208 | # Let the user override the test. |
|
|
3209 | lt_cv_path_NM="$NM" |
|
|
3210 | else |
|
|
3211 | lt_nm_to_check="${ac_tool_prefix}nm" |
|
|
3212 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
|
3213 | lt_nm_to_check="$lt_nm_to_check nm" |
|
|
3214 | fi |
|
|
3215 | for lt_tmp_nm in $lt_nm_to_check; do |
|
|
3216 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
3217 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
|
3218 | IFS="$lt_save_ifs" |
|
|
3219 | test -z "$ac_dir" && ac_dir=. |
|
|
3220 | tmp_nm="$ac_dir/$lt_tmp_nm" |
|
|
3221 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
|
3222 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
3223 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
3224 | # nm: unknown option "B" ignored |
|
|
3225 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
3226 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
|
3227 | */dev/null* | *'Invalid file or object type'*) |
|
|
3228 | lt_cv_path_NM="$tmp_nm -B" |
|
|
3229 | break |
|
|
3230 | ;; |
|
|
3231 | *) |
|
|
3232 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
|
3233 | */dev/null*) |
|
|
3234 | lt_cv_path_NM="$tmp_nm -p" |
|
|
3235 | break |
|
|
3236 | ;; |
|
|
3237 | *) |
|
|
3238 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
3239 | continue # so that we can try to find one that supports BSD flags |
|
|
3240 | ;; |
|
|
3241 | esac |
|
|
3242 | ;; |
|
|
3243 | esac |
|
|
3244 | fi |
|
|
3245 | done |
|
|
3246 | IFS="$lt_save_ifs" |
|
|
3247 | done |
|
|
3248 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
3249 | fi |
|
|
3250 | fi |
2047 | echo "$as_me:$LINENO: result: $RM" >&5 |
3251 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
2048 | echo "${ECHO_T}$RM" >&6 |
3252 | echo "${ECHO_T}$lt_cv_path_NM" >&6 |
2049 | else |
3253 | NM="$lt_cv_path_NM" |
|
|
3254 | |
|
|
3255 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
3256 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
3257 | LN_S=$as_ln_s |
|
|
3258 | if test "$LN_S" = "ln -s"; then |
2050 | echo "$as_me:$LINENO: result: no" >&5 |
3259 | echo "$as_me:$LINENO: result: yes" >&5 |
2051 | echo "${ECHO_T}no" >&6 |
3260 | echo "${ECHO_T}yes" >&6 |
|
|
3261 | else |
|
|
3262 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
3263 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
3264 | fi |
|
|
3265 | |
|
|
3266 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
|
|
3267 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 |
|
|
3268 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
3269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3270 | else |
|
|
3271 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
3272 | lt_cv_file_magic_test_file= |
|
|
3273 | lt_cv_deplibs_check_method='unknown' |
|
|
3274 | # Need to set the preceding variable on all platforms that support |
|
|
3275 | # interlibrary dependencies. |
|
|
3276 | # 'none' -- dependencies not supported. |
|
|
3277 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
3278 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
3279 | # 'test_compile' -- check by making test program. |
|
|
3280 | # 'file_magic [[regex]]' -- check by looking for files in library path |
|
|
3281 | # which responds to the $file_magic_cmd with a given extended regex. |
|
|
3282 | # If you have `file' or equivalent on your system and you're not sure |
|
|
3283 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
3284 | |
|
|
3285 | case $host_os in |
|
|
3286 | aix4* | aix5*) |
|
|
3287 | lt_cv_deplibs_check_method=pass_all |
|
|
3288 | ;; |
|
|
3289 | |
|
|
3290 | beos*) |
|
|
3291 | lt_cv_deplibs_check_method=pass_all |
|
|
3292 | ;; |
|
|
3293 | |
|
|
3294 | bsdi[45]*) |
|
|
3295 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
3296 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
3297 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
3298 | ;; |
|
|
3299 | |
|
|
3300 | cygwin*) |
|
|
3301 | # func_win32_libid is a shell function defined in ltmain.sh |
|
|
3302 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
|
3303 | lt_cv_file_magic_cmd='func_win32_libid' |
|
|
3304 | ;; |
|
|
3305 | |
|
|
3306 | mingw* | pw32*) |
|
|
3307 | # Base MSYS/MinGW do not provide the 'file' command needed by |
|
|
3308 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
|
|
3309 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
3310 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
3311 | ;; |
|
|
3312 | |
|
|
3313 | darwin* | rhapsody*) |
|
|
3314 | lt_cv_deplibs_check_method=pass_all |
|
|
3315 | ;; |
|
|
3316 | |
|
|
3317 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
3318 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3319 | case $host_cpu in |
|
|
3320 | i*86 ) |
|
|
3321 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
3322 | # Let's accept both of them until this is cleared up. |
|
|
3323 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
|
3324 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3325 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
3326 | ;; |
|
|
3327 | esac |
|
|
3328 | else |
|
|
3329 | lt_cv_deplibs_check_method=pass_all |
|
|
3330 | fi |
|
|
3331 | ;; |
|
|
3332 | |
|
|
3333 | gnu*) |
|
|
3334 | lt_cv_deplibs_check_method=pass_all |
|
|
3335 | ;; |
|
|
3336 | |
|
|
3337 | hpux10.20* | hpux11*) |
|
|
3338 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3339 | case $host_cpu in |
|
|
3340 | ia64*) |
|
|
3341 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
|
3342 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
|
3343 | ;; |
|
|
3344 | hppa*64*) |
|
|
3345 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
|
|
3346 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
|
3347 | ;; |
|
|
3348 | *) |
|
|
3349 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
3350 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
3351 | ;; |
|
|
3352 | esac |
|
|
3353 | ;; |
|
|
3354 | |
|
|
3355 | interix3*) |
|
|
3356 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
|
3357 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
|
3358 | ;; |
|
|
3359 | |
|
|
3360 | irix5* | irix6* | nonstopux*) |
|
|
3361 | case $LD in |
|
|
3362 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
3363 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
3364 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
3365 | *) libmagic=never-match;; |
|
|
3366 | esac |
|
|
3367 | lt_cv_deplibs_check_method=pass_all |
|
|
3368 | ;; |
|
|
3369 | |
|
|
3370 | # This must be Linux ELF. |
|
|
3371 | linux*) |
|
|
3372 | lt_cv_deplibs_check_method=pass_all |
|
|
3373 | ;; |
|
|
3374 | |
|
|
3375 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
3376 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
3377 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
|
3378 | else |
|
|
3379 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
|
3380 | fi |
|
|
3381 | ;; |
|
|
3382 | |
|
|
3383 | newos6*) |
|
|
3384 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
3385 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
3386 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
3387 | ;; |
|
|
3388 | |
|
|
3389 | nto-qnx*) |
|
|
3390 | lt_cv_deplibs_check_method=unknown |
|
|
3391 | ;; |
|
|
3392 | |
|
|
3393 | openbsd*) |
|
|
3394 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
3395 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
|
3396 | else |
|
|
3397 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
|
3398 | fi |
|
|
3399 | ;; |
|
|
3400 | |
|
|
3401 | osf3* | osf4* | osf5*) |
|
|
3402 | lt_cv_deplibs_check_method=pass_all |
|
|
3403 | ;; |
|
|
3404 | |
|
|
3405 | solaris*) |
|
|
3406 | lt_cv_deplibs_check_method=pass_all |
|
|
3407 | ;; |
|
|
3408 | |
|
|
3409 | sysv4 | sysv4.3*) |
|
|
3410 | case $host_vendor in |
|
|
3411 | motorola) |
|
|
3412 | 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]' |
|
|
3413 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
3414 | ;; |
|
|
3415 | ncr) |
|
|
3416 | lt_cv_deplibs_check_method=pass_all |
|
|
3417 | ;; |
|
|
3418 | sequent) |
|
|
3419 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3420 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
3421 | ;; |
|
|
3422 | sni) |
|
|
3423 | lt_cv_file_magic_cmd='/bin/file' |
|
|
3424 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
3425 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
3426 | ;; |
|
|
3427 | siemens) |
|
|
3428 | lt_cv_deplibs_check_method=pass_all |
|
|
3429 | ;; |
|
|
3430 | pc) |
|
|
3431 | lt_cv_deplibs_check_method=pass_all |
|
|
3432 | ;; |
|
|
3433 | esac |
|
|
3434 | ;; |
|
|
3435 | |
|
|
3436 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
3437 | lt_cv_deplibs_check_method=pass_all |
|
|
3438 | ;; |
|
|
3439 | esac |
|
|
3440 | |
|
|
3441 | fi |
|
|
3442 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
3443 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
3444 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
3445 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
3446 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
3447 | |
|
|
3448 | |
|
|
3449 | |
|
|
3450 | |
|
|
3451 | # If no C compiler was specified, use CC. |
|
|
3452 | LTCC=${LTCC-"$CC"} |
|
|
3453 | |
|
|
3454 | # If no C compiler flags were specified, use CFLAGS. |
|
|
3455 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
3456 | |
|
|
3457 | # Allow CC to be a program name with arguments. |
|
|
3458 | compiler=$CC |
|
|
3459 | |
|
|
3460 | |
|
|
3461 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
3462 | if test "${enable_libtool_lock+set}" = set; then |
|
|
3463 | enableval="$enable_libtool_lock" |
|
|
3464 | |
2052 | fi |
3465 | fi; |
|
|
3466 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
2053 | |
3467 | |
|
|
3468 | # Some flags need to be propagated to the compiler or linker for good |
|
|
3469 | # libtool support. |
|
|
3470 | case $host in |
|
|
3471 | ia64-*-hpux*) |
|
|
3472 | # Find out which ABI we are using. |
|
|
3473 | echo 'int i;' > conftest.$ac_ext |
|
|
3474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3475 | (eval $ac_compile) 2>&5 |
|
|
3476 | ac_status=$? |
|
|
3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3478 | (exit $ac_status); }; then |
|
|
3479 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3480 | *ELF-32*) |
|
|
3481 | HPUX_IA64_MODE="32" |
|
|
3482 | ;; |
|
|
3483 | *ELF-64*) |
|
|
3484 | HPUX_IA64_MODE="64" |
|
|
3485 | ;; |
|
|
3486 | esac |
|
|
3487 | fi |
|
|
3488 | rm -rf conftest* |
|
|
3489 | ;; |
|
|
3490 | *-*-irix6*) |
|
|
3491 | # Find out which ABI we are using. |
|
|
3492 | echo '#line 3492 "configure"' > conftest.$ac_ext |
|
|
3493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3494 | (eval $ac_compile) 2>&5 |
|
|
3495 | ac_status=$? |
|
|
3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3497 | (exit $ac_status); }; then |
|
|
3498 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
3499 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3500 | *32-bit*) |
|
|
3501 | LD="${LD-ld} -melf32bsmip" |
|
|
3502 | ;; |
|
|
3503 | *N32*) |
|
|
3504 | LD="${LD-ld} -melf32bmipn32" |
|
|
3505 | ;; |
|
|
3506 | *64-bit*) |
|
|
3507 | LD="${LD-ld} -melf64bmip" |
|
|
3508 | ;; |
|
|
3509 | esac |
|
|
3510 | else |
|
|
3511 | case `/usr/bin/file conftest.$ac_objext` in |
|
|
3512 | *32-bit*) |
|
|
3513 | LD="${LD-ld} -32" |
|
|
3514 | ;; |
|
|
3515 | *N32*) |
|
|
3516 | LD="${LD-ld} -n32" |
|
|
3517 | ;; |
|
|
3518 | *64-bit*) |
|
|
3519 | LD="${LD-ld} -64" |
|
|
3520 | ;; |
|
|
3521 | esac |
|
|
3522 | fi |
|
|
3523 | fi |
|
|
3524 | rm -rf conftest* |
|
|
3525 | ;; |
2054 | |
3526 | |
|
|
3527 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
|
|
3528 | # Find out which ABI we are using. |
|
|
3529 | echo 'int i;' > conftest.$ac_ext |
|
|
3530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3531 | (eval $ac_compile) 2>&5 |
|
|
3532 | ac_status=$? |
|
|
3533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3534 | (exit $ac_status); }; then |
|
|
3535 | case `/usr/bin/file conftest.o` in |
|
|
3536 | *32-bit*) |
|
|
3537 | case $host in |
|
|
3538 | x86_64-*linux*) |
|
|
3539 | LD="${LD-ld} -m elf_i386" |
|
|
3540 | ;; |
|
|
3541 | ppc64-*linux*|powerpc64-*linux*) |
|
|
3542 | LD="${LD-ld} -m elf32ppclinux" |
|
|
3543 | ;; |
|
|
3544 | s390x-*linux*) |
|
|
3545 | LD="${LD-ld} -m elf_s390" |
|
|
3546 | ;; |
|
|
3547 | sparc64-*linux*) |
|
|
3548 | LD="${LD-ld} -m elf32_sparc" |
|
|
3549 | ;; |
|
|
3550 | esac |
|
|
3551 | ;; |
|
|
3552 | *64-bit*) |
|
|
3553 | case $host in |
|
|
3554 | x86_64-*linux*) |
|
|
3555 | LD="${LD-ld} -m elf_x86_64" |
|
|
3556 | ;; |
|
|
3557 | ppc*-*linux*|powerpc*-*linux*) |
|
|
3558 | LD="${LD-ld} -m elf64ppc" |
|
|
3559 | ;; |
|
|
3560 | s390*-*linux*) |
|
|
3561 | LD="${LD-ld} -m elf64_s390" |
|
|
3562 | ;; |
|
|
3563 | sparc*-*linux*) |
|
|
3564 | LD="${LD-ld} -m elf64_sparc" |
|
|
3565 | ;; |
|
|
3566 | esac |
|
|
3567 | ;; |
|
|
3568 | esac |
|
|
3569 | fi |
|
|
3570 | rm -rf conftest* |
|
|
3571 | ;; |
2055 | |
3572 | |
|
|
3573 | *-*-sco3.2v5*) |
|
|
3574 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
3575 | SAVE_CFLAGS="$CFLAGS" |
|
|
3576 | CFLAGS="$CFLAGS -belf" |
|
|
3577 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
3578 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
3579 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3581 | else |
|
|
3582 | ac_ext=c |
|
|
3583 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3587 | |
|
|
3588 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3589 | /* confdefs.h. */ |
|
|
3590 | _ACEOF |
|
|
3591 | cat confdefs.h >>conftest.$ac_ext |
|
|
3592 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3593 | /* end confdefs.h. */ |
|
|
3594 | |
|
|
3595 | int |
|
|
3596 | main () |
|
|
3597 | { |
|
|
3598 | |
|
|
3599 | ; |
|
|
3600 | return 0; |
|
|
3601 | } |
|
|
3602 | _ACEOF |
|
|
3603 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3604 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3605 | (eval $ac_link) 2>conftest.er1 |
|
|
3606 | ac_status=$? |
|
|
3607 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3608 | rm -f conftest.er1 |
|
|
3609 | cat conftest.err >&5 |
|
|
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3611 | (exit $ac_status); } && |
|
|
3612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3614 | (eval $ac_try) 2>&5 |
|
|
3615 | ac_status=$? |
|
|
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3617 | (exit $ac_status); }; } && |
|
|
3618 | { ac_try='test -s conftest$ac_exeext' |
|
|
3619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3620 | (eval $ac_try) 2>&5 |
|
|
3621 | ac_status=$? |
|
|
3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3623 | (exit $ac_status); }; }; then |
|
|
3624 | lt_cv_cc_needs_belf=yes |
|
|
3625 | else |
|
|
3626 | echo "$as_me: failed program was:" >&5 |
|
|
3627 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3628 | |
|
|
3629 | lt_cv_cc_needs_belf=no |
|
|
3630 | fi |
|
|
3631 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3632 | conftest$ac_exeext conftest.$ac_ext |
|
|
3633 | ac_ext=c |
|
|
3634 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3635 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3636 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3637 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3638 | |
|
|
3639 | fi |
|
|
3640 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
3641 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
3642 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
3643 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
3644 | CFLAGS="$SAVE_CFLAGS" |
|
|
3645 | fi |
|
|
3646 | ;; |
|
|
3647 | sparc*-*solaris*) |
|
|
3648 | # Find out which ABI we are using. |
|
|
3649 | echo 'int i;' > conftest.$ac_ext |
|
|
3650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3651 | (eval $ac_compile) 2>&5 |
|
|
3652 | ac_status=$? |
|
|
3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3654 | (exit $ac_status); }; then |
|
|
3655 | case `/usr/bin/file conftest.o` in |
|
|
3656 | *64-bit*) |
|
|
3657 | case $lt_cv_prog_gnu_ld in |
|
|
3658 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
|
3659 | *) LD="${LD-ld} -64" ;; |
|
|
3660 | esac |
|
|
3661 | ;; |
|
|
3662 | esac |
|
|
3663 | fi |
|
|
3664 | rm -rf conftest* |
|
|
3665 | ;; |
|
|
3666 | |
|
|
3667 | |
|
|
3668 | esac |
|
|
3669 | |
|
|
3670 | need_locks="$enable_libtool_lock" |
|
|
3671 | |
|
|
3672 | |
2056 | ac_ext=cc |
3673 | ac_ext=c |
|
|
3674 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3675 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3676 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3677 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3678 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
|
|
3679 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
|
|
3680 | # On Suns, sometimes $CPP names a directory. |
|
|
3681 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
3682 | CPP= |
|
|
3683 | fi |
|
|
3684 | if test -z "$CPP"; then |
|
|
3685 | if test "${ac_cv_prog_CPP+set}" = set; then |
|
|
3686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3687 | else |
|
|
3688 | # Double quotes because CPP needs to be expanded |
|
|
3689 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
3690 | do |
|
|
3691 | ac_preproc_ok=false |
|
|
3692 | for ac_c_preproc_warn_flag in '' yes |
|
|
3693 | do |
|
|
3694 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3695 | # with a fresh cross-compiler works. |
|
|
3696 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3697 | # <limits.h> exists even on freestanding compilers. |
|
|
3698 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3699 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3700 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3701 | /* confdefs.h. */ |
|
|
3702 | _ACEOF |
|
|
3703 | cat confdefs.h >>conftest.$ac_ext |
|
|
3704 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3705 | /* end confdefs.h. */ |
|
|
3706 | #ifdef __STDC__ |
|
|
3707 | # include <limits.h> |
|
|
3708 | #else |
|
|
3709 | # include <assert.h> |
|
|
3710 | #endif |
|
|
3711 | Syntax error |
|
|
3712 | _ACEOF |
|
|
3713 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3714 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3715 | ac_status=$? |
|
|
3716 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3717 | rm -f conftest.er1 |
|
|
3718 | cat conftest.err >&5 |
|
|
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3720 | (exit $ac_status); } >/dev/null; then |
|
|
3721 | if test -s conftest.err; then |
|
|
3722 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3723 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3724 | else |
|
|
3725 | ac_cpp_err= |
|
|
3726 | fi |
|
|
3727 | else |
|
|
3728 | ac_cpp_err=yes |
|
|
3729 | fi |
|
|
3730 | if test -z "$ac_cpp_err"; then |
|
|
3731 | : |
|
|
3732 | else |
|
|
3733 | echo "$as_me: failed program was:" >&5 |
|
|
3734 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3735 | |
|
|
3736 | # Broken: fails on valid input. |
|
|
3737 | continue |
|
|
3738 | fi |
|
|
3739 | rm -f conftest.err conftest.$ac_ext |
|
|
3740 | |
|
|
3741 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3742 | # can be detected and how. |
|
|
3743 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3744 | /* confdefs.h. */ |
|
|
3745 | _ACEOF |
|
|
3746 | cat confdefs.h >>conftest.$ac_ext |
|
|
3747 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3748 | /* end confdefs.h. */ |
|
|
3749 | #include <ac_nonexistent.h> |
|
|
3750 | _ACEOF |
|
|
3751 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3752 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3753 | ac_status=$? |
|
|
3754 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3755 | rm -f conftest.er1 |
|
|
3756 | cat conftest.err >&5 |
|
|
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3758 | (exit $ac_status); } >/dev/null; then |
|
|
3759 | if test -s conftest.err; then |
|
|
3760 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3762 | else |
|
|
3763 | ac_cpp_err= |
|
|
3764 | fi |
|
|
3765 | else |
|
|
3766 | ac_cpp_err=yes |
|
|
3767 | fi |
|
|
3768 | if test -z "$ac_cpp_err"; then |
|
|
3769 | # Broken: success on invalid input. |
|
|
3770 | continue |
|
|
3771 | else |
|
|
3772 | echo "$as_me: failed program was:" >&5 |
|
|
3773 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3774 | |
|
|
3775 | # Passes both tests. |
|
|
3776 | ac_preproc_ok=: |
|
|
3777 | break |
|
|
3778 | fi |
|
|
3779 | rm -f conftest.err conftest.$ac_ext |
|
|
3780 | |
|
|
3781 | done |
|
|
3782 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3783 | rm -f conftest.err conftest.$ac_ext |
|
|
3784 | if $ac_preproc_ok; then |
|
|
3785 | break |
|
|
3786 | fi |
|
|
3787 | |
|
|
3788 | done |
|
|
3789 | ac_cv_prog_CPP=$CPP |
|
|
3790 | |
|
|
3791 | fi |
|
|
3792 | CPP=$ac_cv_prog_CPP |
|
|
3793 | else |
|
|
3794 | ac_cv_prog_CPP=$CPP |
|
|
3795 | fi |
|
|
3796 | echo "$as_me:$LINENO: result: $CPP" >&5 |
|
|
3797 | echo "${ECHO_T}$CPP" >&6 |
|
|
3798 | ac_preproc_ok=false |
|
|
3799 | for ac_c_preproc_warn_flag in '' yes |
|
|
3800 | do |
|
|
3801 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3802 | # with a fresh cross-compiler works. |
|
|
3803 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3804 | # <limits.h> exists even on freestanding compilers. |
|
|
3805 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3806 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3807 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3808 | /* confdefs.h. */ |
|
|
3809 | _ACEOF |
|
|
3810 | cat confdefs.h >>conftest.$ac_ext |
|
|
3811 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3812 | /* end confdefs.h. */ |
|
|
3813 | #ifdef __STDC__ |
|
|
3814 | # include <limits.h> |
|
|
3815 | #else |
|
|
3816 | # include <assert.h> |
|
|
3817 | #endif |
|
|
3818 | Syntax error |
|
|
3819 | _ACEOF |
|
|
3820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3822 | ac_status=$? |
|
|
3823 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3824 | rm -f conftest.er1 |
|
|
3825 | cat conftest.err >&5 |
|
|
3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3827 | (exit $ac_status); } >/dev/null; then |
|
|
3828 | if test -s conftest.err; then |
|
|
3829 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3830 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3831 | else |
|
|
3832 | ac_cpp_err= |
|
|
3833 | fi |
|
|
3834 | else |
|
|
3835 | ac_cpp_err=yes |
|
|
3836 | fi |
|
|
3837 | if test -z "$ac_cpp_err"; then |
|
|
3838 | : |
|
|
3839 | else |
|
|
3840 | echo "$as_me: failed program was:" >&5 |
|
|
3841 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3842 | |
|
|
3843 | # Broken: fails on valid input. |
|
|
3844 | continue |
|
|
3845 | fi |
|
|
3846 | rm -f conftest.err conftest.$ac_ext |
|
|
3847 | |
|
|
3848 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3849 | # can be detected and how. |
|
|
3850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3851 | /* confdefs.h. */ |
|
|
3852 | _ACEOF |
|
|
3853 | cat confdefs.h >>conftest.$ac_ext |
|
|
3854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3855 | /* end confdefs.h. */ |
|
|
3856 | #include <ac_nonexistent.h> |
|
|
3857 | _ACEOF |
|
|
3858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3860 | ac_status=$? |
|
|
3861 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3862 | rm -f conftest.er1 |
|
|
3863 | cat conftest.err >&5 |
|
|
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3865 | (exit $ac_status); } >/dev/null; then |
|
|
3866 | if test -s conftest.err; then |
|
|
3867 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
3868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
3869 | else |
|
|
3870 | ac_cpp_err= |
|
|
3871 | fi |
|
|
3872 | else |
|
|
3873 | ac_cpp_err=yes |
|
|
3874 | fi |
|
|
3875 | if test -z "$ac_cpp_err"; then |
|
|
3876 | # Broken: success on invalid input. |
|
|
3877 | continue |
|
|
3878 | else |
|
|
3879 | echo "$as_me: failed program was:" >&5 |
|
|
3880 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3881 | |
|
|
3882 | # Passes both tests. |
|
|
3883 | ac_preproc_ok=: |
|
|
3884 | break |
|
|
3885 | fi |
|
|
3886 | rm -f conftest.err conftest.$ac_ext |
|
|
3887 | |
|
|
3888 | done |
|
|
3889 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3890 | rm -f conftest.err conftest.$ac_ext |
|
|
3891 | if $ac_preproc_ok; then |
|
|
3892 | : |
|
|
3893 | else |
|
|
3894 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3895 | See \`config.log' for more details." >&5 |
|
|
3896 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
|
|
3897 | See \`config.log' for more details." >&2;} |
|
|
3898 | { (exit 1); exit 1; }; } |
|
|
3899 | fi |
|
|
3900 | |
|
|
3901 | ac_ext=c |
|
|
3902 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3906 | |
|
|
3907 | |
|
|
3908 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
3909 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
3910 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
3911 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3912 | else |
|
|
3913 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3914 | /* confdefs.h. */ |
|
|
3915 | _ACEOF |
|
|
3916 | cat confdefs.h >>conftest.$ac_ext |
|
|
3917 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3918 | /* end confdefs.h. */ |
|
|
3919 | #include <stdlib.h> |
|
|
3920 | #include <stdarg.h> |
|
|
3921 | #include <string.h> |
|
|
3922 | #include <float.h> |
|
|
3923 | |
|
|
3924 | int |
|
|
3925 | main () |
|
|
3926 | { |
|
|
3927 | |
|
|
3928 | ; |
|
|
3929 | return 0; |
|
|
3930 | } |
|
|
3931 | _ACEOF |
|
|
3932 | rm -f conftest.$ac_objext |
|
|
3933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3934 | (eval $ac_compile) 2>conftest.er1 |
|
|
3935 | ac_status=$? |
|
|
3936 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3937 | rm -f conftest.er1 |
|
|
3938 | cat conftest.err >&5 |
|
|
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3940 | (exit $ac_status); } && |
|
|
3941 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3943 | (eval $ac_try) 2>&5 |
|
|
3944 | ac_status=$? |
|
|
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3946 | (exit $ac_status); }; } && |
|
|
3947 | { ac_try='test -s conftest.$ac_objext' |
|
|
3948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3949 | (eval $ac_try) 2>&5 |
|
|
3950 | ac_status=$? |
|
|
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3952 | (exit $ac_status); }; }; then |
|
|
3953 | ac_cv_header_stdc=yes |
|
|
3954 | else |
|
|
3955 | echo "$as_me: failed program was:" >&5 |
|
|
3956 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3957 | |
|
|
3958 | ac_cv_header_stdc=no |
|
|
3959 | fi |
|
|
3960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3961 | |
|
|
3962 | if test $ac_cv_header_stdc = yes; then |
|
|
3963 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
3964 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3965 | /* confdefs.h. */ |
|
|
3966 | _ACEOF |
|
|
3967 | cat confdefs.h >>conftest.$ac_ext |
|
|
3968 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3969 | /* end confdefs.h. */ |
|
|
3970 | #include <string.h> |
|
|
3971 | |
|
|
3972 | _ACEOF |
|
|
3973 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3974 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
3975 | : |
|
|
3976 | else |
|
|
3977 | ac_cv_header_stdc=no |
|
|
3978 | fi |
|
|
3979 | rm -f conftest* |
|
|
3980 | |
|
|
3981 | fi |
|
|
3982 | |
|
|
3983 | if test $ac_cv_header_stdc = yes; then |
|
|
3984 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
3985 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3986 | /* confdefs.h. */ |
|
|
3987 | _ACEOF |
|
|
3988 | cat confdefs.h >>conftest.$ac_ext |
|
|
3989 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3990 | /* end confdefs.h. */ |
|
|
3991 | #include <stdlib.h> |
|
|
3992 | |
|
|
3993 | _ACEOF |
|
|
3994 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3995 | $EGREP "free" >/dev/null 2>&1; then |
|
|
3996 | : |
|
|
3997 | else |
|
|
3998 | ac_cv_header_stdc=no |
|
|
3999 | fi |
|
|
4000 | rm -f conftest* |
|
|
4001 | |
|
|
4002 | fi |
|
|
4003 | |
|
|
4004 | if test $ac_cv_header_stdc = yes; then |
|
|
4005 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4006 | if test "$cross_compiling" = yes; then |
|
|
4007 | : |
|
|
4008 | else |
|
|
4009 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4010 | /* confdefs.h. */ |
|
|
4011 | _ACEOF |
|
|
4012 | cat confdefs.h >>conftest.$ac_ext |
|
|
4013 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4014 | /* end confdefs.h. */ |
|
|
4015 | #include <ctype.h> |
|
|
4016 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4017 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4018 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4019 | #else |
|
|
4020 | # define ISLOWER(c) \ |
|
|
4021 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4022 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4023 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4024 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4025 | #endif |
|
|
4026 | |
|
|
4027 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4028 | int |
|
|
4029 | main () |
|
|
4030 | { |
|
|
4031 | int i; |
|
|
4032 | for (i = 0; i < 256; i++) |
|
|
4033 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4034 | || toupper (i) != TOUPPER (i)) |
|
|
4035 | exit(2); |
|
|
4036 | exit (0); |
|
|
4037 | } |
|
|
4038 | _ACEOF |
|
|
4039 | rm -f conftest$ac_exeext |
|
|
4040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4041 | (eval $ac_link) 2>&5 |
|
|
4042 | ac_status=$? |
|
|
4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4044 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4046 | (eval $ac_try) 2>&5 |
|
|
4047 | ac_status=$? |
|
|
4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4049 | (exit $ac_status); }; }; then |
|
|
4050 | : |
|
|
4051 | else |
|
|
4052 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4053 | echo "$as_me: failed program was:" >&5 |
|
|
4054 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4055 | |
|
|
4056 | ( exit $ac_status ) |
|
|
4057 | ac_cv_header_stdc=no |
|
|
4058 | fi |
|
|
4059 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4060 | fi |
|
|
4061 | fi |
|
|
4062 | fi |
|
|
4063 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4064 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4065 | if test $ac_cv_header_stdc = yes; then |
|
|
4066 | |
|
|
4067 | cat >>confdefs.h <<\_ACEOF |
|
|
4068 | #define STDC_HEADERS 1 |
|
|
4069 | _ACEOF |
|
|
4070 | |
|
|
4071 | fi |
|
|
4072 | |
|
|
4073 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4074 | |
|
|
4075 | |
|
|
4076 | |
|
|
4077 | |
|
|
4078 | |
|
|
4079 | |
|
|
4080 | |
|
|
4081 | |
|
|
4082 | |
|
|
4083 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4084 | inttypes.h stdint.h unistd.h |
|
|
4085 | do |
|
|
4086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4091 | else |
|
|
4092 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4093 | /* confdefs.h. */ |
|
|
4094 | _ACEOF |
|
|
4095 | cat confdefs.h >>conftest.$ac_ext |
|
|
4096 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4097 | /* end confdefs.h. */ |
|
|
4098 | $ac_includes_default |
|
|
4099 | |
|
|
4100 | #include <$ac_header> |
|
|
4101 | _ACEOF |
|
|
4102 | rm -f conftest.$ac_objext |
|
|
4103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4104 | (eval $ac_compile) 2>conftest.er1 |
|
|
4105 | ac_status=$? |
|
|
4106 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4107 | rm -f conftest.er1 |
|
|
4108 | cat conftest.err >&5 |
|
|
4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4110 | (exit $ac_status); } && |
|
|
4111 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4113 | (eval $ac_try) 2>&5 |
|
|
4114 | ac_status=$? |
|
|
4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4116 | (exit $ac_status); }; } && |
|
|
4117 | { ac_try='test -s conftest.$ac_objext' |
|
|
4118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4119 | (eval $ac_try) 2>&5 |
|
|
4120 | ac_status=$? |
|
|
4121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4122 | (exit $ac_status); }; }; then |
|
|
4123 | eval "$as_ac_Header=yes" |
|
|
4124 | else |
|
|
4125 | echo "$as_me: failed program was:" >&5 |
|
|
4126 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4127 | |
|
|
4128 | eval "$as_ac_Header=no" |
|
|
4129 | fi |
|
|
4130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4131 | fi |
|
|
4132 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4133 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4134 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4135 | cat >>confdefs.h <<_ACEOF |
|
|
4136 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4137 | _ACEOF |
|
|
4138 | |
|
|
4139 | fi |
|
|
4140 | |
|
|
4141 | done |
|
|
4142 | |
|
|
4143 | |
|
|
4144 | |
|
|
4145 | for ac_header in dlfcn.h |
|
|
4146 | do |
|
|
4147 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4149 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4150 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4151 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4153 | fi |
|
|
4154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4156 | else |
|
|
4157 | # Is the header compilable? |
|
|
4158 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4159 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4160 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4161 | /* confdefs.h. */ |
|
|
4162 | _ACEOF |
|
|
4163 | cat confdefs.h >>conftest.$ac_ext |
|
|
4164 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4165 | /* end confdefs.h. */ |
|
|
4166 | $ac_includes_default |
|
|
4167 | #include <$ac_header> |
|
|
4168 | _ACEOF |
|
|
4169 | rm -f conftest.$ac_objext |
|
|
4170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4171 | (eval $ac_compile) 2>conftest.er1 |
|
|
4172 | ac_status=$? |
|
|
4173 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4174 | rm -f conftest.er1 |
|
|
4175 | cat conftest.err >&5 |
|
|
4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4177 | (exit $ac_status); } && |
|
|
4178 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4180 | (eval $ac_try) 2>&5 |
|
|
4181 | ac_status=$? |
|
|
4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4183 | (exit $ac_status); }; } && |
|
|
4184 | { ac_try='test -s conftest.$ac_objext' |
|
|
4185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4186 | (eval $ac_try) 2>&5 |
|
|
4187 | ac_status=$? |
|
|
4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4189 | (exit $ac_status); }; }; then |
|
|
4190 | ac_header_compiler=yes |
|
|
4191 | else |
|
|
4192 | echo "$as_me: failed program was:" >&5 |
|
|
4193 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4194 | |
|
|
4195 | ac_header_compiler=no |
|
|
4196 | fi |
|
|
4197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4199 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4200 | |
|
|
4201 | # Is the header present? |
|
|
4202 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4204 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4205 | /* confdefs.h. */ |
|
|
4206 | _ACEOF |
|
|
4207 | cat confdefs.h >>conftest.$ac_ext |
|
|
4208 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4209 | /* end confdefs.h. */ |
|
|
4210 | #include <$ac_header> |
|
|
4211 | _ACEOF |
|
|
4212 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4213 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4214 | ac_status=$? |
|
|
4215 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4216 | rm -f conftest.er1 |
|
|
4217 | cat conftest.err >&5 |
|
|
4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4219 | (exit $ac_status); } >/dev/null; then |
|
|
4220 | if test -s conftest.err; then |
|
|
4221 | ac_cpp_err=$ac_c_preproc_warn_flag |
|
|
4222 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
|
|
4223 | else |
|
|
4224 | ac_cpp_err= |
|
|
4225 | fi |
|
|
4226 | else |
|
|
4227 | ac_cpp_err=yes |
|
|
4228 | fi |
|
|
4229 | if test -z "$ac_cpp_err"; then |
|
|
4230 | ac_header_preproc=yes |
|
|
4231 | else |
|
|
4232 | echo "$as_me: failed program was:" >&5 |
|
|
4233 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4234 | |
|
|
4235 | ac_header_preproc=no |
|
|
4236 | fi |
|
|
4237 | rm -f conftest.err conftest.$ac_ext |
|
|
4238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4239 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4240 | |
|
|
4241 | # So? What about this header? |
|
|
4242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
|
|
4243 | yes:no: ) |
|
|
4244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4248 | ac_header_preproc=yes |
|
|
4249 | ;; |
|
|
4250 | no:yes:* ) |
|
|
4251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4253 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4254 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4257 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4258 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4263 | ( |
|
|
4264 | cat <<\_ASBOX |
|
|
4265 | ## ------------------------------------------ ## |
|
|
4266 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4267 | ## ------------------------------------------ ## |
|
|
4268 | _ASBOX |
|
|
4269 | ) | |
|
|
4270 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4271 | ;; |
|
|
4272 | esac |
|
|
4273 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4274 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4277 | else |
|
|
4278 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4279 | fi |
|
|
4280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4282 | |
|
|
4283 | fi |
|
|
4284 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4285 | cat >>confdefs.h <<_ACEOF |
|
|
4286 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4287 | _ACEOF |
|
|
4288 | |
|
|
4289 | fi |
|
|
4290 | |
|
|
4291 | done |
|
|
4292 | |
|
|
4293 | |
|
|
4294 | |
|
|
4295 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
4296 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
4297 | (test "X$CXX" != "Xg++"))) ; then |
|
|
4298 | ac_ext=cc |
2057 | ac_cpp='$CXXCPP $CPPFLAGS' |
4299 | ac_cpp='$CXXCPP $CPPFLAGS' |
2058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2061 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
4303 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
… | |
… | |
2281 | ac_cpp='$CXXCPP $CPPFLAGS' |
4523 | ac_cpp='$CXXCPP $CPPFLAGS' |
2282 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2283 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2284 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
2285 | |
4527 | |
|
|
4528 | fi |
2286 | |
4529 | |
|
|
4530 | |
|
|
4531 | ac_ext=f |
|
|
4532 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
4533 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4534 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
4535 | if test -n "$ac_tool_prefix"; then |
|
|
4536 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4537 | do |
|
|
4538 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
|
4539 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2287 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2288 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
4541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2289 | if test "${ac_cv_prog_egrep+set}" = set; then |
4542 | if test "${ac_cv_prog_F77+set}" = set; then |
2290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2291 | else |
4544 | else |
2292 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4545 | if test -n "$F77"; then |
2293 | then ac_cv_prog_egrep='grep -E' |
4546 | ac_cv_prog_F77="$F77" # Let the user override the test. |
2294 | else ac_cv_prog_egrep='egrep' |
4547 | else |
|
|
4548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4549 | for as_dir in $PATH |
|
|
4550 | do |
|
|
4551 | IFS=$as_save_IFS |
|
|
4552 | test -z "$as_dir" && as_dir=. |
|
|
4553 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4555 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
|
|
4556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4557 | break 2 |
|
|
4558 | fi |
|
|
4559 | done |
|
|
4560 | done |
|
|
4561 | |
|
|
4562 | fi |
|
|
4563 | fi |
|
|
4564 | F77=$ac_cv_prog_F77 |
|
|
4565 | if test -n "$F77"; then |
|
|
4566 | echo "$as_me:$LINENO: result: $F77" >&5 |
|
|
4567 | echo "${ECHO_T}$F77" >&6 |
|
|
4568 | else |
|
|
4569 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4570 | echo "${ECHO_T}no" >&6 |
|
|
4571 | fi |
|
|
4572 | |
|
|
4573 | test -n "$F77" && break |
|
|
4574 | done |
|
|
4575 | fi |
|
|
4576 | if test -z "$F77"; then |
|
|
4577 | ac_ct_F77=$F77 |
|
|
4578 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
|
|
4579 | do |
|
|
4580 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
4581 | set dummy $ac_prog; ac_word=$2 |
|
|
4582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
4583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
4584 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
|
|
4585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4586 | else |
|
|
4587 | if test -n "$ac_ct_F77"; then |
|
|
4588 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
|
|
4589 | else |
|
|
4590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
4591 | for as_dir in $PATH |
|
|
4592 | do |
|
|
4593 | IFS=$as_save_IFS |
|
|
4594 | test -z "$as_dir" && as_dir=. |
|
|
4595 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
4596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
4597 | ac_cv_prog_ac_ct_F77="$ac_prog" |
|
|
4598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
4599 | break 2 |
|
|
4600 | fi |
|
|
4601 | done |
|
|
4602 | done |
|
|
4603 | |
|
|
4604 | fi |
|
|
4605 | fi |
|
|
4606 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
|
|
4607 | if test -n "$ac_ct_F77"; then |
|
|
4608 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
|
|
4609 | echo "${ECHO_T}$ac_ct_F77" >&6 |
|
|
4610 | else |
|
|
4611 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4612 | echo "${ECHO_T}no" >&6 |
|
|
4613 | fi |
|
|
4614 | |
|
|
4615 | test -n "$ac_ct_F77" && break |
|
|
4616 | done |
|
|
4617 | |
|
|
4618 | F77=$ac_ct_F77 |
|
|
4619 | fi |
|
|
4620 | |
|
|
4621 | |
|
|
4622 | # Provide some information about the compiler. |
|
|
4623 | echo "$as_me:4623:" \ |
|
|
4624 | "checking for Fortran 77 compiler version" >&5 |
|
|
4625 | ac_compiler=`set X $ac_compile; echo $2` |
|
|
4626 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
|
|
4627 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
|
|
4628 | ac_status=$? |
|
|
4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4630 | (exit $ac_status); } |
|
|
4631 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
|
|
4632 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
|
|
4633 | ac_status=$? |
|
|
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4635 | (exit $ac_status); } |
|
|
4636 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
|
|
4637 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
|
|
4638 | ac_status=$? |
|
|
4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4640 | (exit $ac_status); } |
|
|
4641 | rm -f a.out |
|
|
4642 | |
|
|
4643 | # If we don't use `.F' as extension, the preprocessor is not run on the |
|
|
4644 | # input file. (Note that this only needs to work for GNU compilers.) |
|
|
4645 | ac_save_ext=$ac_ext |
|
|
4646 | ac_ext=F |
|
|
4647 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
|
|
4648 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 |
|
|
4649 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
|
|
4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4651 | else |
|
|
4652 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4653 | program main |
|
|
4654 | #ifndef __GNUC__ |
|
|
4655 | choke me |
|
|
4656 | #endif |
|
|
4657 | |
|
|
4658 | end |
|
|
4659 | _ACEOF |
|
|
4660 | rm -f conftest.$ac_objext |
|
|
4661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4662 | (eval $ac_compile) 2>conftest.er1 |
|
|
4663 | ac_status=$? |
|
|
4664 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4665 | rm -f conftest.er1 |
|
|
4666 | cat conftest.err >&5 |
|
|
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4668 | (exit $ac_status); } && |
|
|
4669 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4671 | (eval $ac_try) 2>&5 |
|
|
4672 | ac_status=$? |
|
|
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4674 | (exit $ac_status); }; } && |
|
|
4675 | { ac_try='test -s conftest.$ac_objext' |
|
|
4676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4677 | (eval $ac_try) 2>&5 |
|
|
4678 | ac_status=$? |
|
|
4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4680 | (exit $ac_status); }; }; then |
|
|
4681 | ac_compiler_gnu=yes |
|
|
4682 | else |
|
|
4683 | echo "$as_me: failed program was:" >&5 |
|
|
4684 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4685 | |
|
|
4686 | ac_compiler_gnu=no |
|
|
4687 | fi |
|
|
4688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4689 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
|
|
4690 | |
|
|
4691 | fi |
|
|
4692 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
|
|
4693 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 |
|
|
4694 | ac_ext=$ac_save_ext |
|
|
4695 | ac_test_FFLAGS=${FFLAGS+set} |
|
|
4696 | ac_save_FFLAGS=$FFLAGS |
|
|
4697 | FFLAGS= |
|
|
4698 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
|
|
4699 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 |
|
|
4700 | if test "${ac_cv_prog_f77_g+set}" = set; then |
|
|
4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4702 | else |
|
|
4703 | FFLAGS=-g |
|
|
4704 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4705 | program main |
|
|
4706 | |
|
|
4707 | end |
|
|
4708 | _ACEOF |
|
|
4709 | rm -f conftest.$ac_objext |
|
|
4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4711 | (eval $ac_compile) 2>conftest.er1 |
|
|
4712 | ac_status=$? |
|
|
4713 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4714 | rm -f conftest.er1 |
|
|
4715 | cat conftest.err >&5 |
|
|
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4717 | (exit $ac_status); } && |
|
|
4718 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4720 | (eval $ac_try) 2>&5 |
|
|
4721 | ac_status=$? |
|
|
4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4723 | (exit $ac_status); }; } && |
|
|
4724 | { ac_try='test -s conftest.$ac_objext' |
|
|
4725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4726 | (eval $ac_try) 2>&5 |
|
|
4727 | ac_status=$? |
|
|
4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4729 | (exit $ac_status); }; }; then |
|
|
4730 | ac_cv_prog_f77_g=yes |
|
|
4731 | else |
|
|
4732 | echo "$as_me: failed program was:" >&5 |
|
|
4733 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4734 | |
|
|
4735 | ac_cv_prog_f77_g=no |
|
|
4736 | fi |
|
|
4737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4738 | |
|
|
4739 | fi |
|
|
4740 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
|
|
4741 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 |
|
|
4742 | if test "$ac_test_FFLAGS" = set; then |
|
|
4743 | FFLAGS=$ac_save_FFLAGS |
|
|
4744 | elif test $ac_cv_prog_f77_g = yes; then |
|
|
4745 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4746 | FFLAGS="-g -O2" |
|
|
4747 | else |
|
|
4748 | FFLAGS="-g" |
|
|
4749 | fi |
|
|
4750 | else |
|
|
4751 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
|
|
4752 | FFLAGS="-O2" |
|
|
4753 | else |
|
|
4754 | FFLAGS= |
|
|
4755 | fi |
|
|
4756 | fi |
|
|
4757 | |
|
|
4758 | G77=`test $ac_compiler_gnu = yes && echo yes` |
|
|
4759 | ac_ext=c |
|
|
4760 | ac_cpp='$CPP $CPPFLAGS' |
|
|
4761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
4764 | |
|
|
4765 | |
|
|
4766 | |
|
|
4767 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
|
|
4768 | |
|
|
4769 | # find the maximum length of command line arguments |
|
|
4770 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
|
|
4771 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 |
|
|
4772 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
|
|
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4774 | else |
|
|
4775 | i=0 |
|
|
4776 | teststring="ABCD" |
|
|
4777 | |
|
|
4778 | case $build_os in |
|
|
4779 | msdosdjgpp*) |
|
|
4780 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
|
|
4781 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
|
|
4782 | # during glob expansion). Even if it were fixed, the result of this |
|
|
4783 | # check would be larger than it should be. |
|
|
4784 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
|
4785 | ;; |
|
|
4786 | |
|
|
4787 | gnu*) |
|
|
4788 | # Under GNU Hurd, this test is not required because there is |
|
|
4789 | # no limit to the length of command line arguments. |
|
|
4790 | # Libtool will interpret -1 as no limit whatsoever |
|
|
4791 | lt_cv_sys_max_cmd_len=-1; |
|
|
4792 | ;; |
|
|
4793 | |
|
|
4794 | cygwin* | mingw*) |
|
|
4795 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
|
|
4796 | # about 5 minutes as the teststring grows exponentially. |
|
|
4797 | # Worse, since 9x/ME are not pre-emptively multitasking, |
|
|
4798 | # you end up with a "frozen" computer, even though with patience |
|
|
4799 | # the test eventually succeeds (with a max line length of 256k). |
|
|
4800 | # Instead, let's just punt: use the minimum linelength reported by |
|
|
4801 | # all of the supported platforms: 8192 (on NT/2K/XP). |
|
|
4802 | lt_cv_sys_max_cmd_len=8192; |
|
|
4803 | ;; |
|
|
4804 | |
|
|
4805 | amigaos*) |
|
|
4806 | # On AmigaOS with pdksh, this test takes hours, literally. |
|
|
4807 | # So we just punt and use a minimum line length of 8192. |
|
|
4808 | lt_cv_sys_max_cmd_len=8192; |
|
|
4809 | ;; |
|
|
4810 | |
|
|
4811 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
|
4812 | # This has been around since 386BSD, at least. Likely further. |
|
|
4813 | if test -x /sbin/sysctl; then |
|
|
4814 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
|
4815 | elif test -x /usr/sbin/sysctl; then |
|
|
4816 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
|
4817 | else |
|
|
4818 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
2295 | fi |
4819 | fi |
|
|
4820 | # And add a safety zone |
|
|
4821 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
|
4822 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
|
4823 | ;; |
|
|
4824 | |
|
|
4825 | interix*) |
|
|
4826 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
|
4827 | lt_cv_sys_max_cmd_len=196608 |
|
|
4828 | ;; |
|
|
4829 | |
|
|
4830 | osf*) |
|
|
4831 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
|
4832 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
|
4833 | # nice to cause kernel panics so lets avoid the loop below. |
|
|
4834 | # First set a reasonable default. |
|
|
4835 | lt_cv_sys_max_cmd_len=16384 |
|
|
4836 | # |
|
|
4837 | if test -x /sbin/sysconfig; then |
|
|
4838 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
|
4839 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
|
4840 | esac |
|
|
4841 | fi |
|
|
4842 | ;; |
|
|
4843 | sco3.2v5*) |
|
|
4844 | lt_cv_sys_max_cmd_len=102400 |
|
|
4845 | ;; |
|
|
4846 | sysv5* | sco5v6* | sysv4.2uw2*) |
|
|
4847 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
|
4848 | if test -n "$kargmax"; then |
|
|
4849 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
|
4850 | else |
|
|
4851 | lt_cv_sys_max_cmd_len=32768 |
|
|
4852 | fi |
|
|
4853 | ;; |
|
|
4854 | *) |
|
|
4855 | # If test is not a shell built-in, we'll probably end up computing a |
|
|
4856 | # maximum length that is only half of the actual maximum length, but |
|
|
4857 | # we can't tell. |
|
|
4858 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
|
4859 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
|
|
4860 | = "XX$teststring") >/dev/null 2>&1 && |
|
|
4861 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
|
|
4862 | lt_cv_sys_max_cmd_len=$new_result && |
|
|
4863 | test $i != 17 # 1/2 MB should be enough |
|
|
4864 | do |
|
|
4865 | i=`expr $i + 1` |
|
|
4866 | teststring=$teststring$teststring |
|
|
4867 | done |
|
|
4868 | teststring= |
|
|
4869 | # Add a significant safety factor because C++ compilers can tack on massive |
|
|
4870 | # amounts of additional arguments before passing them to the linker. |
|
|
4871 | # It appears as though 1/2 is a usable value. |
|
|
4872 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
|
4873 | ;; |
|
|
4874 | esac |
|
|
4875 | |
|
|
4876 | fi |
|
|
4877 | |
|
|
4878 | if test -n $lt_cv_sys_max_cmd_len ; then |
|
|
4879 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
|
|
4880 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 |
|
|
4881 | else |
|
|
4882 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
4883 | echo "${ECHO_T}none" >&6 |
|
|
4884 | fi |
|
|
4885 | |
|
|
4886 | |
|
|
4887 | |
|
|
4888 | |
|
|
4889 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4890 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
|
|
4891 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 |
|
|
4892 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4894 | else |
|
|
4895 | |
|
|
4896 | # These are sane defaults that work on at least a few old systems. |
|
|
4897 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4898 | |
|
|
4899 | # Character class describing NM global symbol codes. |
|
|
4900 | symcode='[BCDEGRST]' |
|
|
4901 | |
|
|
4902 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4903 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4904 | |
|
|
4905 | # Transform an extracted symbol line into a proper C declaration |
|
|
4906 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
|
|
4907 | |
|
|
4908 | # Transform an extracted symbol line into symbol name and symbol address |
|
|
4909 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
4910 | |
|
|
4911 | # Define system-specific variables. |
|
|
4912 | case $host_os in |
|
|
4913 | aix*) |
|
|
4914 | symcode='[BCDT]' |
|
|
4915 | ;; |
|
|
4916 | cygwin* | mingw* | pw32*) |
|
|
4917 | symcode='[ABCDGISTW]' |
|
|
4918 | ;; |
|
|
4919 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4920 | if test "$host_cpu" = ia64; then |
|
|
4921 | symcode='[ABCDEGRST]' |
|
|
4922 | fi |
|
|
4923 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
4924 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
4925 | ;; |
|
|
4926 | linux*) |
|
|
4927 | if test "$host_cpu" = ia64; then |
|
|
4928 | symcode='[ABCDGIRSTW]' |
|
|
4929 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
|
4930 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" |
|
|
4931 | fi |
|
|
4932 | ;; |
|
|
4933 | irix* | nonstopux*) |
|
|
4934 | symcode='[BCDEGRST]' |
|
|
4935 | ;; |
|
|
4936 | osf*) |
|
|
4937 | symcode='[BCDEGQRST]' |
|
|
4938 | ;; |
|
|
4939 | solaris*) |
|
|
4940 | symcode='[BDRT]' |
|
|
4941 | ;; |
|
|
4942 | sco3.2v5*) |
|
|
4943 | symcode='[DT]' |
|
|
4944 | ;; |
|
|
4945 | sysv4.2uw2*) |
|
|
4946 | symcode='[DT]' |
|
|
4947 | ;; |
|
|
4948 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
4949 | symcode='[ABDT]' |
|
|
4950 | ;; |
|
|
4951 | sysv4) |
|
|
4952 | symcode='[DFNSTU]' |
|
|
4953 | ;; |
|
|
4954 | esac |
|
|
4955 | |
|
|
4956 | # Handle CRLF in mingw tool chain |
|
|
4957 | opt_cr= |
|
|
4958 | case $build_os in |
|
|
4959 | mingw*) |
|
|
4960 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4961 | ;; |
|
|
4962 | esac |
|
|
4963 | |
|
|
4964 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4965 | case `$NM -V 2>&1` in |
|
|
4966 | *GNU* | *'with BFD'*) |
|
|
4967 | symcode='[ABCDGIRSTW]' ;; |
|
|
4968 | esac |
|
|
4969 | |
|
|
4970 | # Try without a prefix undercore, then with it. |
|
|
4971 | for ac_symprfx in "" "_"; do |
|
|
4972 | |
|
|
4973 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
|
4974 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
|
4975 | |
|
|
4976 | # Write the raw and C identifiers. |
|
|
4977 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
|
4978 | |
|
|
4979 | # Check to see that the pipe works correctly. |
|
|
4980 | pipe_works=no |
|
|
4981 | |
|
|
4982 | rm -f conftest* |
|
|
4983 | cat > conftest.$ac_ext <<EOF |
|
|
4984 | #ifdef __cplusplus |
|
|
4985 | extern "C" { |
|
|
4986 | #endif |
|
|
4987 | char nm_test_var; |
|
|
4988 | void nm_test_func(){} |
|
|
4989 | #ifdef __cplusplus |
|
|
4990 | } |
|
|
4991 | #endif |
|
|
4992 | int main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4993 | EOF |
|
|
4994 | |
|
|
4995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4996 | (eval $ac_compile) 2>&5 |
|
|
4997 | ac_status=$? |
|
|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4999 | (exit $ac_status); }; then |
|
|
5000 | # Now try to grab the symbols. |
|
|
5001 | nlist=conftest.nm |
|
|
5002 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
5003 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
5004 | ac_status=$? |
|
|
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5006 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
5007 | # Try sorting and uniquifying the output. |
|
|
5008 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
5009 | mv -f "$nlist"T "$nlist" |
|
|
5010 | else |
|
|
5011 | rm -f "$nlist"T |
|
|
5012 | fi |
|
|
5013 | |
|
|
5014 | # Make sure that we snagged all the symbols we need. |
|
|
5015 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
5016 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
5017 | cat <<EOF > conftest.$ac_ext |
|
|
5018 | #ifdef __cplusplus |
|
|
5019 | extern "C" { |
|
|
5020 | #endif |
|
|
5021 | |
|
|
5022 | EOF |
|
|
5023 | # Now generate the symbol file. |
|
|
5024 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
|
|
5025 | |
|
|
5026 | cat <<EOF >> conftest.$ac_ext |
|
|
5027 | #if defined (__STDC__) && __STDC__ |
|
|
5028 | # define lt_ptr_t void * |
|
|
5029 | #else |
|
|
5030 | # define lt_ptr_t char * |
|
|
5031 | # define const |
|
|
5032 | #endif |
|
|
5033 | |
|
|
5034 | /* The mapping between symbol names and symbols. */ |
|
|
5035 | const struct { |
|
|
5036 | const char *name; |
|
|
5037 | lt_ptr_t address; |
|
|
5038 | } |
|
|
5039 | lt_preloaded_symbols[] = |
|
|
5040 | { |
|
|
5041 | EOF |
|
|
5042 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
|
|
5043 | cat <<\EOF >> conftest.$ac_ext |
|
|
5044 | {0, (lt_ptr_t) 0} |
|
|
5045 | }; |
|
|
5046 | |
|
|
5047 | #ifdef __cplusplus |
|
|
5048 | } |
|
|
5049 | #endif |
|
|
5050 | EOF |
|
|
5051 | # Now try linking the two files. |
|
|
5052 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
5053 | lt_save_LIBS="$LIBS" |
|
|
5054 | lt_save_CFLAGS="$CFLAGS" |
|
|
5055 | LIBS="conftstm.$ac_objext" |
|
|
5056 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
|
5057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5058 | (eval $ac_link) 2>&5 |
|
|
5059 | ac_status=$? |
|
|
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5061 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
|
|
5062 | pipe_works=yes |
|
|
5063 | fi |
|
|
5064 | LIBS="$lt_save_LIBS" |
|
|
5065 | CFLAGS="$lt_save_CFLAGS" |
|
|
5066 | else |
|
|
5067 | echo "cannot find nm_test_func in $nlist" >&5 |
2296 | fi |
5068 | fi |
|
|
5069 | else |
|
|
5070 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
5071 | fi |
|
|
5072 | else |
|
|
5073 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
5074 | fi |
|
|
5075 | else |
|
|
5076 | echo "$progname: failed program was:" >&5 |
|
|
5077 | cat conftest.$ac_ext >&5 |
|
|
5078 | fi |
|
|
5079 | rm -f conftest* conftst* |
|
|
5080 | |
|
|
5081 | # Do not use the global_symbol_pipe unless it works. |
|
|
5082 | if test "$pipe_works" = yes; then |
|
|
5083 | break |
|
|
5084 | else |
|
|
5085 | lt_cv_sys_global_symbol_pipe= |
|
|
5086 | fi |
|
|
5087 | done |
|
|
5088 | |
|
|
5089 | fi |
|
|
5090 | |
|
|
5091 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
5092 | lt_cv_sys_global_symbol_to_cdecl= |
|
|
5093 | fi |
|
|
5094 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
|
5095 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
5096 | echo "${ECHO_T}failed" >&6 |
|
|
5097 | else |
|
|
5098 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
5099 | echo "${ECHO_T}ok" >&6 |
|
|
5100 | fi |
|
|
5101 | |
|
|
5102 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5103 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5104 | if test "${lt_cv_objdir+set}" = set; then |
|
|
5105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5106 | else |
|
|
5107 | rm -f .libs 2>/dev/null |
|
|
5108 | mkdir .libs 2>/dev/null |
|
|
5109 | if test -d .libs; then |
|
|
5110 | lt_cv_objdir=.libs |
|
|
5111 | else |
|
|
5112 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5113 | lt_cv_objdir=_libs |
|
|
5114 | fi |
|
|
5115 | rmdir .libs 2>/dev/null |
|
|
5116 | fi |
|
|
5117 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
|
|
5118 | echo "${ECHO_T}$lt_cv_objdir" >&6 |
|
|
5119 | objdir=$lt_cv_objdir |
|
|
5120 | |
|
|
5121 | |
|
|
5122 | |
|
|
5123 | |
|
|
5124 | |
|
|
5125 | case $host_os in |
|
|
5126 | aix3*) |
|
|
5127 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5128 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5129 | # vanish in a puff of smoke. |
|
|
5130 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5131 | COLLECT_NAMES= |
|
|
5132 | export COLLECT_NAMES |
|
|
5133 | fi |
|
|
5134 | ;; |
|
|
5135 | esac |
|
|
5136 | |
|
|
5137 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5138 | # metacharacters that are still active within double-quoted strings. |
|
|
5139 | Xsed='sed -e 1s/^X//' |
|
|
5140 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5141 | |
|
|
5142 | # Same as above, but do not quote variable references. |
|
|
5143 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5144 | |
|
|
5145 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5146 | # double_quote_subst'ed string. |
|
|
5147 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5148 | |
|
|
5149 | # Sed substitution to avoid accidental globbing in evaled expressions |
|
|
5150 | no_glob_subst='s/\*/\\\*/g' |
|
|
5151 | |
|
|
5152 | # Constants: |
|
|
5153 | rm="rm -f" |
|
|
5154 | |
|
|
5155 | # Global variables: |
|
|
5156 | default_ofile=libtool |
|
|
5157 | can_build_shared=yes |
|
|
5158 | |
|
|
5159 | # All known linkers require a `.a' archive for static linking (except MSVC, |
|
|
5160 | # which needs '.lib'). |
|
|
5161 | libext=a |
|
|
5162 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5163 | ofile="$default_ofile" |
|
|
5164 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5165 | |
|
|
5166 | if test -n "$ac_tool_prefix"; then |
|
|
5167 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
|
5168 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
|
5169 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5171 | if test "${ac_cv_prog_AR+set}" = set; then |
|
|
5172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5173 | else |
|
|
5174 | if test -n "$AR"; then |
|
|
5175 | ac_cv_prog_AR="$AR" # Let the user override the test. |
|
|
5176 | else |
|
|
5177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5178 | for as_dir in $PATH |
|
|
5179 | do |
|
|
5180 | IFS=$as_save_IFS |
|
|
5181 | test -z "$as_dir" && as_dir=. |
|
|
5182 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5184 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
|
5185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5186 | break 2 |
|
|
5187 | fi |
|
|
5188 | done |
|
|
5189 | done |
|
|
5190 | |
|
|
5191 | fi |
|
|
5192 | fi |
|
|
5193 | AR=$ac_cv_prog_AR |
|
|
5194 | if test -n "$AR"; then |
|
|
5195 | echo "$as_me:$LINENO: result: $AR" >&5 |
|
|
5196 | echo "${ECHO_T}$AR" >&6 |
|
|
5197 | else |
|
|
5198 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5199 | echo "${ECHO_T}no" >&6 |
|
|
5200 | fi |
|
|
5201 | |
|
|
5202 | fi |
|
|
5203 | if test -z "$ac_cv_prog_AR"; then |
|
|
5204 | ac_ct_AR=$AR |
|
|
5205 | # Extract the first word of "ar", so it can be a program name with args. |
|
|
5206 | set dummy ar; ac_word=$2 |
|
|
5207 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5208 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5209 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
|
|
5210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5211 | else |
|
|
5212 | if test -n "$ac_ct_AR"; then |
|
|
5213 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
|
5214 | else |
|
|
5215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5216 | for as_dir in $PATH |
|
|
5217 | do |
|
|
5218 | IFS=$as_save_IFS |
|
|
5219 | test -z "$as_dir" && as_dir=. |
|
|
5220 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5221 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5222 | ac_cv_prog_ac_ct_AR="ar" |
|
|
5223 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5224 | break 2 |
|
|
5225 | fi |
|
|
5226 | done |
|
|
5227 | done |
|
|
5228 | |
|
|
5229 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
|
|
5230 | fi |
|
|
5231 | fi |
|
|
5232 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
|
5233 | if test -n "$ac_ct_AR"; then |
2297 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5234 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
2298 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
5235 | echo "${ECHO_T}$ac_ct_AR" >&6 |
2299 | EGREP=$ac_cv_prog_egrep |
5236 | else |
|
|
5237 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5238 | echo "${ECHO_T}no" >&6 |
|
|
5239 | fi |
2300 | |
5240 | |
|
|
5241 | AR=$ac_ct_AR |
|
|
5242 | else |
|
|
5243 | AR="$ac_cv_prog_AR" |
|
|
5244 | fi |
2301 | |
5245 | |
|
|
5246 | if test -n "$ac_tool_prefix"; then |
|
|
5247 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5248 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5249 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5250 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5251 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5253 | else |
|
|
5254 | if test -n "$RANLIB"; then |
|
|
5255 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5256 | else |
|
|
5257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5258 | for as_dir in $PATH |
|
|
5259 | do |
|
|
5260 | IFS=$as_save_IFS |
|
|
5261 | test -z "$as_dir" && as_dir=. |
|
|
5262 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5263 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5264 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5265 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5266 | break 2 |
|
|
5267 | fi |
|
|
5268 | done |
|
|
5269 | done |
|
|
5270 | |
|
|
5271 | fi |
|
|
5272 | fi |
|
|
5273 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5274 | if test -n "$RANLIB"; then |
|
|
5275 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5276 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5277 | else |
|
|
5278 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5279 | echo "${ECHO_T}no" >&6 |
|
|
5280 | fi |
|
|
5281 | |
|
|
5282 | fi |
|
|
5283 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5284 | ac_ct_RANLIB=$RANLIB |
|
|
5285 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5286 | set dummy ranlib; ac_word=$2 |
|
|
5287 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5288 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5289 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5291 | else |
|
|
5292 | if test -n "$ac_ct_RANLIB"; then |
|
|
5293 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5294 | else |
|
|
5295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5296 | for as_dir in $PATH |
|
|
5297 | do |
|
|
5298 | IFS=$as_save_IFS |
|
|
5299 | test -z "$as_dir" && as_dir=. |
|
|
5300 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5301 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5302 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5303 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5304 | break 2 |
|
|
5305 | fi |
|
|
5306 | done |
|
|
5307 | done |
|
|
5308 | |
|
|
5309 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5310 | fi |
|
|
5311 | fi |
|
|
5312 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5313 | if test -n "$ac_ct_RANLIB"; then |
|
|
5314 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5315 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5316 | else |
|
|
5317 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5318 | echo "${ECHO_T}no" >&6 |
|
|
5319 | fi |
|
|
5320 | |
|
|
5321 | RANLIB=$ac_ct_RANLIB |
|
|
5322 | else |
|
|
5323 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5324 | fi |
|
|
5325 | |
|
|
5326 | if test -n "$ac_tool_prefix"; then |
|
|
5327 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5328 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5331 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5333 | else |
|
|
5334 | if test -n "$STRIP"; then |
|
|
5335 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5336 | else |
|
|
5337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5338 | for as_dir in $PATH |
|
|
5339 | do |
|
|
5340 | IFS=$as_save_IFS |
|
|
5341 | test -z "$as_dir" && as_dir=. |
|
|
5342 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5344 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5346 | break 2 |
|
|
5347 | fi |
|
|
5348 | done |
|
|
5349 | done |
|
|
5350 | |
|
|
5351 | fi |
|
|
5352 | fi |
|
|
5353 | STRIP=$ac_cv_prog_STRIP |
|
|
5354 | if test -n "$STRIP"; then |
|
|
5355 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5356 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5357 | else |
|
|
5358 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5359 | echo "${ECHO_T}no" >&6 |
|
|
5360 | fi |
|
|
5361 | |
|
|
5362 | fi |
|
|
5363 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5364 | ac_ct_STRIP=$STRIP |
|
|
5365 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5366 | set dummy strip; ac_word=$2 |
|
|
5367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5369 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5371 | else |
|
|
5372 | if test -n "$ac_ct_STRIP"; then |
|
|
5373 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5374 | else |
|
|
5375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5376 | for as_dir in $PATH |
|
|
5377 | do |
|
|
5378 | IFS=$as_save_IFS |
|
|
5379 | test -z "$as_dir" && as_dir=. |
|
|
5380 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5382 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5384 | break 2 |
|
|
5385 | fi |
|
|
5386 | done |
|
|
5387 | done |
|
|
5388 | |
|
|
5389 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5390 | fi |
|
|
5391 | fi |
|
|
5392 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5393 | if test -n "$ac_ct_STRIP"; then |
|
|
5394 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5395 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5396 | else |
|
|
5397 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5398 | echo "${ECHO_T}no" >&6 |
|
|
5399 | fi |
|
|
5400 | |
|
|
5401 | STRIP=$ac_ct_STRIP |
|
|
5402 | else |
|
|
5403 | STRIP="$ac_cv_prog_STRIP" |
|
|
5404 | fi |
|
|
5405 | |
|
|
5406 | |
|
|
5407 | old_CC="$CC" |
|
|
5408 | old_CFLAGS="$CFLAGS" |
|
|
5409 | |
|
|
5410 | # Set sane defaults for various variables |
|
|
5411 | test -z "$AR" && AR=ar |
|
|
5412 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5413 | test -z "$AS" && AS=as |
|
|
5414 | test -z "$CC" && CC=cc |
|
|
5415 | test -z "$LTCC" && LTCC=$CC |
|
|
5416 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
|
5417 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5418 | test -z "$LD" && LD=ld |
|
|
5419 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5420 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5421 | test -z "$NM" && NM=nm |
|
|
5422 | test -z "$SED" && SED=sed |
|
|
5423 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5424 | test -z "$RANLIB" && RANLIB=: |
|
|
5425 | test -z "$STRIP" && STRIP=: |
|
|
5426 | test -z "$ac_objext" && ac_objext=o |
|
|
5427 | |
|
|
5428 | # Determine commands to create old-style static archives. |
|
|
5429 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5430 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5431 | old_postuninstall_cmds= |
|
|
5432 | |
|
|
5433 | if test -n "$RANLIB"; then |
|
|
5434 | case $host_os in |
|
|
5435 | openbsd*) |
|
|
5436 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
|
|
5437 | ;; |
|
|
5438 | *) |
|
|
5439 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
|
|
5440 | ;; |
|
|
5441 | esac |
|
|
5442 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5443 | fi |
|
|
5444 | |
|
|
5445 | for cc_temp in $compiler""; do |
|
|
5446 | case $cc_temp in |
|
|
5447 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
5448 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
5449 | \-*) ;; |
|
|
5450 | *) break;; |
|
|
5451 | esac |
|
|
5452 | done |
|
|
5453 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
5454 | |
|
|
5455 | |
|
|
5456 | # Only perform the check for file, if the check method requires it |
|
|
5457 | case $deplibs_check_method in |
|
|
5458 | file_magic*) |
|
|
5459 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
5460 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
5461 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
5462 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5464 | else |
|
|
5465 | case $MAGIC_CMD in |
|
|
5466 | [\\/*] | ?:[\\/]*) |
|
|
5467 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5468 | ;; |
|
|
5469 | *) |
|
|
5470 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5471 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
5472 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
|
5473 | for ac_dir in $ac_dummy; do |
|
|
5474 | IFS="$lt_save_ifs" |
|
|
5475 | test -z "$ac_dir" && ac_dir=. |
|
|
5476 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
5477 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
5478 | if test -n "$file_magic_test_file"; then |
|
|
5479 | case $deplibs_check_method in |
|
|
5480 | "file_magic "*) |
|
|
5481 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
|
5482 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5483 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5484 | $EGREP "$file_magic_regex" > /dev/null; then |
|
|
5485 | : |
|
|
5486 | else |
|
|
5487 | cat <<EOF 1>&2 |
|
|
5488 | |
|
|
5489 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5490 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5491 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5492 | *** as such. This will affect the creation of libtool libraries that |
|
|
5493 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5494 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5495 | *** may want to report the problem to your system manager and/or to |
|
|
5496 | *** bug-libtool@gnu.org |
|
|
5497 | |
|
|
5498 | EOF |
|
|
5499 | fi ;; |
|
|
5500 | esac |
|
|
5501 | fi |
|
|
5502 | break |
|
|
5503 | fi |
|
|
5504 | done |
|
|
5505 | IFS="$lt_save_ifs" |
|
|
5506 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
|
5507 | ;; |
|
|
5508 | esac |
|
|
5509 | fi |
|
|
5510 | |
|
|
5511 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5512 | if test -n "$MAGIC_CMD"; then |
|
|
5513 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5514 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5515 | else |
|
|
5516 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5517 | echo "${ECHO_T}no" >&6 |
|
|
5518 | fi |
|
|
5519 | |
|
|
5520 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
5521 | if test -n "$ac_tool_prefix"; then |
2302 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5522 | echo "$as_me:$LINENO: checking for file" >&5 |
2303 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
5523 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
5524 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
5525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5526 | else |
|
|
5527 | case $MAGIC_CMD in |
|
|
5528 | [\\/*] | ?:[\\/]*) |
|
|
5529 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5530 | ;; |
|
|
5531 | *) |
|
|
5532 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5533 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
5534 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
|
5535 | for ac_dir in $ac_dummy; do |
|
|
5536 | IFS="$lt_save_ifs" |
|
|
5537 | test -z "$ac_dir" && ac_dir=. |
|
|
5538 | if test -f $ac_dir/file; then |
|
|
5539 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5540 | if test -n "$file_magic_test_file"; then |
|
|
5541 | case $deplibs_check_method in |
|
|
5542 | "file_magic "*) |
|
|
5543 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
|
5544 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5545 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5546 | $EGREP "$file_magic_regex" > /dev/null; then |
|
|
5547 | : |
|
|
5548 | else |
|
|
5549 | cat <<EOF 1>&2 |
|
|
5550 | |
|
|
5551 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5552 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5553 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5554 | *** as such. This will affect the creation of libtool libraries that |
|
|
5555 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5556 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5557 | *** may want to report the problem to your system manager and/or to |
|
|
5558 | *** bug-libtool@gnu.org |
|
|
5559 | |
|
|
5560 | EOF |
|
|
5561 | fi ;; |
|
|
5562 | esac |
|
|
5563 | fi |
|
|
5564 | break |
|
|
5565 | fi |
|
|
5566 | done |
|
|
5567 | IFS="$lt_save_ifs" |
|
|
5568 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
|
5569 | ;; |
|
|
5570 | esac |
|
|
5571 | fi |
|
|
5572 | |
|
|
5573 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5574 | if test -n "$MAGIC_CMD"; then |
|
|
5575 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5576 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5577 | else |
|
|
5578 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5579 | echo "${ECHO_T}no" >&6 |
|
|
5580 | fi |
|
|
5581 | |
|
|
5582 | else |
|
|
5583 | MAGIC_CMD=: |
|
|
5584 | fi |
|
|
5585 | fi |
|
|
5586 | |
|
|
5587 | fi |
|
|
5588 | ;; |
|
|
5589 | esac |
|
|
5590 | |
|
|
5591 | enable_dlopen=no |
|
|
5592 | enable_win32_dll=no |
|
|
5593 | |
|
|
5594 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5595 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5596 | enableval="$enable_libtool_lock" |
|
|
5597 | |
|
|
5598 | fi; |
|
|
5599 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5600 | |
|
|
5601 | |
|
|
5602 | # Check whether --with-pic or --without-pic was given. |
|
|
5603 | if test "${with_pic+set}" = set; then |
|
|
5604 | withval="$with_pic" |
|
|
5605 | pic_mode="$withval" |
|
|
5606 | else |
|
|
5607 | pic_mode=default |
|
|
5608 | fi; |
|
|
5609 | test -z "$pic_mode" && pic_mode=default |
|
|
5610 | |
|
|
5611 | # Use C for the default configuration in the libtool script |
|
|
5612 | tagname= |
|
|
5613 | lt_save_CC="$CC" |
|
|
5614 | ac_ext=c |
|
|
5615 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5619 | |
|
|
5620 | |
|
|
5621 | # Source file extension for C test sources. |
|
|
5622 | ac_ext=c |
|
|
5623 | |
|
|
5624 | # Object file extension for compiled C test sources. |
|
|
5625 | objext=o |
|
|
5626 | objext=$objext |
|
|
5627 | |
|
|
5628 | # Code to be used in simple compile tests |
|
|
5629 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
5630 | |
|
|
5631 | # Code to be used in simple link tests |
|
|
5632 | lt_simple_link_test_code='int main(){return(0);}\n' |
|
|
5633 | |
|
|
5634 | |
|
|
5635 | # If no C compiler was specified, use CC. |
|
|
5636 | LTCC=${LTCC-"$CC"} |
|
|
5637 | |
|
|
5638 | # If no C compiler flags were specified, use CFLAGS. |
|
|
5639 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
5640 | |
|
|
5641 | # Allow CC to be a program name with arguments. |
|
|
5642 | compiler=$CC |
|
|
5643 | |
|
|
5644 | |
|
|
5645 | # save warnings/boilerplate of simple test code |
|
|
5646 | ac_outfile=conftest.$ac_objext |
|
|
5647 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
5648 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
5649 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
5650 | $rm conftest* |
|
|
5651 | |
|
|
5652 | ac_outfile=conftest.$ac_objext |
|
|
5653 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
5654 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
5655 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
5656 | $rm conftest* |
|
|
5657 | |
|
|
5658 | |
|
|
5659 | |
|
|
5660 | lt_prog_compiler_no_builtin_flag= |
|
|
5661 | |
|
|
5662 | if test "$GCC" = yes; then |
|
|
5663 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
|
5664 | |
|
|
5665 | |
|
|
5666 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5667 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5668 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
|
5669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5670 | else |
|
|
5671 | lt_cv_prog_compiler_rtti_exceptions=no |
|
|
5672 | ac_outfile=conftest.$ac_objext |
|
|
5673 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
5674 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
|
5675 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
5676 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
5677 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
5678 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
5679 | # The option is referenced via a variable to avoid confusing sed. |
|
|
5680 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
5681 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
5682 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
5683 | -e 's:$: $lt_compiler_flag:'` |
|
|
5684 | (eval echo "\"\$as_me:5684: $lt_compile\"" >&5) |
|
|
5685 | (eval "$lt_compile" 2>conftest.err) |
|
|
5686 | ac_status=$? |
|
|
5687 | cat conftest.err >&5 |
|
|
5688 | echo "$as_me:5688: \$? = $ac_status" >&5 |
|
|
5689 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
5690 | # The compiler can only warn and ignore the option if not recognized |
|
|
5691 | # So say no if there are warnings other than the usual output. |
|
|
5692 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
5693 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
5694 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
5695 | lt_cv_prog_compiler_rtti_exceptions=yes |
|
|
5696 | fi |
|
|
5697 | fi |
|
|
5698 | $rm conftest* |
|
|
5699 | |
|
|
5700 | fi |
|
|
5701 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
|
5702 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
|
5703 | |
|
|
5704 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
|
5705 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
|
5706 | else |
|
|
5707 | : |
|
|
5708 | fi |
|
|
5709 | |
|
|
5710 | fi |
|
|
5711 | |
|
|
5712 | lt_prog_compiler_wl= |
|
|
5713 | lt_prog_compiler_pic= |
|
|
5714 | lt_prog_compiler_static= |
|
|
5715 | |
|
|
5716 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5717 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5718 | |
|
|
5719 | if test "$GCC" = yes; then |
|
|
5720 | lt_prog_compiler_wl='-Wl,' |
|
|
5721 | lt_prog_compiler_static='-static' |
|
|
5722 | |
|
|
5723 | case $host_os in |
|
|
5724 | aix*) |
|
|
5725 | # All AIX code is PIC. |
|
|
5726 | if test "$host_cpu" = ia64; then |
|
|
5727 | # AIX 5 now supports IA64 processor |
|
|
5728 | lt_prog_compiler_static='-Bstatic' |
|
|
5729 | fi |
|
|
5730 | ;; |
|
|
5731 | |
|
|
5732 | amigaos*) |
|
|
5733 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5734 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5735 | # like `-m68040'. |
|
|
5736 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5737 | ;; |
|
|
5738 | |
|
|
5739 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
5740 | # PIC is the default for these OSes. |
|
|
5741 | ;; |
|
|
5742 | |
|
|
5743 | mingw* | pw32* | os2*) |
|
|
5744 | # This hack is so that the source file can tell whether it is being |
|
|
5745 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5746 | lt_prog_compiler_pic='-DDLL_EXPORT' |
|
|
5747 | ;; |
|
|
5748 | |
|
|
5749 | darwin* | rhapsody*) |
|
|
5750 | # PIC is the default on this platform |
|
|
5751 | # Common symbols not allowed in MH_DYLIB files |
|
|
5752 | lt_prog_compiler_pic='-fno-common' |
|
|
5753 | ;; |
|
|
5754 | |
|
|
5755 | interix3*) |
|
|
5756 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
5757 | # Instead, we relocate shared libraries at runtime. |
|
|
5758 | ;; |
|
|
5759 | |
|
|
5760 | msdosdjgpp*) |
|
|
5761 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
5762 | # on systems that don't support them. |
|
|
5763 | lt_prog_compiler_can_build_shared=no |
|
|
5764 | enable_shared=no |
|
|
5765 | ;; |
|
|
5766 | |
|
|
5767 | sysv4*MP*) |
|
|
5768 | if test -d /usr/nec; then |
|
|
5769 | lt_prog_compiler_pic=-Kconform_pic |
|
|
5770 | fi |
|
|
5771 | ;; |
|
|
5772 | |
|
|
5773 | hpux*) |
|
|
5774 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
5775 | # not for PA HP-UX. |
|
|
5776 | case $host_cpu in |
|
|
5777 | hppa*64*|ia64*) |
|
|
5778 | # +Z the default |
|
|
5779 | ;; |
|
|
5780 | *) |
|
|
5781 | lt_prog_compiler_pic='-fPIC' |
|
|
5782 | ;; |
|
|
5783 | esac |
|
|
5784 | ;; |
|
|
5785 | |
|
|
5786 | *) |
|
|
5787 | lt_prog_compiler_pic='-fPIC' |
|
|
5788 | ;; |
|
|
5789 | esac |
|
|
5790 | else |
|
|
5791 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
5792 | case $host_os in |
|
|
5793 | aix*) |
|
|
5794 | lt_prog_compiler_wl='-Wl,' |
|
|
5795 | if test "$host_cpu" = ia64; then |
|
|
5796 | # AIX 5 now supports IA64 processor |
|
|
5797 | lt_prog_compiler_static='-Bstatic' |
|
|
5798 | else |
|
|
5799 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5800 | fi |
|
|
5801 | ;; |
|
|
5802 | darwin*) |
|
|
5803 | # PIC is the default on this platform |
|
|
5804 | # Common symbols not allowed in MH_DYLIB files |
|
|
5805 | case $cc_basename in |
|
|
5806 | xlc*) |
|
|
5807 | lt_prog_compiler_pic='-qnocommon' |
|
|
5808 | lt_prog_compiler_wl='-Wl,' |
|
|
5809 | ;; |
|
|
5810 | esac |
|
|
5811 | ;; |
|
|
5812 | |
|
|
5813 | mingw* | pw32* | os2*) |
|
|
5814 | # This hack is so that the source file can tell whether it is being |
|
|
5815 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5816 | lt_prog_compiler_pic='-DDLL_EXPORT' |
|
|
5817 | ;; |
|
|
5818 | |
|
|
5819 | hpux9* | hpux10* | hpux11*) |
|
|
5820 | lt_prog_compiler_wl='-Wl,' |
|
|
5821 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
5822 | # not for PA HP-UX. |
|
|
5823 | case $host_cpu in |
|
|
5824 | hppa*64*|ia64*) |
|
|
5825 | # +Z the default |
|
|
5826 | ;; |
|
|
5827 | *) |
|
|
5828 | lt_prog_compiler_pic='+Z' |
|
|
5829 | ;; |
|
|
5830 | esac |
|
|
5831 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
5832 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
|
5833 | ;; |
|
|
5834 | |
|
|
5835 | irix5* | irix6* | nonstopux*) |
|
|
5836 | lt_prog_compiler_wl='-Wl,' |
|
|
5837 | # PIC (with -KPIC) is the default. |
|
|
5838 | lt_prog_compiler_static='-non_shared' |
|
|
5839 | ;; |
|
|
5840 | |
|
|
5841 | newsos6) |
|
|
5842 | lt_prog_compiler_pic='-KPIC' |
|
|
5843 | lt_prog_compiler_static='-Bstatic' |
|
|
5844 | ;; |
|
|
5845 | |
|
|
5846 | linux*) |
|
|
5847 | case $cc_basename in |
|
|
5848 | icc* | ecc*) |
|
|
5849 | lt_prog_compiler_wl='-Wl,' |
|
|
5850 | lt_prog_compiler_pic='-KPIC' |
|
|
5851 | lt_prog_compiler_static='-static' |
|
|
5852 | ;; |
|
|
5853 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
5854 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
5855 | # which looks to be a dead project) |
|
|
5856 | lt_prog_compiler_wl='-Wl,' |
|
|
5857 | lt_prog_compiler_pic='-fpic' |
|
|
5858 | lt_prog_compiler_static='-Bstatic' |
|
|
5859 | ;; |
|
|
5860 | ccc*) |
|
|
5861 | lt_prog_compiler_wl='-Wl,' |
|
|
5862 | # All Alpha code is PIC. |
|
|
5863 | lt_prog_compiler_static='-non_shared' |
|
|
5864 | ;; |
|
|
5865 | esac |
|
|
5866 | ;; |
|
|
5867 | |
|
|
5868 | osf3* | osf4* | osf5*) |
|
|
5869 | lt_prog_compiler_wl='-Wl,' |
|
|
5870 | # All OSF/1 code is PIC. |
|
|
5871 | lt_prog_compiler_static='-non_shared' |
|
|
5872 | ;; |
|
|
5873 | |
|
|
5874 | solaris*) |
|
|
5875 | lt_prog_compiler_pic='-KPIC' |
|
|
5876 | lt_prog_compiler_static='-Bstatic' |
|
|
5877 | case $cc_basename in |
|
|
5878 | f77* | f90* | f95*) |
|
|
5879 | lt_prog_compiler_wl='-Qoption ld ';; |
|
|
5880 | *) |
|
|
5881 | lt_prog_compiler_wl='-Wl,';; |
|
|
5882 | esac |
|
|
5883 | ;; |
|
|
5884 | |
|
|
5885 | sunos4*) |
|
|
5886 | lt_prog_compiler_wl='-Qoption ld ' |
|
|
5887 | lt_prog_compiler_pic='-PIC' |
|
|
5888 | lt_prog_compiler_static='-Bstatic' |
|
|
5889 | ;; |
|
|
5890 | |
|
|
5891 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
5892 | lt_prog_compiler_wl='-Wl,' |
|
|
5893 | lt_prog_compiler_pic='-KPIC' |
|
|
5894 | lt_prog_compiler_static='-Bstatic' |
|
|
5895 | ;; |
|
|
5896 | |
|
|
5897 | sysv4*MP*) |
|
|
5898 | if test -d /usr/nec ;then |
|
|
5899 | lt_prog_compiler_pic='-Kconform_pic' |
|
|
5900 | lt_prog_compiler_static='-Bstatic' |
|
|
5901 | fi |
|
|
5902 | ;; |
|
|
5903 | |
|
|
5904 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
5905 | lt_prog_compiler_wl='-Wl,' |
|
|
5906 | lt_prog_compiler_pic='-KPIC' |
|
|
5907 | lt_prog_compiler_static='-Bstatic' |
|
|
5908 | ;; |
|
|
5909 | |
|
|
5910 | unicos*) |
|
|
5911 | lt_prog_compiler_wl='-Wl,' |
|
|
5912 | lt_prog_compiler_can_build_shared=no |
|
|
5913 | ;; |
|
|
5914 | |
|
|
5915 | uts4*) |
|
|
5916 | lt_prog_compiler_pic='-pic' |
|
|
5917 | lt_prog_compiler_static='-Bstatic' |
|
|
5918 | ;; |
|
|
5919 | |
|
|
5920 | *) |
|
|
5921 | lt_prog_compiler_can_build_shared=no |
|
|
5922 | ;; |
|
|
5923 | esac |
|
|
5924 | fi |
|
|
5925 | |
|
|
5926 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
|
|
5927 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 |
|
|
5928 | |
|
|
5929 | # |
|
|
5930 | # Check to make sure the PIC flag actually works. |
|
|
5931 | # |
|
|
5932 | if test -n "$lt_prog_compiler_pic"; then |
|
|
5933 | |
|
|
5934 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
|
5935 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 |
|
|
5936 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
|
|
5937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5938 | else |
|
|
5939 | lt_prog_compiler_pic_works=no |
|
|
5940 | ac_outfile=conftest.$ac_objext |
|
|
5941 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
5942 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
|
5943 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
5944 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
5945 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
5946 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
5947 | # The option is referenced via a variable to avoid confusing sed. |
|
|
5948 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
5949 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
5950 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
5951 | -e 's:$: $lt_compiler_flag:'` |
|
|
5952 | (eval echo "\"\$as_me:5952: $lt_compile\"" >&5) |
|
|
5953 | (eval "$lt_compile" 2>conftest.err) |
|
|
5954 | ac_status=$? |
|
|
5955 | cat conftest.err >&5 |
|
|
5956 | echo "$as_me:5956: \$? = $ac_status" >&5 |
|
|
5957 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
5958 | # The compiler can only warn and ignore the option if not recognized |
|
|
5959 | # So say no if there are warnings other than the usual output. |
|
|
5960 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
5961 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
5962 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
5963 | lt_prog_compiler_pic_works=yes |
|
|
5964 | fi |
|
|
5965 | fi |
|
|
5966 | $rm conftest* |
|
|
5967 | |
|
|
5968 | fi |
|
|
5969 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
|
|
5970 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 |
|
|
5971 | |
|
|
5972 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
|
|
5973 | case $lt_prog_compiler_pic in |
|
|
5974 | "" | " "*) ;; |
|
|
5975 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
|
5976 | esac |
|
|
5977 | else |
|
|
5978 | lt_prog_compiler_pic= |
|
|
5979 | lt_prog_compiler_can_build_shared=no |
|
|
5980 | fi |
|
|
5981 | |
|
|
5982 | fi |
|
|
5983 | case $host_os in |
|
|
5984 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
5985 | *djgpp*) |
|
|
5986 | lt_prog_compiler_pic= |
|
|
5987 | ;; |
|
|
5988 | *) |
|
|
5989 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
|
5990 | ;; |
|
|
5991 | esac |
|
|
5992 | |
|
|
5993 | # |
|
|
5994 | # Check to make sure the static flag actually works. |
|
|
5995 | # |
|
|
5996 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
|
5997 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
5998 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
5999 | if test "${lt_prog_compiler_static_works+set}" = set; then |
|
|
6000 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6001 | else |
|
|
6002 | lt_prog_compiler_static_works=no |
|
|
6003 | save_LDFLAGS="$LDFLAGS" |
|
|
6004 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
6005 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
6006 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
6007 | # The linker can only warn and ignore the option if not recognized |
|
|
6008 | # So say no if there are warnings |
|
|
6009 | if test -s conftest.err; then |
|
|
6010 | # Append any errors to the config.log. |
|
|
6011 | cat conftest.err 1>&5 |
|
|
6012 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
6013 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
6014 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
6015 | lt_prog_compiler_static_works=yes |
|
|
6016 | fi |
|
|
6017 | else |
|
|
6018 | lt_prog_compiler_static_works=yes |
|
|
6019 | fi |
|
|
6020 | fi |
|
|
6021 | $rm conftest* |
|
|
6022 | LDFLAGS="$save_LDFLAGS" |
|
|
6023 | |
|
|
6024 | fi |
|
|
6025 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
|
|
6026 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 |
|
|
6027 | |
|
|
6028 | if test x"$lt_prog_compiler_static_works" = xyes; then |
|
|
6029 | : |
|
|
6030 | else |
|
|
6031 | lt_prog_compiler_static= |
|
|
6032 | fi |
|
|
6033 | |
|
|
6034 | |
|
|
6035 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
6036 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
6037 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
|
|
6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6039 | else |
|
|
6040 | lt_cv_prog_compiler_c_o=no |
|
|
6041 | $rm -r conftest 2>/dev/null |
|
|
6042 | mkdir conftest |
|
|
6043 | cd conftest |
|
|
6044 | mkdir out |
|
|
6045 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
6046 | |
|
|
6047 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
6048 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
6049 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
6050 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
6051 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
6052 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
6053 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
6054 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
6055 | -e 's:$: $lt_compiler_flag:'` |
|
|
6056 | (eval echo "\"\$as_me:6056: $lt_compile\"" >&5) |
|
|
6057 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
6058 | ac_status=$? |
|
|
6059 | cat out/conftest.err >&5 |
|
|
6060 | echo "$as_me:6060: \$? = $ac_status" >&5 |
|
|
6061 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
6062 | then |
|
|
6063 | # The compiler can only warn and ignore the option if not recognized |
|
|
6064 | # So say no if there are warnings |
|
|
6065 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
6066 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
6067 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
6068 | lt_cv_prog_compiler_c_o=yes |
|
|
6069 | fi |
|
|
6070 | fi |
|
|
6071 | chmod u+w . 2>&5 |
|
|
6072 | $rm conftest* |
|
|
6073 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
6074 | # template instantiation |
|
|
6075 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
6076 | $rm out/* && rmdir out |
|
|
6077 | cd .. |
|
|
6078 | rmdir conftest |
|
|
6079 | $rm conftest* |
|
|
6080 | |
|
|
6081 | fi |
|
|
6082 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
|
|
6083 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 |
|
|
6084 | |
|
|
6085 | |
|
|
6086 | hard_links="nottested" |
|
|
6087 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
|
6088 | # do not overwrite the value of need_locks provided by the user |
|
|
6089 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
6090 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
6091 | hard_links=yes |
|
|
6092 | $rm conftest* |
|
|
6093 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
6094 | touch conftest.a |
|
|
6095 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
6096 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
6097 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
6098 | echo "${ECHO_T}$hard_links" >&6 |
|
|
6099 | if test "$hard_links" = no; then |
|
|
6100 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
6101 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
6102 | need_locks=warn |
|
|
6103 | fi |
|
|
6104 | else |
|
|
6105 | need_locks=no |
|
|
6106 | fi |
|
|
6107 | |
|
|
6108 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
6109 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
6110 | |
|
|
6111 | runpath_var= |
|
|
6112 | allow_undefined_flag= |
|
|
6113 | enable_shared_with_static_runtimes=no |
|
|
6114 | archive_cmds= |
|
|
6115 | archive_expsym_cmds= |
|
|
6116 | old_archive_From_new_cmds= |
|
|
6117 | old_archive_from_expsyms_cmds= |
|
|
6118 | export_dynamic_flag_spec= |
|
|
6119 | whole_archive_flag_spec= |
|
|
6120 | thread_safe_flag_spec= |
|
|
6121 | hardcode_libdir_flag_spec= |
|
|
6122 | hardcode_libdir_flag_spec_ld= |
|
|
6123 | hardcode_libdir_separator= |
|
|
6124 | hardcode_direct=no |
|
|
6125 | hardcode_minus_L=no |
|
|
6126 | hardcode_shlibpath_var=unsupported |
|
|
6127 | link_all_deplibs=unknown |
|
|
6128 | hardcode_automatic=no |
|
|
6129 | module_cmds= |
|
|
6130 | module_expsym_cmds= |
|
|
6131 | always_export_symbols=no |
|
|
6132 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6133 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6134 | # included in the symbol list |
|
|
6135 | include_expsyms= |
|
|
6136 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
6137 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6138 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6139 | # as well as any symbol that contains `d'. |
|
|
6140 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6141 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6142 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6143 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6144 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6145 | # preloaded symbol tables. |
|
|
6146 | extract_expsyms_cmds= |
|
|
6147 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
6148 | for cc_temp in $compiler""; do |
|
|
6149 | case $cc_temp in |
|
|
6150 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
6151 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
6152 | \-*) ;; |
|
|
6153 | *) break;; |
|
|
6154 | esac |
|
|
6155 | done |
|
|
6156 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
6157 | |
|
|
6158 | case $host_os in |
|
|
6159 | cygwin* | mingw* | pw32*) |
|
|
6160 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6161 | # When not using gcc, we currently assume that we are using |
|
|
6162 | # Microsoft Visual C++. |
|
|
6163 | if test "$GCC" != yes; then |
|
|
6164 | with_gnu_ld=no |
|
|
6165 | fi |
|
|
6166 | ;; |
|
|
6167 | interix*) |
|
|
6168 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
6169 | with_gnu_ld=yes |
|
|
6170 | ;; |
|
|
6171 | openbsd*) |
|
|
6172 | with_gnu_ld=no |
|
|
6173 | ;; |
|
|
6174 | esac |
|
|
6175 | |
|
|
6176 | ld_shlibs=yes |
|
|
6177 | if test "$with_gnu_ld" = yes; then |
|
|
6178 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6179 | wlarc='${wl}' |
|
|
6180 | |
|
|
6181 | # Set some defaults for GNU ld with shared library support. These |
|
|
6182 | # are reset later if shared libraries are not supported. Putting them |
|
|
6183 | # here allows them to be overridden if necessary. |
|
|
6184 | runpath_var=LD_RUN_PATH |
|
|
6185 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6186 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6187 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6188 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
6189 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6190 | else |
|
|
6191 | whole_archive_flag_spec= |
|
|
6192 | fi |
|
|
6193 | supports_anon_versioning=no |
|
|
6194 | case `$LD -v 2>/dev/null` in |
|
|
6195 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
6196 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
6197 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
6198 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
6199 | *) supports_anon_versioning=yes ;; |
|
|
6200 | esac |
|
|
6201 | |
|
|
6202 | # See if GNU ld supports shared libraries. |
|
|
6203 | case $host_os in |
|
|
6204 | aix3* | aix4* | aix5*) |
|
|
6205 | # On AIX/PPC, the GNU linker is very broken |
|
|
6206 | if test "$host_cpu" != ia64; then |
|
|
6207 | ld_shlibs=no |
|
|
6208 | cat <<EOF 1>&2 |
|
|
6209 | |
|
|
6210 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6211 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6212 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6213 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6214 | *** so that a non-GNU linker is found, and then restart. |
|
|
6215 | |
|
|
6216 | EOF |
|
|
6217 | fi |
|
|
6218 | ;; |
|
|
6219 | |
|
|
6220 | amigaos*) |
|
|
6221 | 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)' |
|
|
6222 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6223 | hardcode_minus_L=yes |
|
|
6224 | |
|
|
6225 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6226 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6227 | # to version 4, is to share data among multiple programs linked |
|
|
6228 | # with the same dynamic library. Since this doesn't match the |
|
|
6229 | # behavior of shared libraries on other platforms, we can't use |
|
|
6230 | # them. |
|
|
6231 | ld_shlibs=no |
|
|
6232 | ;; |
|
|
6233 | |
|
|
6234 | beos*) |
|
|
6235 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6236 | allow_undefined_flag=unsupported |
|
|
6237 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6238 | # support --undefined. This deserves some investigation. FIXME |
|
|
6239 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6240 | else |
|
|
6241 | ld_shlibs=no |
|
|
6242 | fi |
|
|
6243 | ;; |
|
|
6244 | |
|
|
6245 | cygwin* | mingw* | pw32*) |
|
|
6246 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
|
6247 | # as there is no search path for DLLs. |
|
|
6248 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6249 | allow_undefined_flag=unsupported |
|
|
6250 | always_export_symbols=no |
|
|
6251 | enable_shared_with_static_runtimes=yes |
|
|
6252 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6253 | |
|
|
6254 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
6255 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
6256 | # If the export-symbols file already is a .def file (1st line |
|
|
6257 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
6258 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
6259 | cp $export_symbols $output_objdir/$soname.def; |
|
|
6260 | else |
|
|
6261 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
6262 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
6263 | fi~ |
|
|
6264 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
6265 | else |
|
|
6266 | ld_shlibs=no |
|
|
6267 | fi |
|
|
6268 | ;; |
|
|
6269 | |
|
|
6270 | interix3*) |
|
|
6271 | hardcode_direct=no |
|
|
6272 | hardcode_shlibpath_var=no |
|
|
6273 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6274 | export_dynamic_flag_spec='${wl}-E' |
|
|
6275 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
6276 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
6277 | # default) and relocated if they conflict, which is a slow very memory |
|
|
6278 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
6279 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
6280 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
6281 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
6282 | 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' |
|
|
6283 | ;; |
|
|
6284 | |
|
|
6285 | linux*) |
|
|
6286 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6287 | tmp_addflag= |
|
|
6288 | case $cc_basename,$host_cpu in |
|
|
6289 | pgcc*) # Portland Group C compiler |
|
|
6290 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
6291 | tmp_addflag=' $pic_flag' |
|
|
6292 | ;; |
|
|
6293 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
6294 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
6295 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
6296 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
6297 | tmp_addflag=' -i_dynamic' ;; |
|
|
6298 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
6299 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
6300 | ifc* | ifort*) # Intel Fortran compiler |
|
|
6301 | tmp_addflag=' -nofor_main' ;; |
|
|
6302 | esac |
|
|
6303 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6304 | |
|
|
6305 | if test $supports_anon_versioning = yes; then |
|
|
6306 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
6307 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
6308 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
6309 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
6310 | fi |
|
|
6311 | link_all_deplibs=no |
|
|
6312 | else |
|
|
6313 | ld_shlibs=no |
|
|
6314 | fi |
|
|
6315 | ;; |
|
|
6316 | |
|
|
6317 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
6318 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6319 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6320 | wlarc= |
|
|
6321 | else |
|
|
6322 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6323 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6324 | fi |
|
|
6325 | ;; |
|
|
6326 | |
|
|
6327 | solaris*) |
|
|
6328 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
6329 | ld_shlibs=no |
|
|
6330 | cat <<EOF 1>&2 |
|
|
6331 | |
|
|
6332 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6333 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6334 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6335 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6336 | *** your PATH or compiler configuration so that the native linker is |
|
|
6337 | *** used, and then restart. |
|
|
6338 | |
|
|
6339 | EOF |
|
|
6340 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6341 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6342 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6343 | else |
|
|
6344 | ld_shlibs=no |
|
|
6345 | fi |
|
|
6346 | ;; |
|
|
6347 | |
|
|
6348 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
6349 | case `$LD -v 2>&1` in |
|
|
6350 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
6351 | ld_shlibs=no |
|
|
6352 | cat <<_LT_EOF 1>&2 |
|
|
6353 | |
|
|
6354 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
6355 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
6356 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6357 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
6358 | *** your PATH or compiler configuration so that the native linker is |
|
|
6359 | *** used, and then restart. |
|
|
6360 | |
|
|
6361 | _LT_EOF |
|
|
6362 | ;; |
|
|
6363 | *) |
|
|
6364 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6365 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
6366 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
6367 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
6368 | else |
|
|
6369 | ld_shlibs=no |
|
|
6370 | fi |
|
|
6371 | ;; |
|
|
6372 | esac |
|
|
6373 | ;; |
|
|
6374 | |
|
|
6375 | sunos4*) |
|
|
6376 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6377 | wlarc= |
|
|
6378 | hardcode_direct=yes |
|
|
6379 | hardcode_shlibpath_var=no |
|
|
6380 | ;; |
|
|
6381 | |
|
|
6382 | *) |
|
|
6383 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
6384 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6385 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6386 | else |
|
|
6387 | ld_shlibs=no |
|
|
6388 | fi |
|
|
6389 | ;; |
|
|
6390 | esac |
|
|
6391 | |
|
|
6392 | if test "$ld_shlibs" = no; then |
|
|
6393 | runpath_var= |
|
|
6394 | hardcode_libdir_flag_spec= |
|
|
6395 | export_dynamic_flag_spec= |
|
|
6396 | whole_archive_flag_spec= |
|
|
6397 | fi |
|
|
6398 | else |
|
|
6399 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6400 | case $host_os in |
|
|
6401 | aix3*) |
|
|
6402 | allow_undefined_flag=unsupported |
|
|
6403 | always_export_symbols=yes |
|
|
6404 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
6405 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6406 | # are no directories specified by -L. |
|
|
6407 | hardcode_minus_L=yes |
|
|
6408 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
6409 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6410 | # broken collect2. |
|
|
6411 | hardcode_direct=unsupported |
|
|
6412 | fi |
|
|
6413 | ;; |
|
|
6414 | |
|
|
6415 | aix4* | aix5*) |
|
|
6416 | if test "$host_cpu" = ia64; then |
|
|
6417 | # On IA64, the linker does run time linking by default, so we don't |
|
|
6418 | # have to do anything special. |
|
|
6419 | aix_use_runtimelinking=no |
|
|
6420 | exp_sym_flag='-Bexport' |
|
|
6421 | no_entry_flag="" |
|
|
6422 | else |
|
|
6423 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
6424 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
6425 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
6426 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
6427 | else |
|
|
6428 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
6429 | fi |
|
|
6430 | aix_use_runtimelinking=no |
|
|
6431 | |
|
|
6432 | # Test if we are trying to use run time linking or normal |
|
|
6433 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
6434 | # need to do runtime linking. |
|
|
6435 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
6436 | for ld_flag in $LDFLAGS; do |
|
|
6437 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
6438 | aix_use_runtimelinking=yes |
|
|
6439 | break |
|
|
6440 | fi |
|
|
6441 | done |
|
|
6442 | ;; |
|
|
6443 | esac |
|
|
6444 | |
|
|
6445 | exp_sym_flag='-bexport' |
|
|
6446 | no_entry_flag='-bnoentry' |
|
|
6447 | fi |
|
|
6448 | |
|
|
6449 | # When large executables or shared objects are built, AIX ld can |
|
|
6450 | # have problems creating the table of contents. If linking a library |
|
|
6451 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
6452 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
6453 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
6454 | |
|
|
6455 | archive_cmds='' |
|
|
6456 | hardcode_direct=yes |
|
|
6457 | hardcode_libdir_separator=':' |
|
|
6458 | link_all_deplibs=yes |
|
|
6459 | |
|
|
6460 | if test "$GCC" = yes; then |
|
|
6461 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
6462 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
6463 | # below for broken collect2 doesn't work under 4.3+ |
|
|
6464 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6465 | if test -f "$collect2name" && \ |
|
|
6466 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6467 | then |
|
|
6468 | # We have reworked collect2 |
|
|
6469 | hardcode_direct=yes |
|
|
6470 | else |
|
|
6471 | # We have old collect2 |
|
|
6472 | hardcode_direct=unsupported |
|
|
6473 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6474 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6475 | # to unsupported forces relinking |
|
|
6476 | hardcode_minus_L=yes |
|
|
6477 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6478 | hardcode_libdir_separator= |
|
|
6479 | fi |
|
|
6480 | ;; |
|
|
6481 | esac |
|
|
6482 | shared_flag='-shared' |
|
|
6483 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6484 | shared_flag="$shared_flag "'${wl}-G' |
|
|
6485 | fi |
|
|
6486 | else |
|
|
6487 | # not using gcc |
|
|
6488 | if test "$host_cpu" = ia64; then |
|
|
6489 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
6490 | # chokes on -Wl,-G. The following line is correct: |
|
|
6491 | shared_flag='-G' |
|
|
6492 | else |
|
|
6493 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6494 | shared_flag='${wl}-G' |
|
|
6495 | else |
|
|
6496 | shared_flag='${wl}-bM:SRE' |
|
|
6497 | fi |
|
|
6498 | fi |
|
|
6499 | fi |
|
|
6500 | |
|
|
6501 | # It seems that -bexpall does not export symbols beginning with |
|
|
6502 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
6503 | always_export_symbols=yes |
|
|
6504 | if test "$aix_use_runtimelinking" = yes; then |
|
|
6505 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
6506 | # -berok will link without error, but may produce a broken library. |
|
|
6507 | allow_undefined_flag='-berok' |
|
|
6508 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
6509 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6510 | /* confdefs.h. */ |
|
|
6511 | _ACEOF |
|
|
6512 | cat confdefs.h >>conftest.$ac_ext |
|
|
6513 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6514 | /* end confdefs.h. */ |
|
|
6515 | |
|
|
6516 | int |
|
|
6517 | main () |
|
|
6518 | { |
|
|
6519 | |
|
|
6520 | ; |
|
|
6521 | return 0; |
|
|
6522 | } |
|
|
6523 | _ACEOF |
|
|
6524 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6526 | (eval $ac_link) 2>conftest.er1 |
|
|
6527 | ac_status=$? |
|
|
6528 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6529 | rm -f conftest.er1 |
|
|
6530 | cat conftest.err >&5 |
|
|
6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6532 | (exit $ac_status); } && |
|
|
6533 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6535 | (eval $ac_try) 2>&5 |
|
|
6536 | ac_status=$? |
|
|
6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6538 | (exit $ac_status); }; } && |
|
|
6539 | { ac_try='test -s conftest$ac_exeext' |
|
|
6540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6541 | (eval $ac_try) 2>&5 |
|
|
6542 | ac_status=$? |
|
|
6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6544 | (exit $ac_status); }; }; then |
|
|
6545 | |
|
|
6546 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6547 | }'` |
|
|
6548 | # Check for a 64-bit object if we didn't find anything. |
|
|
6549 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6550 | }'`; fi |
|
|
6551 | else |
|
|
6552 | echo "$as_me: failed program was:" >&5 |
|
|
6553 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6554 | |
|
|
6555 | fi |
|
|
6556 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6557 | conftest$ac_exeext conftest.$ac_ext |
|
|
6558 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
6559 | |
|
|
6560 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
6561 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
6562 | else |
|
|
6563 | if test "$host_cpu" = ia64; then |
|
|
6564 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
|
6565 | allow_undefined_flag="-z nodefs" |
|
|
6566 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
|
|
6567 | else |
|
|
6568 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
6569 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6570 | /* confdefs.h. */ |
|
|
6571 | _ACEOF |
|
|
6572 | cat confdefs.h >>conftest.$ac_ext |
|
|
6573 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6574 | /* end confdefs.h. */ |
|
|
6575 | |
|
|
6576 | int |
|
|
6577 | main () |
|
|
6578 | { |
|
|
6579 | |
|
|
6580 | ; |
|
|
6581 | return 0; |
|
|
6582 | } |
|
|
6583 | _ACEOF |
|
|
6584 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
6585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
6586 | (eval $ac_link) 2>conftest.er1 |
|
|
6587 | ac_status=$? |
|
|
6588 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6589 | rm -f conftest.er1 |
|
|
6590 | cat conftest.err >&5 |
|
|
6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6592 | (exit $ac_status); } && |
|
|
6593 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
6594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6595 | (eval $ac_try) 2>&5 |
|
|
6596 | ac_status=$? |
|
|
6597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6598 | (exit $ac_status); }; } && |
|
|
6599 | { ac_try='test -s conftest$ac_exeext' |
|
|
6600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6601 | (eval $ac_try) 2>&5 |
|
|
6602 | ac_status=$? |
|
|
6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6604 | (exit $ac_status); }; }; then |
|
|
6605 | |
|
|
6606 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6607 | }'` |
|
|
6608 | # Check for a 64-bit object if we didn't find anything. |
|
|
6609 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
6610 | }'`; fi |
|
|
6611 | else |
|
|
6612 | echo "$as_me: failed program was:" >&5 |
|
|
6613 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
6614 | |
|
|
6615 | fi |
|
|
6616 | rm -f conftest.err conftest.$ac_objext \ |
|
|
6617 | conftest$ac_exeext conftest.$ac_ext |
|
|
6618 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
6619 | |
|
|
6620 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
6621 | # Warning - without using the other run time loading flags, |
|
|
6622 | # -berok will link without error, but may produce a broken library. |
|
|
6623 | no_undefined_flag=' ${wl}-bernotok' |
|
|
6624 | allow_undefined_flag=' ${wl}-berok' |
|
|
6625 | # Exported symbols can be pulled into shared objects from archives |
|
|
6626 | whole_archive_flag_spec='$convenience' |
|
|
6627 | archive_cmds_need_lc=yes |
|
|
6628 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
6629 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
6630 | fi |
|
|
6631 | fi |
|
|
6632 | ;; |
|
|
6633 | |
|
|
6634 | amigaos*) |
|
|
6635 | 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)' |
|
|
6636 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6637 | hardcode_minus_L=yes |
|
|
6638 | # see comment about different semantics on the GNU ld section |
|
|
6639 | ld_shlibs=no |
|
|
6640 | ;; |
|
|
6641 | |
|
|
6642 | bsdi[45]*) |
|
|
6643 | export_dynamic_flag_spec=-rdynamic |
|
|
6644 | ;; |
|
|
6645 | |
|
|
6646 | cygwin* | mingw* | pw32*) |
|
|
6647 | # When not using gcc, we currently assume that we are using |
|
|
6648 | # Microsoft Visual C++. |
|
|
6649 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6650 | # no search path for DLLs. |
|
|
6651 | hardcode_libdir_flag_spec=' ' |
|
|
6652 | allow_undefined_flag=unsupported |
|
|
6653 | # Tell ltmain to make .lib files, not .a files. |
|
|
6654 | libext=lib |
|
|
6655 | # Tell ltmain to make .dll files, not .so files. |
|
|
6656 | shrext_cmds=".dll" |
|
|
6657 | # FIXME: Setting linknames here is a bad hack. |
|
|
6658 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6659 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6660 | old_archive_From_new_cmds='true' |
|
|
6661 | # FIXME: Should let the user specify the lib program. |
|
|
6662 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6663 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6664 | enable_shared_with_static_runtimes=yes |
|
|
6665 | ;; |
|
|
6666 | |
|
|
6667 | darwin* | rhapsody*) |
|
|
6668 | case $host_os in |
|
|
6669 | rhapsody* | darwin1.[012]) |
|
|
6670 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
|
|
6671 | ;; |
|
|
6672 | *) # Darwin 1.3 on |
|
|
6673 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
6674 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
6675 | else |
|
|
6676 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
6677 | 10.[012]) |
|
|
6678 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
6679 | ;; |
|
|
6680 | 10.*) |
|
|
6681 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
|
|
6682 | ;; |
|
|
6683 | esac |
|
|
6684 | fi |
|
|
6685 | ;; |
|
|
6686 | esac |
|
|
6687 | archive_cmds_need_lc=no |
|
|
6688 | hardcode_direct=no |
|
|
6689 | hardcode_automatic=yes |
|
|
6690 | hardcode_shlibpath_var=unsupported |
|
|
6691 | whole_archive_flag_spec='' |
|
|
6692 | link_all_deplibs=yes |
|
|
6693 | if test "$GCC" = yes ; then |
|
|
6694 | output_verbose_link_cmd='echo' |
|
|
6695 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
6696 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6697 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
6698 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6699 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6700 | else |
|
|
6701 | case $cc_basename in |
|
|
6702 | xlc*) |
|
|
6703 | output_verbose_link_cmd='echo' |
|
|
6704 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
6705 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
6706 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
6707 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6708 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
6709 | ;; |
|
|
6710 | *) |
|
|
6711 | ld_shlibs=no |
|
|
6712 | ;; |
|
|
6713 | esac |
|
|
6714 | fi |
|
|
6715 | ;; |
|
|
6716 | |
|
|
6717 | dgux*) |
|
|
6718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6719 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6720 | hardcode_shlibpath_var=no |
|
|
6721 | ;; |
|
|
6722 | |
|
|
6723 | freebsd1*) |
|
|
6724 | ld_shlibs=no |
|
|
6725 | ;; |
|
|
6726 | |
|
|
6727 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6728 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6729 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6730 | # extra space). |
|
|
6731 | freebsd2.2*) |
|
|
6732 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6733 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6734 | hardcode_direct=yes |
|
|
6735 | hardcode_shlibpath_var=no |
|
|
6736 | ;; |
|
|
6737 | |
|
|
6738 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6739 | freebsd2*) |
|
|
6740 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6741 | hardcode_direct=yes |
|
|
6742 | hardcode_minus_L=yes |
|
|
6743 | hardcode_shlibpath_var=no |
|
|
6744 | ;; |
|
|
6745 | |
|
|
6746 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6747 | freebsd* | dragonfly*) |
|
|
6748 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6749 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6750 | hardcode_direct=yes |
|
|
6751 | hardcode_shlibpath_var=no |
|
|
6752 | ;; |
|
|
6753 | |
|
|
6754 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
6755 | kfreebsd*-gnu) |
|
|
6756 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6757 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6758 | hardcode_direct=yes |
|
|
6759 | hardcode_shlibpath_var=no |
|
|
6760 | link_all_deplibs=no |
|
|
6761 | ;; |
|
|
6762 | |
|
|
6763 | hpux9*) |
|
|
6764 | if test "$GCC" = yes; then |
|
|
6765 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
6766 | else |
|
|
6767 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
6768 | fi |
|
|
6769 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6770 | hardcode_libdir_separator=: |
|
|
6771 | hardcode_direct=yes |
|
|
6772 | |
|
|
6773 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6774 | # but as the default location of the library. |
|
|
6775 | hardcode_minus_L=yes |
|
|
6776 | export_dynamic_flag_spec='${wl}-E' |
|
|
6777 | ;; |
|
|
6778 | |
|
|
6779 | hpux10*) |
|
|
6780 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
6781 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6782 | else |
|
|
6783 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
6784 | fi |
|
|
6785 | if test "$with_gnu_ld" = no; then |
|
|
6786 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6787 | hardcode_libdir_separator=: |
|
|
6788 | |
|
|
6789 | hardcode_direct=yes |
|
|
6790 | export_dynamic_flag_spec='${wl}-E' |
|
|
6791 | |
|
|
6792 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6793 | # but as the default location of the library. |
|
|
6794 | hardcode_minus_L=yes |
|
|
6795 | fi |
|
|
6796 | ;; |
|
|
6797 | |
|
|
6798 | hpux11*) |
|
|
6799 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
6800 | case $host_cpu in |
|
|
6801 | hppa*64*) |
|
|
6802 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6803 | ;; |
|
|
6804 | ia64*) |
|
|
6805 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6806 | ;; |
|
|
6807 | *) |
|
|
6808 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6809 | ;; |
|
|
6810 | esac |
|
|
6811 | else |
|
|
6812 | case $host_cpu in |
|
|
6813 | hppa*64*) |
|
|
6814 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6815 | ;; |
|
|
6816 | ia64*) |
|
|
6817 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6818 | ;; |
|
|
6819 | *) |
|
|
6820 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6821 | ;; |
|
|
6822 | esac |
|
|
6823 | fi |
|
|
6824 | if test "$with_gnu_ld" = no; then |
|
|
6825 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6826 | hardcode_libdir_separator=: |
|
|
6827 | |
|
|
6828 | case $host_cpu in |
|
|
6829 | hppa*64*|ia64*) |
|
|
6830 | hardcode_libdir_flag_spec_ld='+b $libdir' |
|
|
6831 | hardcode_direct=no |
|
|
6832 | hardcode_shlibpath_var=no |
|
|
6833 | ;; |
|
|
6834 | *) |
|
|
6835 | hardcode_direct=yes |
|
|
6836 | export_dynamic_flag_spec='${wl}-E' |
|
|
6837 | |
|
|
6838 | # hardcode_minus_L: Not really in the search PATH, |
|
|
6839 | # but as the default location of the library. |
|
|
6840 | hardcode_minus_L=yes |
|
|
6841 | ;; |
|
|
6842 | esac |
|
|
6843 | fi |
|
|
6844 | ;; |
|
|
6845 | |
|
|
6846 | irix5* | irix6* | nonstopux*) |
|
|
6847 | if test "$GCC" = yes; then |
|
|
6848 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6849 | else |
|
|
6850 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6851 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
|
6852 | fi |
|
|
6853 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6854 | hardcode_libdir_separator=: |
|
|
6855 | link_all_deplibs=yes |
|
|
6856 | ;; |
|
|
6857 | |
|
|
6858 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
6859 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6860 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6861 | else |
|
|
6862 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6863 | fi |
|
|
6864 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6865 | hardcode_direct=yes |
|
|
6866 | hardcode_shlibpath_var=no |
|
|
6867 | ;; |
|
|
6868 | |
|
|
6869 | newsos6) |
|
|
6870 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6871 | hardcode_direct=yes |
|
|
6872 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6873 | hardcode_libdir_separator=: |
|
|
6874 | hardcode_shlibpath_var=no |
|
|
6875 | ;; |
|
|
6876 | |
|
|
6877 | openbsd*) |
|
|
6878 | hardcode_direct=yes |
|
|
6879 | hardcode_shlibpath_var=no |
|
|
6880 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
6881 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6882 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
6883 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6884 | export_dynamic_flag_spec='${wl}-E' |
|
|
6885 | else |
|
|
6886 | case $host_os in |
|
|
6887 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
6888 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6889 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6890 | ;; |
|
|
6891 | *) |
|
|
6892 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6893 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
|
6894 | ;; |
|
|
6895 | esac |
|
|
6896 | fi |
|
|
6897 | ;; |
|
|
6898 | |
|
|
6899 | os2*) |
|
|
6900 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6901 | hardcode_minus_L=yes |
|
|
6902 | allow_undefined_flag=unsupported |
|
|
6903 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
6904 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6905 | ;; |
|
|
6906 | |
|
|
6907 | osf3*) |
|
|
6908 | if test "$GCC" = yes; then |
|
|
6909 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6910 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6911 | else |
|
|
6912 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6913 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6914 | fi |
|
|
6915 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6916 | hardcode_libdir_separator=: |
|
|
6917 | ;; |
|
|
6918 | |
|
|
6919 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6920 | if test "$GCC" = yes; then |
|
|
6921 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6922 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
6923 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6924 | else |
|
|
6925 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6926 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
6927 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6928 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
6929 | |
|
|
6930 | # Both c and cxx compiler support -rpath directly |
|
|
6931 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6932 | fi |
|
|
6933 | hardcode_libdir_separator=: |
|
|
6934 | ;; |
|
|
6935 | |
|
|
6936 | solaris*) |
|
|
6937 | no_undefined_flag=' -z text' |
|
|
6938 | if test "$GCC" = yes; then |
|
|
6939 | wlarc='${wl}' |
|
|
6940 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6941 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6942 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
6943 | else |
|
|
6944 | wlarc='' |
|
|
6945 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6946 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6947 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6948 | fi |
|
|
6949 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6950 | hardcode_shlibpath_var=no |
|
|
6951 | case $host_os in |
|
|
6952 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6953 | *) |
|
|
6954 | # The compiler driver will combine linker options so we |
|
|
6955 | # cannot just pass the convience library names through |
|
|
6956 | # without $wl, iff we do not link with $LD. |
|
|
6957 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
6958 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6959 | case $wlarc in |
|
|
6960 | '') |
|
|
6961 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6962 | *) |
|
|
6963 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
|
6964 | esac ;; |
|
|
6965 | esac |
|
|
6966 | link_all_deplibs=yes |
|
|
6967 | ;; |
|
|
6968 | |
|
|
6969 | sunos4*) |
|
|
6970 | if test "x$host_vendor" = xsequent; then |
|
|
6971 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6972 | # files that make .init and .fini sections work. |
|
|
6973 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6974 | else |
|
|
6975 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6976 | fi |
|
|
6977 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6978 | hardcode_direct=yes |
|
|
6979 | hardcode_minus_L=yes |
|
|
6980 | hardcode_shlibpath_var=no |
|
|
6981 | ;; |
|
|
6982 | |
|
|
6983 | sysv4) |
|
|
6984 | case $host_vendor in |
|
|
6985 | sni) |
|
|
6986 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6987 | hardcode_direct=yes # is this really true??? |
|
|
6988 | ;; |
|
|
6989 | siemens) |
|
|
6990 | ## LD is ld it makes a PLAMLIB |
|
|
6991 | ## CC just makes a GrossModule. |
|
|
6992 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6993 | reload_cmds='$CC -r -o $output$reload_objs' |
|
|
6994 | hardcode_direct=no |
|
|
6995 | ;; |
|
|
6996 | motorola) |
|
|
6997 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6998 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6999 | ;; |
|
|
7000 | esac |
|
|
7001 | runpath_var='LD_RUN_PATH' |
|
|
7002 | hardcode_shlibpath_var=no |
|
|
7003 | ;; |
|
|
7004 | |
|
|
7005 | sysv4.3*) |
|
|
7006 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7007 | hardcode_shlibpath_var=no |
|
|
7008 | export_dynamic_flag_spec='-Bexport' |
|
|
7009 | ;; |
|
|
7010 | |
|
|
7011 | sysv4*MP*) |
|
|
7012 | if test -d /usr/nec; then |
|
|
7013 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7014 | hardcode_shlibpath_var=no |
|
|
7015 | runpath_var=LD_RUN_PATH |
|
|
7016 | hardcode_runpath_var=yes |
|
|
7017 | ld_shlibs=yes |
|
|
7018 | fi |
|
|
7019 | ;; |
|
|
7020 | |
|
|
7021 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
7022 | no_undefined_flag='${wl}-z,text' |
|
|
7023 | archive_cmds_need_lc=no |
|
|
7024 | hardcode_shlibpath_var=no |
|
|
7025 | runpath_var='LD_RUN_PATH' |
|
|
7026 | |
|
|
7027 | if test "$GCC" = yes; then |
|
|
7028 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7029 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7030 | else |
|
|
7031 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7032 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7033 | fi |
|
|
7034 | ;; |
|
|
7035 | |
|
|
7036 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
7037 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
7038 | # link with -lc, and that would cause any symbols used from libc to |
|
|
7039 | # always be unresolved, which means just about no library would |
|
|
7040 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
7041 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
7042 | # as -z defs. |
|
|
7043 | no_undefined_flag='${wl}-z,text' |
|
|
7044 | allow_undefined_flag='${wl}-z,nodefs' |
|
|
7045 | archive_cmds_need_lc=no |
|
|
7046 | hardcode_shlibpath_var=no |
|
|
7047 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
7048 | hardcode_libdir_separator=':' |
|
|
7049 | link_all_deplibs=yes |
|
|
7050 | export_dynamic_flag_spec='${wl}-Bexport' |
|
|
7051 | runpath_var='LD_RUN_PATH' |
|
|
7052 | |
|
|
7053 | if test "$GCC" = yes; then |
|
|
7054 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7055 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7056 | else |
|
|
7057 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7058 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
7059 | fi |
|
|
7060 | ;; |
|
|
7061 | |
|
|
7062 | uts4*) |
|
|
7063 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
7064 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
7065 | hardcode_shlibpath_var=no |
|
|
7066 | ;; |
|
|
7067 | |
|
|
7068 | *) |
|
|
7069 | ld_shlibs=no |
|
|
7070 | ;; |
|
|
7071 | esac |
|
|
7072 | fi |
|
|
7073 | |
|
|
7074 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
7075 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
7076 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
7077 | |
|
|
7078 | # |
|
|
7079 | # Do we need to explicitly link libc? |
|
|
7080 | # |
|
|
7081 | case "x$archive_cmds_need_lc" in |
|
|
7082 | x|xyes) |
|
|
7083 | # Assume -lc should be added |
|
|
7084 | archive_cmds_need_lc=yes |
|
|
7085 | |
|
|
7086 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7087 | case $archive_cmds in |
|
|
7088 | *'~'*) |
|
|
7089 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7090 | ;; |
|
|
7091 | '$CC '*) |
|
|
7092 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7093 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7094 | # to ld, don't add -lc before -lgcc. |
|
|
7095 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7096 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7097 | $rm conftest* |
|
|
7098 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
7099 | |
|
|
7100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7101 | (eval $ac_compile) 2>&5 |
|
|
7102 | ac_status=$? |
|
|
7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7104 | (exit $ac_status); } 2>conftest.err; then |
|
|
7105 | soname=conftest |
|
|
7106 | lib=conftest |
|
|
7107 | libobjs=conftest.$ac_objext |
|
|
7108 | deplibs= |
|
|
7109 | wl=$lt_prog_compiler_wl |
|
|
7110 | pic_flag=$lt_prog_compiler_pic |
|
|
7111 | compiler_flags=-v |
|
|
7112 | linker_flags=-v |
|
|
7113 | verstring= |
|
|
7114 | output_objdir=. |
|
|
7115 | libname=conftest |
|
|
7116 | lt_save_allow_undefined_flag=$allow_undefined_flag |
|
|
7117 | allow_undefined_flag= |
|
|
7118 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7119 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7120 | ac_status=$? |
|
|
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7122 | (exit $ac_status); } |
|
|
7123 | then |
|
|
7124 | archive_cmds_need_lc=no |
|
|
7125 | else |
|
|
7126 | archive_cmds_need_lc=yes |
|
|
7127 | fi |
|
|
7128 | allow_undefined_flag=$lt_save_allow_undefined_flag |
|
|
7129 | else |
|
|
7130 | cat conftest.err 1>&5 |
|
|
7131 | fi |
|
|
7132 | $rm conftest* |
|
|
7133 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
|
|
7134 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 |
|
|
7135 | ;; |
|
|
7136 | esac |
|
|
7137 | fi |
|
|
7138 | ;; |
|
|
7139 | esac |
|
|
7140 | |
|
|
7141 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
7142 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
7143 | library_names_spec= |
|
|
7144 | libname_spec='lib$name' |
|
|
7145 | soname_spec= |
|
|
7146 | shrext_cmds=".so" |
|
|
7147 | postinstall_cmds= |
|
|
7148 | postuninstall_cmds= |
|
|
7149 | finish_cmds= |
|
|
7150 | finish_eval= |
|
|
7151 | shlibpath_var= |
|
|
7152 | shlibpath_overrides_runpath=unknown |
|
|
7153 | version_type=none |
|
|
7154 | dynamic_linker="$host_os ld.so" |
|
|
7155 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
7156 | if test "$GCC" = yes; then |
|
|
7157 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
7158 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
7159 | # if the path contains ";" then we assume it to be the separator |
|
|
7160 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
7161 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
7162 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
7163 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
7164 | else |
|
|
7165 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
7166 | fi |
|
|
7167 | else |
|
|
7168 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
7169 | fi |
|
|
7170 | need_lib_prefix=unknown |
|
|
7171 | hardcode_into_libs=no |
|
|
7172 | |
|
|
7173 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
7174 | # flags to be left without arguments |
|
|
7175 | need_version=unknown |
|
|
7176 | |
|
|
7177 | case $host_os in |
|
|
7178 | aix3*) |
|
|
7179 | version_type=linux |
|
|
7180 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
7181 | shlibpath_var=LIBPATH |
|
|
7182 | |
|
|
7183 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
7184 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7185 | ;; |
|
|
7186 | |
|
|
7187 | aix4* | aix5*) |
|
|
7188 | version_type=linux |
|
|
7189 | need_lib_prefix=no |
|
|
7190 | need_version=no |
|
|
7191 | hardcode_into_libs=yes |
|
|
7192 | if test "$host_cpu" = ia64; then |
|
|
7193 | # AIX 5 supports IA64 |
|
|
7194 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
7195 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7196 | else |
|
|
7197 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
7198 | # for dependence libraries. The import file would start with |
|
|
7199 | # the line `#! .'. This would cause the generated library to |
|
|
7200 | # depend on `.', always an invalid library. This was fixed in |
|
|
7201 | # development snapshots of GCC prior to 3.0. |
|
|
7202 | case $host_os in |
|
|
7203 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
7204 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
7205 | echo ' yes ' |
|
|
7206 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
7207 | : |
|
|
7208 | else |
|
|
7209 | can_build_shared=no |
|
|
7210 | fi |
|
|
7211 | ;; |
|
|
7212 | esac |
|
|
7213 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
7214 | # soname into executable. Probably we can add versioning support to |
|
|
7215 | # collect2, so additional links can be useful in future. |
|
|
7216 | if test "$aix_use_runtimelinking" = yes; then |
|
|
7217 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
7218 | # instead of lib<name>.a to let people know that these are not |
|
|
7219 | # typical AIX shared libraries. |
|
|
7220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7221 | else |
|
|
7222 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
7223 | # and later when we are not doing run time linking. |
|
|
7224 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
7225 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7226 | fi |
|
|
7227 | shlibpath_var=LIBPATH |
|
|
7228 | fi |
|
|
7229 | ;; |
|
|
7230 | |
|
|
7231 | amigaos*) |
|
|
7232 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
7233 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
7234 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
7235 | ;; |
|
|
7236 | |
|
|
7237 | beos*) |
|
|
7238 | library_names_spec='${libname}${shared_ext}' |
|
|
7239 | dynamic_linker="$host_os ld.so" |
|
|
7240 | shlibpath_var=LIBRARY_PATH |
|
|
7241 | ;; |
|
|
7242 | |
|
|
7243 | bsdi[45]*) |
|
|
7244 | version_type=linux |
|
|
7245 | need_version=no |
|
|
7246 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7247 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7248 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
7249 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7250 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
7251 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
7252 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
7253 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
7254 | # libtool to hard-code these into programs |
|
|
7255 | ;; |
|
|
7256 | |
|
|
7257 | cygwin* | mingw* | pw32*) |
|
|
7258 | version_type=windows |
|
|
7259 | shrext_cmds=".dll" |
|
|
7260 | need_version=no |
|
|
7261 | need_lib_prefix=no |
|
|
7262 | |
|
|
7263 | case $GCC,$host_os in |
|
|
7264 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
7265 | library_names_spec='$libname.dll.a' |
|
|
7266 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
7267 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
7268 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
7269 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
7270 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
7271 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
7272 | chmod a+x \$dldir/$dlname' |
|
|
7273 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
7274 | dlpath=$dir/\$dldll~ |
|
|
7275 | $rm \$dlpath' |
|
|
7276 | shlibpath_overrides_runpath=yes |
|
|
7277 | |
|
|
7278 | case $host_os in |
|
|
7279 | cygwin*) |
|
|
7280 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
7281 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7282 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
7283 | ;; |
|
|
7284 | mingw*) |
|
|
7285 | # MinGW DLLs use traditional 'lib' prefix |
|
|
7286 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7287 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
7288 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
7289 | # It is most probably a Windows format PATH printed by |
|
|
7290 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
7291 | # path with ; separators, and with drive letters. We can handle the |
|
|
7292 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
7293 | # especially as we might pass files found there to a mingw objdump, |
|
|
7294 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
7295 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
7296 | else |
|
|
7297 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
7298 | fi |
|
|
7299 | ;; |
|
|
7300 | pw32*) |
|
|
7301 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
7302 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
7303 | ;; |
|
|
7304 | esac |
|
|
7305 | ;; |
|
|
7306 | |
|
|
7307 | *) |
|
|
7308 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
7309 | ;; |
|
|
7310 | esac |
|
|
7311 | dynamic_linker='Win32 ld.exe' |
|
|
7312 | # FIXME: first we should search . and the directory the executable is in |
|
|
7313 | shlibpath_var=PATH |
|
|
7314 | ;; |
|
|
7315 | |
|
|
7316 | darwin* | rhapsody*) |
|
|
7317 | dynamic_linker="$host_os dyld" |
|
|
7318 | version_type=darwin |
|
|
7319 | need_lib_prefix=no |
|
|
7320 | need_version=no |
|
|
7321 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
7322 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
7323 | shlibpath_overrides_runpath=yes |
|
|
7324 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
7325 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
7326 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
7327 | if test "$GCC" = yes; then |
|
|
7328 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
7329 | else |
|
|
7330 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
7331 | fi |
|
|
7332 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
7333 | ;; |
|
|
7334 | |
|
|
7335 | dgux*) |
|
|
7336 | version_type=linux |
|
|
7337 | need_lib_prefix=no |
|
|
7338 | need_version=no |
|
|
7339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
7340 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7341 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7342 | ;; |
|
|
7343 | |
|
|
7344 | freebsd1*) |
|
|
7345 | dynamic_linker=no |
|
|
7346 | ;; |
|
|
7347 | |
|
|
7348 | kfreebsd*-gnu) |
|
|
7349 | version_type=linux |
|
|
7350 | need_lib_prefix=no |
|
|
7351 | need_version=no |
|
|
7352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7353 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7354 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7355 | shlibpath_overrides_runpath=no |
|
|
7356 | hardcode_into_libs=yes |
|
|
7357 | dynamic_linker='GNU ld.so' |
|
|
7358 | ;; |
|
|
7359 | |
|
|
7360 | freebsd* | dragonfly*) |
|
|
7361 | # DragonFly does not have aout. When/if they implement a new |
|
|
7362 | # versioning mechanism, adjust this. |
|
|
7363 | if test -x /usr/bin/objformat; then |
|
|
7364 | objformat=`/usr/bin/objformat` |
|
|
7365 | else |
|
|
7366 | case $host_os in |
|
|
7367 | freebsd[123]*) objformat=aout ;; |
|
|
7368 | *) objformat=elf ;; |
|
|
7369 | esac |
|
|
7370 | fi |
|
|
7371 | version_type=freebsd-$objformat |
|
|
7372 | case $version_type in |
|
|
7373 | freebsd-elf*) |
|
|
7374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7375 | need_version=no |
|
|
7376 | need_lib_prefix=no |
|
|
7377 | ;; |
|
|
7378 | freebsd-*) |
|
|
7379 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
7380 | need_version=yes |
|
|
7381 | ;; |
|
|
7382 | esac |
|
|
7383 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7384 | case $host_os in |
|
|
7385 | freebsd2*) |
|
|
7386 | shlibpath_overrides_runpath=yes |
|
|
7387 | ;; |
|
|
7388 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
7389 | shlibpath_overrides_runpath=yes |
|
|
7390 | hardcode_into_libs=yes |
|
|
7391 | ;; |
|
|
7392 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
7393 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
7394 | shlibpath_overrides_runpath=no |
|
|
7395 | hardcode_into_libs=yes |
|
|
7396 | ;; |
|
|
7397 | freebsd*) # from 4.6 on |
|
|
7398 | shlibpath_overrides_runpath=yes |
|
|
7399 | hardcode_into_libs=yes |
|
|
7400 | ;; |
|
|
7401 | esac |
|
|
7402 | ;; |
|
|
7403 | |
|
|
7404 | gnu*) |
|
|
7405 | version_type=linux |
|
|
7406 | need_lib_prefix=no |
|
|
7407 | need_version=no |
|
|
7408 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
7409 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7410 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7411 | hardcode_into_libs=yes |
|
|
7412 | ;; |
|
|
7413 | |
|
|
7414 | hpux9* | hpux10* | hpux11*) |
|
|
7415 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
7416 | # link against other versions. |
|
|
7417 | version_type=sunos |
|
|
7418 | need_lib_prefix=no |
|
|
7419 | need_version=no |
|
|
7420 | case $host_cpu in |
|
|
7421 | ia64*) |
|
|
7422 | shrext_cmds='.so' |
|
|
7423 | hardcode_into_libs=yes |
|
|
7424 | dynamic_linker="$host_os dld.so" |
|
|
7425 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7426 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
7427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7428 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7429 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
7430 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
7431 | else |
|
|
7432 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
7433 | fi |
|
|
7434 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
7435 | ;; |
|
|
7436 | hppa*64*) |
|
|
7437 | shrext_cmds='.sl' |
|
|
7438 | hardcode_into_libs=yes |
|
|
7439 | dynamic_linker="$host_os dld.sl" |
|
|
7440 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
7441 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
7442 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7443 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7444 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
7445 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
7446 | ;; |
|
|
7447 | *) |
|
|
7448 | shrext_cmds='.sl' |
|
|
7449 | dynamic_linker="$host_os dld.sl" |
|
|
7450 | shlibpath_var=SHLIB_PATH |
|
|
7451 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
7452 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7453 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7454 | ;; |
|
|
7455 | esac |
|
|
7456 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
7457 | postinstall_cmds='chmod 555 $lib' |
|
|
7458 | ;; |
|
|
7459 | |
|
|
7460 | interix3*) |
|
|
7461 | version_type=linux |
|
|
7462 | need_lib_prefix=no |
|
|
7463 | need_version=no |
|
|
7464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7465 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7466 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
7467 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7468 | shlibpath_overrides_runpath=no |
|
|
7469 | hardcode_into_libs=yes |
|
|
7470 | ;; |
|
|
7471 | |
|
|
7472 | irix5* | irix6* | nonstopux*) |
|
|
7473 | case $host_os in |
|
|
7474 | nonstopux*) version_type=nonstopux ;; |
|
|
7475 | *) |
|
|
7476 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
7477 | version_type=linux |
|
|
7478 | else |
|
|
7479 | version_type=irix |
|
|
7480 | fi ;; |
|
|
7481 | esac |
|
|
7482 | need_lib_prefix=no |
|
|
7483 | need_version=no |
|
|
7484 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7486 | case $host_os in |
|
|
7487 | irix5* | nonstopux*) |
|
|
7488 | libsuff= shlibsuff= |
|
|
7489 | ;; |
|
|
7490 | *) |
|
|
7491 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
7492 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
7493 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
7494 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
7495 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
7496 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
7497 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
7498 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
7499 | esac |
|
|
7500 | ;; |
|
|
7501 | esac |
|
|
7502 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
7503 | shlibpath_overrides_runpath=no |
|
|
7504 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
7505 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
7506 | hardcode_into_libs=yes |
|
|
7507 | ;; |
|
|
7508 | |
|
|
7509 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
7510 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
7511 | dynamic_linker=no |
|
|
7512 | ;; |
|
|
7513 | |
|
|
7514 | # This must be Linux ELF. |
|
|
7515 | linux*) |
|
|
7516 | version_type=linux |
|
|
7517 | need_lib_prefix=no |
|
|
7518 | need_version=no |
|
|
7519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7520 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7521 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
7522 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7523 | shlibpath_overrides_runpath=no |
|
|
7524 | # This implies no fast_install, which is unacceptable. |
|
|
7525 | # Some rework will be needed to allow for fast_install |
|
|
7526 | # before this can be enabled. |
|
|
7527 | hardcode_into_libs=yes |
|
|
7528 | |
|
|
7529 | # Append ld.so.conf contents to the search path |
|
|
7530 | if test -f /etc/ld.so.conf; then |
|
|
7531 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
|
7532 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
7533 | fi |
|
|
7534 | |
|
|
7535 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
7536 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
7537 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
7538 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
7539 | # people can always --disable-shared, the test was removed, and we |
|
|
7540 | # assume the GNU/Linux dynamic linker is in use. |
|
|
7541 | dynamic_linker='GNU/Linux ld.so' |
|
|
7542 | ;; |
|
|
7543 | |
|
|
7544 | netbsdelf*-gnu) |
|
|
7545 | version_type=linux |
|
|
7546 | need_lib_prefix=no |
|
|
7547 | need_version=no |
|
|
7548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7549 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7550 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7551 | shlibpath_overrides_runpath=no |
|
|
7552 | hardcode_into_libs=yes |
|
|
7553 | dynamic_linker='NetBSD ld.elf_so' |
|
|
7554 | ;; |
|
|
7555 | |
|
|
7556 | knetbsd*-gnu) |
|
|
7557 | version_type=linux |
|
|
7558 | need_lib_prefix=no |
|
|
7559 | need_version=no |
|
|
7560 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7561 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7562 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7563 | shlibpath_overrides_runpath=no |
|
|
7564 | hardcode_into_libs=yes |
|
|
7565 | dynamic_linker='GNU ld.so' |
|
|
7566 | ;; |
|
|
7567 | |
|
|
7568 | netbsd*) |
|
|
7569 | version_type=sunos |
|
|
7570 | need_lib_prefix=no |
|
|
7571 | need_version=no |
|
|
7572 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
7573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7574 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
7575 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
7576 | else |
|
|
7577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
7578 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7579 | dynamic_linker='NetBSD ld.elf_so' |
|
|
7580 | fi |
|
|
7581 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7582 | shlibpath_overrides_runpath=yes |
|
|
7583 | hardcode_into_libs=yes |
|
|
7584 | ;; |
|
|
7585 | |
|
|
7586 | newsos6) |
|
|
7587 | version_type=linux |
|
|
7588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7589 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7590 | shlibpath_overrides_runpath=yes |
|
|
7591 | ;; |
|
|
7592 | |
|
|
7593 | nto-qnx*) |
|
|
7594 | version_type=linux |
|
|
7595 | need_lib_prefix=no |
|
|
7596 | need_version=no |
|
|
7597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7598 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7599 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7600 | shlibpath_overrides_runpath=yes |
|
|
7601 | ;; |
|
|
7602 | |
|
|
7603 | openbsd*) |
|
|
7604 | version_type=sunos |
|
|
7605 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
7606 | need_lib_prefix=no |
|
|
7607 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
7608 | case $host_os in |
|
|
7609 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
7610 | *) need_version=no ;; |
|
|
7611 | esac |
|
|
7612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7613 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
7614 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7615 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
7616 | case $host_os in |
|
|
7617 | openbsd2.[89] | openbsd2.[89].*) |
|
|
7618 | shlibpath_overrides_runpath=no |
|
|
7619 | ;; |
|
|
7620 | *) |
|
|
7621 | shlibpath_overrides_runpath=yes |
|
|
7622 | ;; |
|
|
7623 | esac |
|
|
7624 | else |
|
|
7625 | shlibpath_overrides_runpath=yes |
|
|
7626 | fi |
|
|
7627 | ;; |
|
|
7628 | |
|
|
7629 | os2*) |
|
|
7630 | libname_spec='$name' |
|
|
7631 | shrext_cmds=".dll" |
|
|
7632 | need_lib_prefix=no |
|
|
7633 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
7634 | dynamic_linker='OS/2 ld.exe' |
|
|
7635 | shlibpath_var=LIBPATH |
|
|
7636 | ;; |
|
|
7637 | |
|
|
7638 | osf3* | osf4* | osf5*) |
|
|
7639 | version_type=osf |
|
|
7640 | need_lib_prefix=no |
|
|
7641 | need_version=no |
|
|
7642 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7644 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7645 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
7646 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
7647 | ;; |
|
|
7648 | |
|
|
7649 | solaris*) |
|
|
7650 | version_type=linux |
|
|
7651 | need_lib_prefix=no |
|
|
7652 | need_version=no |
|
|
7653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7654 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7655 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7656 | shlibpath_overrides_runpath=yes |
|
|
7657 | hardcode_into_libs=yes |
|
|
7658 | # ldd complains unless libraries are executable |
|
|
7659 | postinstall_cmds='chmod +x $lib' |
|
|
7660 | ;; |
|
|
7661 | |
|
|
7662 | sunos4*) |
|
|
7663 | version_type=sunos |
|
|
7664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
7665 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
7666 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7667 | shlibpath_overrides_runpath=yes |
|
|
7668 | if test "$with_gnu_ld" = yes; then |
|
|
7669 | need_lib_prefix=no |
|
|
7670 | fi |
|
|
7671 | need_version=yes |
|
|
7672 | ;; |
|
|
7673 | |
|
|
7674 | sysv4 | sysv4.3*) |
|
|
7675 | version_type=linux |
|
|
7676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7677 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7678 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7679 | case $host_vendor in |
|
|
7680 | sni) |
|
|
7681 | shlibpath_overrides_runpath=no |
|
|
7682 | need_lib_prefix=no |
|
|
7683 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
7684 | runpath_var=LD_RUN_PATH |
|
|
7685 | ;; |
|
|
7686 | siemens) |
|
|
7687 | need_lib_prefix=no |
|
|
7688 | ;; |
|
|
7689 | motorola) |
|
|
7690 | need_lib_prefix=no |
|
|
7691 | need_version=no |
|
|
7692 | shlibpath_overrides_runpath=no |
|
|
7693 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
7694 | ;; |
|
|
7695 | esac |
|
|
7696 | ;; |
|
|
7697 | |
|
|
7698 | sysv4*MP*) |
|
|
7699 | if test -d /usr/nec ;then |
|
|
7700 | version_type=linux |
|
|
7701 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
7702 | soname_spec='$libname${shared_ext}.$major' |
|
|
7703 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7704 | fi |
|
|
7705 | ;; |
|
|
7706 | |
|
|
7707 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
7708 | version_type=freebsd-elf |
|
|
7709 | need_lib_prefix=no |
|
|
7710 | need_version=no |
|
|
7711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
7712 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7713 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7714 | hardcode_into_libs=yes |
|
|
7715 | if test "$with_gnu_ld" = yes; then |
|
|
7716 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
7717 | shlibpath_overrides_runpath=no |
|
|
7718 | else |
|
|
7719 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
7720 | shlibpath_overrides_runpath=yes |
|
|
7721 | case $host_os in |
|
|
7722 | sco3.2v5*) |
|
|
7723 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
7724 | ;; |
|
|
7725 | esac |
|
|
7726 | fi |
|
|
7727 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
7728 | ;; |
|
|
7729 | |
|
|
7730 | uts4*) |
|
|
7731 | version_type=linux |
|
|
7732 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
7733 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
7734 | shlibpath_var=LD_LIBRARY_PATH |
|
|
7735 | ;; |
|
|
7736 | |
|
|
7737 | *) |
|
|
7738 | dynamic_linker=no |
|
|
7739 | ;; |
|
|
7740 | esac |
|
|
7741 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
7742 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
7743 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
7744 | |
|
|
7745 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
7746 | if test "$GCC" = yes; then |
|
|
7747 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
7748 | fi |
|
|
7749 | |
|
|
7750 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
7751 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
7752 | hardcode_action= |
|
|
7753 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
7754 | test -n "$runpath_var" || \ |
|
|
7755 | test "X$hardcode_automatic" = "Xyes" ; then |
|
|
7756 | |
|
|
7757 | # We can hardcode non-existant directories. |
|
|
7758 | if test "$hardcode_direct" != no && |
|
|
7759 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
7760 | # have to relink, otherwise we might link with an installed library |
|
|
7761 | # when we should be linking with a yet-to-be-installed one |
|
|
7762 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
|
7763 | test "$hardcode_minus_L" != no; then |
|
|
7764 | # Linking always hardcodes the temporary library directory. |
|
|
7765 | hardcode_action=relink |
|
|
7766 | else |
|
|
7767 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
7768 | hardcode_action=immediate |
|
|
7769 | fi |
|
|
7770 | else |
|
|
7771 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
7772 | # directories. |
|
|
7773 | hardcode_action=unsupported |
|
|
7774 | fi |
|
|
7775 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
7776 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
7777 | |
|
|
7778 | if test "$hardcode_action" = relink; then |
|
|
7779 | # Fast installation is not supported |
|
|
7780 | enable_fast_install=no |
|
|
7781 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
7782 | test "$enable_shared" = no; then |
|
|
7783 | # Fast installation is not necessary |
|
|
7784 | enable_fast_install=needless |
|
|
7785 | fi |
|
|
7786 | |
|
|
7787 | striplib= |
|
|
7788 | old_striplib= |
|
|
7789 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
7790 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
7791 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
7792 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
7793 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
7794 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
7795 | echo "${ECHO_T}yes" >&6 |
|
|
7796 | else |
|
|
7797 | # FIXME - insert some real tests, host_os isn't really good enough |
|
|
7798 | case $host_os in |
|
|
7799 | darwin*) |
|
|
7800 | if test -n "$STRIP" ; then |
|
|
7801 | striplib="$STRIP -x" |
|
|
7802 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
7803 | echo "${ECHO_T}yes" >&6 |
|
|
7804 | else |
|
|
7805 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
7806 | echo "${ECHO_T}no" >&6 |
|
|
7807 | fi |
|
|
7808 | ;; |
|
|
7809 | *) |
|
|
7810 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
7811 | echo "${ECHO_T}no" >&6 |
|
|
7812 | ;; |
|
|
7813 | esac |
|
|
7814 | fi |
|
|
7815 | |
|
|
7816 | if test "x$enable_dlopen" != xyes; then |
|
|
7817 | enable_dlopen=unknown |
|
|
7818 | enable_dlopen_self=unknown |
|
|
7819 | enable_dlopen_self_static=unknown |
|
|
7820 | else |
|
|
7821 | lt_cv_dlopen=no |
|
|
7822 | lt_cv_dlopen_libs= |
|
|
7823 | |
|
|
7824 | case $host_os in |
|
|
7825 | beos*) |
|
|
7826 | lt_cv_dlopen="load_add_on" |
|
|
7827 | lt_cv_dlopen_libs= |
|
|
7828 | lt_cv_dlopen_self=yes |
|
|
7829 | ;; |
|
|
7830 | |
|
|
7831 | mingw* | pw32*) |
|
|
7832 | lt_cv_dlopen="LoadLibrary" |
|
|
7833 | lt_cv_dlopen_libs= |
|
|
7834 | ;; |
|
|
7835 | |
|
|
7836 | cygwin*) |
|
|
7837 | lt_cv_dlopen="dlopen" |
|
|
7838 | lt_cv_dlopen_libs= |
|
|
7839 | ;; |
|
|
7840 | |
|
|
7841 | darwin*) |
|
|
7842 | # if libdl is installed we need to link against it |
|
|
7843 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
7844 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
7845 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
7846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7847 | else |
|
|
7848 | ac_check_lib_save_LIBS=$LIBS |
|
|
7849 | LIBS="-ldl $LIBS" |
|
|
7850 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7851 | /* confdefs.h. */ |
|
|
7852 | _ACEOF |
|
|
7853 | cat confdefs.h >>conftest.$ac_ext |
|
|
7854 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7855 | /* end confdefs.h. */ |
|
|
7856 | |
|
|
7857 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7858 | #ifdef __cplusplus |
|
|
7859 | extern "C" |
|
|
7860 | #endif |
|
|
7861 | /* We use char because int might match the return type of a gcc2 |
|
|
7862 | builtin and then its argument prototype would still apply. */ |
|
|
7863 | char dlopen (); |
|
|
7864 | int |
|
|
7865 | main () |
|
|
7866 | { |
|
|
7867 | dlopen (); |
|
|
7868 | ; |
|
|
7869 | return 0; |
|
|
7870 | } |
|
|
7871 | _ACEOF |
|
|
7872 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7874 | (eval $ac_link) 2>conftest.er1 |
|
|
7875 | ac_status=$? |
|
|
7876 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7877 | rm -f conftest.er1 |
|
|
7878 | cat conftest.err >&5 |
|
|
7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7880 | (exit $ac_status); } && |
|
|
7881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7883 | (eval $ac_try) 2>&5 |
|
|
7884 | ac_status=$? |
|
|
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7886 | (exit $ac_status); }; } && |
|
|
7887 | { ac_try='test -s conftest$ac_exeext' |
|
|
7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7889 | (eval $ac_try) 2>&5 |
|
|
7890 | ac_status=$? |
|
|
7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7892 | (exit $ac_status); }; }; then |
|
|
7893 | ac_cv_lib_dl_dlopen=yes |
|
|
7894 | else |
|
|
7895 | echo "$as_me: failed program was:" >&5 |
|
|
7896 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7897 | |
|
|
7898 | ac_cv_lib_dl_dlopen=no |
|
|
7899 | fi |
|
|
7900 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7901 | conftest$ac_exeext conftest.$ac_ext |
|
|
7902 | LIBS=$ac_check_lib_save_LIBS |
|
|
7903 | fi |
|
|
7904 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7905 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7906 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7907 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7908 | else |
|
|
7909 | |
|
|
7910 | lt_cv_dlopen="dyld" |
|
|
7911 | lt_cv_dlopen_libs= |
|
|
7912 | lt_cv_dlopen_self=yes |
|
|
7913 | |
|
|
7914 | fi |
|
|
7915 | |
|
|
7916 | ;; |
|
|
7917 | |
|
|
7918 | *) |
|
|
7919 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
|
|
7920 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
2304 | if test "${ac_cv_header_stdc+set}" = set; then |
7921 | if test "${ac_cv_func_shl_load+set}" = set; then |
2305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2306 | else |
7923 | else |
2307 | cat >conftest.$ac_ext <<_ACEOF |
7924 | cat >conftest.$ac_ext <<_ACEOF |
2308 | /* confdefs.h. */ |
7925 | /* confdefs.h. */ |
2309 | _ACEOF |
7926 | _ACEOF |
2310 | cat confdefs.h >>conftest.$ac_ext |
7927 | cat confdefs.h >>conftest.$ac_ext |
2311 | cat >>conftest.$ac_ext <<_ACEOF |
7928 | cat >>conftest.$ac_ext <<_ACEOF |
2312 | /* end confdefs.h. */ |
7929 | /* end confdefs.h. */ |
2313 | #include <stdlib.h> |
7930 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
2314 | #include <stdarg.h> |
7931 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
2315 | #include <string.h> |
7932 | #define shl_load innocuous_shl_load |
|
|
7933 | |
|
|
7934 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7935 | which can conflict with char shl_load (); below. |
|
|
7936 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7937 | <limits.h> exists even on freestanding compilers. */ |
|
|
7938 | |
|
|
7939 | #ifdef __STDC__ |
2316 | #include <float.h> |
7940 | # include <limits.h> |
|
|
7941 | #else |
|
|
7942 | # include <assert.h> |
|
|
7943 | #endif |
|
|
7944 | |
|
|
7945 | #undef shl_load |
|
|
7946 | |
|
|
7947 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7948 | #ifdef __cplusplus |
|
|
7949 | extern "C" |
|
|
7950 | { |
|
|
7951 | #endif |
|
|
7952 | /* We use char because int might match the return type of a gcc2 |
|
|
7953 | builtin and then its argument prototype would still apply. */ |
|
|
7954 | char shl_load (); |
|
|
7955 | /* The GNU C library defines this for functions which it implements |
|
|
7956 | to always fail with ENOSYS. Some functions are actually named |
|
|
7957 | something starting with __ and the normal name is an alias. */ |
|
|
7958 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7959 | choke me |
|
|
7960 | #else |
|
|
7961 | char (*f) () = shl_load; |
|
|
7962 | #endif |
|
|
7963 | #ifdef __cplusplus |
|
|
7964 | } |
|
|
7965 | #endif |
2317 | |
7966 | |
2318 | int |
7967 | int |
2319 | main () |
7968 | main () |
2320 | { |
7969 | { |
2321 | |
7970 | return f != shl_load; |
2322 | ; |
7971 | ; |
2323 | return 0; |
7972 | return 0; |
2324 | } |
7973 | } |
2325 | _ACEOF |
7974 | _ACEOF |
2326 | rm -f conftest.$ac_objext |
7975 | rm -f conftest.$ac_objext conftest$ac_exeext |
2327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
7976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2328 | (eval $ac_compile) 2>conftest.er1 |
7977 | (eval $ac_link) 2>conftest.er1 |
|
|
7978 | ac_status=$? |
|
|
7979 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7980 | rm -f conftest.er1 |
|
|
7981 | cat conftest.err >&5 |
|
|
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7983 | (exit $ac_status); } && |
|
|
7984 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
7985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7986 | (eval $ac_try) 2>&5 |
|
|
7987 | ac_status=$? |
|
|
7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7989 | (exit $ac_status); }; } && |
|
|
7990 | { ac_try='test -s conftest$ac_exeext' |
|
|
7991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7992 | (eval $ac_try) 2>&5 |
|
|
7993 | ac_status=$? |
|
|
7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7995 | (exit $ac_status); }; }; then |
|
|
7996 | ac_cv_func_shl_load=yes |
|
|
7997 | else |
|
|
7998 | echo "$as_me: failed program was:" >&5 |
|
|
7999 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8000 | |
|
|
8001 | ac_cv_func_shl_load=no |
|
|
8002 | fi |
|
|
8003 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8004 | conftest$ac_exeext conftest.$ac_ext |
|
|
8005 | fi |
|
|
8006 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
8007 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
8008 | if test $ac_cv_func_shl_load = yes; then |
|
|
8009 | lt_cv_dlopen="shl_load" |
|
|
8010 | else |
|
|
8011 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
|
|
8012 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
|
|
8013 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
8014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8015 | else |
|
|
8016 | ac_check_lib_save_LIBS=$LIBS |
|
|
8017 | LIBS="-ldld $LIBS" |
|
|
8018 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8019 | /* confdefs.h. */ |
|
|
8020 | _ACEOF |
|
|
8021 | cat confdefs.h >>conftest.$ac_ext |
|
|
8022 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8023 | /* end confdefs.h. */ |
|
|
8024 | |
|
|
8025 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8026 | #ifdef __cplusplus |
|
|
8027 | extern "C" |
|
|
8028 | #endif |
|
|
8029 | /* We use char because int might match the return type of a gcc2 |
|
|
8030 | builtin and then its argument prototype would still apply. */ |
|
|
8031 | char shl_load (); |
|
|
8032 | int |
|
|
8033 | main () |
|
|
8034 | { |
|
|
8035 | shl_load (); |
|
|
8036 | ; |
|
|
8037 | return 0; |
|
|
8038 | } |
|
|
8039 | _ACEOF |
|
|
8040 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8042 | (eval $ac_link) 2>conftest.er1 |
|
|
8043 | ac_status=$? |
|
|
8044 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8045 | rm -f conftest.er1 |
|
|
8046 | cat conftest.err >&5 |
|
|
8047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8048 | (exit $ac_status); } && |
|
|
8049 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8051 | (eval $ac_try) 2>&5 |
|
|
8052 | ac_status=$? |
|
|
8053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8054 | (exit $ac_status); }; } && |
|
|
8055 | { ac_try='test -s conftest$ac_exeext' |
|
|
8056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8057 | (eval $ac_try) 2>&5 |
|
|
8058 | ac_status=$? |
|
|
8059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8060 | (exit $ac_status); }; }; then |
|
|
8061 | ac_cv_lib_dld_shl_load=yes |
|
|
8062 | else |
|
|
8063 | echo "$as_me: failed program was:" >&5 |
|
|
8064 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8065 | |
|
|
8066 | ac_cv_lib_dld_shl_load=no |
|
|
8067 | fi |
|
|
8068 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8069 | conftest$ac_exeext conftest.$ac_ext |
|
|
8070 | LIBS=$ac_check_lib_save_LIBS |
|
|
8071 | fi |
|
|
8072 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
8073 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
8074 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
8075 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
|
|
8076 | else |
|
|
8077 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
8078 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
8079 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
8080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8081 | else |
|
|
8082 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8083 | /* confdefs.h. */ |
|
|
8084 | _ACEOF |
|
|
8085 | cat confdefs.h >>conftest.$ac_ext |
|
|
8086 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8087 | /* end confdefs.h. */ |
|
|
8088 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
|
|
8089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
8090 | #define dlopen innocuous_dlopen |
|
|
8091 | |
|
|
8092 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
8093 | which can conflict with char dlopen (); below. |
|
|
8094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
8095 | <limits.h> exists even on freestanding compilers. */ |
|
|
8096 | |
|
|
8097 | #ifdef __STDC__ |
|
|
8098 | # include <limits.h> |
|
|
8099 | #else |
|
|
8100 | # include <assert.h> |
|
|
8101 | #endif |
|
|
8102 | |
|
|
8103 | #undef dlopen |
|
|
8104 | |
|
|
8105 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8106 | #ifdef __cplusplus |
|
|
8107 | extern "C" |
|
|
8108 | { |
|
|
8109 | #endif |
|
|
8110 | /* We use char because int might match the return type of a gcc2 |
|
|
8111 | builtin and then its argument prototype would still apply. */ |
|
|
8112 | char dlopen (); |
|
|
8113 | /* The GNU C library defines this for functions which it implements |
|
|
8114 | to always fail with ENOSYS. Some functions are actually named |
|
|
8115 | something starting with __ and the normal name is an alias. */ |
|
|
8116 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
|
|
8117 | choke me |
|
|
8118 | #else |
|
|
8119 | char (*f) () = dlopen; |
|
|
8120 | #endif |
|
|
8121 | #ifdef __cplusplus |
|
|
8122 | } |
|
|
8123 | #endif |
|
|
8124 | |
|
|
8125 | int |
|
|
8126 | main () |
|
|
8127 | { |
|
|
8128 | return f != dlopen; |
|
|
8129 | ; |
|
|
8130 | return 0; |
|
|
8131 | } |
|
|
8132 | _ACEOF |
|
|
8133 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8135 | (eval $ac_link) 2>conftest.er1 |
|
|
8136 | ac_status=$? |
|
|
8137 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8138 | rm -f conftest.er1 |
|
|
8139 | cat conftest.err >&5 |
|
|
8140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8141 | (exit $ac_status); } && |
|
|
8142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8144 | (eval $ac_try) 2>&5 |
|
|
8145 | ac_status=$? |
|
|
8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8147 | (exit $ac_status); }; } && |
|
|
8148 | { ac_try='test -s conftest$ac_exeext' |
|
|
8149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8150 | (eval $ac_try) 2>&5 |
|
|
8151 | ac_status=$? |
|
|
8152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8153 | (exit $ac_status); }; }; then |
|
|
8154 | ac_cv_func_dlopen=yes |
|
|
8155 | else |
|
|
8156 | echo "$as_me: failed program was:" >&5 |
|
|
8157 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8158 | |
|
|
8159 | ac_cv_func_dlopen=no |
|
|
8160 | fi |
|
|
8161 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8162 | conftest$ac_exeext conftest.$ac_ext |
|
|
8163 | fi |
|
|
8164 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
|
|
8165 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
|
|
8166 | if test $ac_cv_func_dlopen = yes; then |
|
|
8167 | lt_cv_dlopen="dlopen" |
|
|
8168 | else |
|
|
8169 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
8170 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
8171 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
8172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8173 | else |
|
|
8174 | ac_check_lib_save_LIBS=$LIBS |
|
|
8175 | LIBS="-ldl $LIBS" |
|
|
8176 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8177 | /* confdefs.h. */ |
|
|
8178 | _ACEOF |
|
|
8179 | cat confdefs.h >>conftest.$ac_ext |
|
|
8180 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8181 | /* end confdefs.h. */ |
|
|
8182 | |
|
|
8183 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8184 | #ifdef __cplusplus |
|
|
8185 | extern "C" |
|
|
8186 | #endif |
|
|
8187 | /* We use char because int might match the return type of a gcc2 |
|
|
8188 | builtin and then its argument prototype would still apply. */ |
|
|
8189 | char dlopen (); |
|
|
8190 | int |
|
|
8191 | main () |
|
|
8192 | { |
|
|
8193 | dlopen (); |
|
|
8194 | ; |
|
|
8195 | return 0; |
|
|
8196 | } |
|
|
8197 | _ACEOF |
|
|
8198 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8200 | (eval $ac_link) 2>conftest.er1 |
|
|
8201 | ac_status=$? |
|
|
8202 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8203 | rm -f conftest.er1 |
|
|
8204 | cat conftest.err >&5 |
|
|
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8206 | (exit $ac_status); } && |
|
|
8207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8209 | (eval $ac_try) 2>&5 |
|
|
8210 | ac_status=$? |
|
|
8211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8212 | (exit $ac_status); }; } && |
|
|
8213 | { ac_try='test -s conftest$ac_exeext' |
|
|
8214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8215 | (eval $ac_try) 2>&5 |
|
|
8216 | ac_status=$? |
|
|
8217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8218 | (exit $ac_status); }; }; then |
|
|
8219 | ac_cv_lib_dl_dlopen=yes |
|
|
8220 | else |
|
|
8221 | echo "$as_me: failed program was:" >&5 |
|
|
8222 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8223 | |
|
|
8224 | ac_cv_lib_dl_dlopen=no |
|
|
8225 | fi |
|
|
8226 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8227 | conftest$ac_exeext conftest.$ac_ext |
|
|
8228 | LIBS=$ac_check_lib_save_LIBS |
|
|
8229 | fi |
|
|
8230 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
8231 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
8232 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
8233 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
8234 | else |
|
|
8235 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
8236 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
8237 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
8238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8239 | else |
|
|
8240 | ac_check_lib_save_LIBS=$LIBS |
|
|
8241 | LIBS="-lsvld $LIBS" |
|
|
8242 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8243 | /* confdefs.h. */ |
|
|
8244 | _ACEOF |
|
|
8245 | cat confdefs.h >>conftest.$ac_ext |
|
|
8246 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8247 | /* end confdefs.h. */ |
|
|
8248 | |
|
|
8249 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8250 | #ifdef __cplusplus |
|
|
8251 | extern "C" |
|
|
8252 | #endif |
|
|
8253 | /* We use char because int might match the return type of a gcc2 |
|
|
8254 | builtin and then its argument prototype would still apply. */ |
|
|
8255 | char dlopen (); |
|
|
8256 | int |
|
|
8257 | main () |
|
|
8258 | { |
|
|
8259 | dlopen (); |
|
|
8260 | ; |
|
|
8261 | return 0; |
|
|
8262 | } |
|
|
8263 | _ACEOF |
|
|
8264 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8266 | (eval $ac_link) 2>conftest.er1 |
|
|
8267 | ac_status=$? |
|
|
8268 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8269 | rm -f conftest.er1 |
|
|
8270 | cat conftest.err >&5 |
|
|
8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8272 | (exit $ac_status); } && |
|
|
8273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8275 | (eval $ac_try) 2>&5 |
|
|
8276 | ac_status=$? |
|
|
8277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8278 | (exit $ac_status); }; } && |
|
|
8279 | { ac_try='test -s conftest$ac_exeext' |
|
|
8280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8281 | (eval $ac_try) 2>&5 |
|
|
8282 | ac_status=$? |
|
|
8283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8284 | (exit $ac_status); }; }; then |
|
|
8285 | ac_cv_lib_svld_dlopen=yes |
|
|
8286 | else |
|
|
8287 | echo "$as_me: failed program was:" >&5 |
|
|
8288 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8289 | |
|
|
8290 | ac_cv_lib_svld_dlopen=no |
|
|
8291 | fi |
|
|
8292 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8293 | conftest$ac_exeext conftest.$ac_ext |
|
|
8294 | LIBS=$ac_check_lib_save_LIBS |
|
|
8295 | fi |
|
|
8296 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
|
|
8297 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
|
|
8298 | if test $ac_cv_lib_svld_dlopen = yes; then |
|
|
8299 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
|
8300 | else |
|
|
8301 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
|
|
8302 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 |
|
|
8303 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
|
|
8304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8305 | else |
|
|
8306 | ac_check_lib_save_LIBS=$LIBS |
|
|
8307 | LIBS="-ldld $LIBS" |
|
|
8308 | cat >conftest.$ac_ext <<_ACEOF |
|
|
8309 | /* confdefs.h. */ |
|
|
8310 | _ACEOF |
|
|
8311 | cat confdefs.h >>conftest.$ac_ext |
|
|
8312 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
8313 | /* end confdefs.h. */ |
|
|
8314 | |
|
|
8315 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
8316 | #ifdef __cplusplus |
|
|
8317 | extern "C" |
|
|
8318 | #endif |
|
|
8319 | /* We use char because int might match the return type of a gcc2 |
|
|
8320 | builtin and then its argument prototype would still apply. */ |
|
|
8321 | char dld_link (); |
|
|
8322 | int |
|
|
8323 | main () |
|
|
8324 | { |
|
|
8325 | dld_link (); |
|
|
8326 | ; |
|
|
8327 | return 0; |
|
|
8328 | } |
|
|
8329 | _ACEOF |
|
|
8330 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
8331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8332 | (eval $ac_link) 2>conftest.er1 |
|
|
8333 | ac_status=$? |
|
|
8334 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
8335 | rm -f conftest.er1 |
|
|
8336 | cat conftest.err >&5 |
|
|
8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8338 | (exit $ac_status); } && |
|
|
8339 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8341 | (eval $ac_try) 2>&5 |
|
|
8342 | ac_status=$? |
|
|
8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8344 | (exit $ac_status); }; } && |
|
|
8345 | { ac_try='test -s conftest$ac_exeext' |
|
|
8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
8347 | (eval $ac_try) 2>&5 |
|
|
8348 | ac_status=$? |
|
|
8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8350 | (exit $ac_status); }; }; then |
|
|
8351 | ac_cv_lib_dld_dld_link=yes |
|
|
8352 | else |
|
|
8353 | echo "$as_me: failed program was:" >&5 |
|
|
8354 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
8355 | |
|
|
8356 | ac_cv_lib_dld_dld_link=no |
|
|
8357 | fi |
|
|
8358 | rm -f conftest.err conftest.$ac_objext \ |
|
|
8359 | conftest$ac_exeext conftest.$ac_ext |
|
|
8360 | LIBS=$ac_check_lib_save_LIBS |
|
|
8361 | fi |
|
|
8362 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
|
|
8363 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 |
|
|
8364 | if test $ac_cv_lib_dld_dld_link = yes; then |
|
|
8365 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
8366 | fi |
|
|
8367 | |
|
|
8368 | |
|
|
8369 | fi |
|
|
8370 | |
|
|
8371 | |
|
|
8372 | fi |
|
|
8373 | |
|
|
8374 | |
|
|
8375 | fi |
|
|
8376 | |
|
|
8377 | |
|
|
8378 | fi |
|
|
8379 | |
|
|
8380 | |
|
|
8381 | fi |
|
|
8382 | |
|
|
8383 | ;; |
|
|
8384 | esac |
|
|
8385 | |
|
|
8386 | if test "x$lt_cv_dlopen" != xno; then |
|
|
8387 | enable_dlopen=yes |
|
|
8388 | else |
|
|
8389 | enable_dlopen=no |
|
|
8390 | fi |
|
|
8391 | |
|
|
8392 | case $lt_cv_dlopen in |
|
|
8393 | dlopen) |
|
|
8394 | save_CPPFLAGS="$CPPFLAGS" |
|
|
8395 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
8396 | |
|
|
8397 | save_LDFLAGS="$LDFLAGS" |
|
|
8398 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
8399 | |
|
|
8400 | save_LIBS="$LIBS" |
|
|
8401 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
8402 | |
|
|
8403 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
8404 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
8405 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8407 | else |
|
|
8408 | if test "$cross_compiling" = yes; then : |
|
|
8409 | lt_cv_dlopen_self=cross |
|
|
8410 | else |
|
|
8411 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
8412 | lt_status=$lt_dlunknown |
|
|
8413 | cat > conftest.$ac_ext <<EOF |
|
|
8414 | #line 8414 "configure" |
|
|
8415 | #include "confdefs.h" |
|
|
8416 | |
|
|
8417 | #if HAVE_DLFCN_H |
|
|
8418 | #include <dlfcn.h> |
|
|
8419 | #endif |
|
|
8420 | |
|
|
8421 | #include <stdio.h> |
|
|
8422 | |
|
|
8423 | #ifdef RTLD_GLOBAL |
|
|
8424 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
8425 | #else |
|
|
8426 | # ifdef DL_GLOBAL |
|
|
8427 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
8428 | # else |
|
|
8429 | # define LT_DLGLOBAL 0 |
|
|
8430 | # endif |
|
|
8431 | #endif |
|
|
8432 | |
|
|
8433 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
8434 | find out it does not work in some platform. */ |
|
|
8435 | #ifndef LT_DLLAZY_OR_NOW |
|
|
8436 | # ifdef RTLD_LAZY |
|
|
8437 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
8438 | # else |
|
|
8439 | # ifdef DL_LAZY |
|
|
8440 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
8441 | # else |
|
|
8442 | # ifdef RTLD_NOW |
|
|
8443 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
8444 | # else |
|
|
8445 | # ifdef DL_NOW |
|
|
8446 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
8447 | # else |
|
|
8448 | # define LT_DLLAZY_OR_NOW 0 |
|
|
8449 | # endif |
|
|
8450 | # endif |
|
|
8451 | # endif |
|
|
8452 | # endif |
|
|
8453 | #endif |
|
|
8454 | |
|
|
8455 | #ifdef __cplusplus |
|
|
8456 | extern "C" void exit (int); |
|
|
8457 | #endif |
|
|
8458 | |
|
|
8459 | void fnord() { int i=42;} |
|
|
8460 | int main () |
|
|
8461 | { |
|
|
8462 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
8463 | int status = $lt_dlunknown; |
|
|
8464 | |
|
|
8465 | if (self) |
|
|
8466 | { |
|
|
8467 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
8468 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
8469 | /* dlclose (self); */ |
|
|
8470 | } |
|
|
8471 | else |
|
|
8472 | puts (dlerror ()); |
|
|
8473 | |
|
|
8474 | exit (status); |
|
|
8475 | } |
|
|
8476 | EOF |
|
|
8477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8478 | (eval $ac_link) 2>&5 |
|
|
8479 | ac_status=$? |
|
|
8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8481 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
8482 | (./conftest; exit; ) >&5 2>/dev/null |
|
|
8483 | lt_status=$? |
|
|
8484 | case x$lt_status in |
|
|
8485 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
8486 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
8487 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
|
8488 | esac |
|
|
8489 | else : |
|
|
8490 | # compilation failed |
|
|
8491 | lt_cv_dlopen_self=no |
|
|
8492 | fi |
|
|
8493 | fi |
|
|
8494 | rm -fr conftest* |
|
|
8495 | |
|
|
8496 | |
|
|
8497 | fi |
|
|
8498 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
8499 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
8500 | |
|
|
8501 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
8502 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
|
8503 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
8504 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
8505 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
8506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
8507 | else |
|
|
8508 | if test "$cross_compiling" = yes; then : |
|
|
8509 | lt_cv_dlopen_self_static=cross |
|
|
8510 | else |
|
|
8511 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
8512 | lt_status=$lt_dlunknown |
|
|
8513 | cat > conftest.$ac_ext <<EOF |
|
|
8514 | #line 8514 "configure" |
|
|
8515 | #include "confdefs.h" |
|
|
8516 | |
|
|
8517 | #if HAVE_DLFCN_H |
|
|
8518 | #include <dlfcn.h> |
|
|
8519 | #endif |
|
|
8520 | |
|
|
8521 | #include <stdio.h> |
|
|
8522 | |
|
|
8523 | #ifdef RTLD_GLOBAL |
|
|
8524 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
8525 | #else |
|
|
8526 | # ifdef DL_GLOBAL |
|
|
8527 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
8528 | # else |
|
|
8529 | # define LT_DLGLOBAL 0 |
|
|
8530 | # endif |
|
|
8531 | #endif |
|
|
8532 | |
|
|
8533 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
8534 | find out it does not work in some platform. */ |
|
|
8535 | #ifndef LT_DLLAZY_OR_NOW |
|
|
8536 | # ifdef RTLD_LAZY |
|
|
8537 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
8538 | # else |
|
|
8539 | # ifdef DL_LAZY |
|
|
8540 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
8541 | # else |
|
|
8542 | # ifdef RTLD_NOW |
|
|
8543 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
8544 | # else |
|
|
8545 | # ifdef DL_NOW |
|
|
8546 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
8547 | # else |
|
|
8548 | # define LT_DLLAZY_OR_NOW 0 |
|
|
8549 | # endif |
|
|
8550 | # endif |
|
|
8551 | # endif |
|
|
8552 | # endif |
|
|
8553 | #endif |
|
|
8554 | |
|
|
8555 | #ifdef __cplusplus |
|
|
8556 | extern "C" void exit (int); |
|
|
8557 | #endif |
|
|
8558 | |
|
|
8559 | void fnord() { int i=42;} |
|
|
8560 | int main () |
|
|
8561 | { |
|
|
8562 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
8563 | int status = $lt_dlunknown; |
|
|
8564 | |
|
|
8565 | if (self) |
|
|
8566 | { |
|
|
8567 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
8568 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
8569 | /* dlclose (self); */ |
|
|
8570 | } |
|
|
8571 | else |
|
|
8572 | puts (dlerror ()); |
|
|
8573 | |
|
|
8574 | exit (status); |
|
|
8575 | } |
|
|
8576 | EOF |
|
|
8577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
8578 | (eval $ac_link) 2>&5 |
|
|
8579 | ac_status=$? |
|
|
8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
8581 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
8582 | (./conftest; exit; ) >&5 2>/dev/null |
|
|
8583 | lt_status=$? |
|
|
8584 | case x$lt_status in |
|
|
8585 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
8586 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
8587 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
8588 | esac |
|
|
8589 | else : |
|
|
8590 | # compilation failed |
|
|
8591 | lt_cv_dlopen_self_static=no |
|
|
8592 | fi |
|
|
8593 | fi |
|
|
8594 | rm -fr conftest* |
|
|
8595 | |
|
|
8596 | |
|
|
8597 | fi |
|
|
8598 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
8599 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
8600 | fi |
|
|
8601 | |
|
|
8602 | CPPFLAGS="$save_CPPFLAGS" |
|
|
8603 | LDFLAGS="$save_LDFLAGS" |
|
|
8604 | LIBS="$save_LIBS" |
|
|
8605 | ;; |
|
|
8606 | esac |
|
|
8607 | |
|
|
8608 | case $lt_cv_dlopen_self in |
|
|
8609 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
8610 | *) enable_dlopen_self=unknown ;; |
|
|
8611 | esac |
|
|
8612 | |
|
|
8613 | case $lt_cv_dlopen_self_static in |
|
|
8614 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
8615 | *) enable_dlopen_self_static=unknown ;; |
|
|
8616 | esac |
|
|
8617 | fi |
|
|
8618 | |
|
|
8619 | |
|
|
8620 | # Report which library types will actually be built |
|
|
8621 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
8622 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
8623 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
8624 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
8625 | |
|
|
8626 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
8627 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
8628 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
8629 | |
|
|
8630 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
8631 | # are all built from PIC. |
|
|
8632 | case $host_os in |
|
|
8633 | aix3*) |
|
|
8634 | test "$enable_shared" = yes && enable_static=no |
|
|
8635 | if test -n "$RANLIB"; then |
|
|
8636 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
8637 | postinstall_cmds='$RANLIB $lib' |
|
|
8638 | fi |
|
|
8639 | ;; |
|
|
8640 | |
|
|
8641 | aix4* | aix5*) |
|
|
8642 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
8643 | test "$enable_shared" = yes && enable_static=no |
|
|
8644 | fi |
|
|
8645 | ;; |
|
|
8646 | esac |
|
|
8647 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
8648 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
8649 | |
|
|
8650 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
8651 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
8652 | # Make sure either enable_shared or enable_static is yes. |
|
|
8653 | test "$enable_shared" = yes || enable_static=yes |
|
|
8654 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
8655 | echo "${ECHO_T}$enable_static" >&6 |
|
|
8656 | |
|
|
8657 | # The else clause should only fire when bootstrapping the |
|
|
8658 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
8659 | # with your package, and you will get complaints that there are |
|
|
8660 | # no rules to generate ltmain.sh. |
|
|
8661 | if test -f "$ltmain"; then |
|
|
8662 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
8663 | # without removal of \ escapes. |
|
|
8664 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
8665 | setopt NO_GLOB_SUBST |
|
|
8666 | fi |
|
|
8667 | # Now quote all the things that may contain metacharacters while being |
|
|
8668 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
8669 | # variables and quote the copies for generation of the libtool script. |
|
|
8670 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
8671 | SED SHELL STRIP \ |
|
|
8672 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
8673 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
8674 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
8675 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
8676 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
8677 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
8678 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
8679 | compiler \ |
|
|
8680 | CC \ |
|
|
8681 | LD \ |
|
|
8682 | lt_prog_compiler_wl \ |
|
|
8683 | lt_prog_compiler_pic \ |
|
|
8684 | lt_prog_compiler_static \ |
|
|
8685 | lt_prog_compiler_no_builtin_flag \ |
|
|
8686 | export_dynamic_flag_spec \ |
|
|
8687 | thread_safe_flag_spec \ |
|
|
8688 | whole_archive_flag_spec \ |
|
|
8689 | enable_shared_with_static_runtimes \ |
|
|
8690 | old_archive_cmds \ |
|
|
8691 | old_archive_from_new_cmds \ |
|
|
8692 | predep_objects \ |
|
|
8693 | postdep_objects \ |
|
|
8694 | predeps \ |
|
|
8695 | postdeps \ |
|
|
8696 | compiler_lib_search_path \ |
|
|
8697 | archive_cmds \ |
|
|
8698 | archive_expsym_cmds \ |
|
|
8699 | postinstall_cmds \ |
|
|
8700 | postuninstall_cmds \ |
|
|
8701 | old_archive_from_expsyms_cmds \ |
|
|
8702 | allow_undefined_flag \ |
|
|
8703 | no_undefined_flag \ |
|
|
8704 | export_symbols_cmds \ |
|
|
8705 | hardcode_libdir_flag_spec \ |
|
|
8706 | hardcode_libdir_flag_spec_ld \ |
|
|
8707 | hardcode_libdir_separator \ |
|
|
8708 | hardcode_automatic \ |
|
|
8709 | module_cmds \ |
|
|
8710 | module_expsym_cmds \ |
|
|
8711 | lt_cv_prog_compiler_c_o \ |
|
|
8712 | exclude_expsyms \ |
|
|
8713 | include_expsyms; do |
|
|
8714 | |
|
|
8715 | case $var in |
|
|
8716 | old_archive_cmds | \ |
|
|
8717 | old_archive_from_new_cmds | \ |
|
|
8718 | archive_cmds | \ |
|
|
8719 | archive_expsym_cmds | \ |
|
|
8720 | module_cmds | \ |
|
|
8721 | module_expsym_cmds | \ |
|
|
8722 | old_archive_from_expsyms_cmds | \ |
|
|
8723 | export_symbols_cmds | \ |
|
|
8724 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
8725 | postinstall_cmds | postuninstall_cmds | \ |
|
|
8726 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
8727 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
8728 | # Double-quote double-evaled strings. |
|
|
8729 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
8730 | ;; |
|
|
8731 | *) |
|
|
8732 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
8733 | ;; |
|
|
8734 | esac |
|
|
8735 | done |
|
|
8736 | |
|
|
8737 | case $lt_echo in |
|
|
8738 | *'\$0 --fallback-echo"') |
|
|
8739 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
8740 | ;; |
|
|
8741 | esac |
|
|
8742 | |
|
|
8743 | cfgfile="${ofile}T" |
|
|
8744 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
|
|
8745 | $rm -f "$cfgfile" |
|
|
8746 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
|
|
8747 | echo "$as_me: creating $ofile" >&6;} |
|
|
8748 | |
|
|
8749 | cat <<__EOF__ >> "$cfgfile" |
|
|
8750 | #! $SHELL |
|
|
8751 | |
|
|
8752 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
8753 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
8754 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
8755 | # |
|
|
8756 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
|
|
8757 | # Free Software Foundation, Inc. |
|
|
8758 | # |
|
|
8759 | # This file is part of GNU Libtool: |
|
|
8760 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
8761 | # |
|
|
8762 | # This program is free software; you can redistribute it and/or modify |
|
|
8763 | # it under the terms of the GNU General Public License as published by |
|
|
8764 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8765 | # (at your option) any later version. |
|
|
8766 | # |
|
|
8767 | # This program is distributed in the hope that it will be useful, but |
|
|
8768 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8769 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
8770 | # General Public License for more details. |
|
|
8771 | # |
|
|
8772 | # You should have received a copy of the GNU General Public License |
|
|
8773 | # along with this program; if not, write to the Free Software |
|
|
8774 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
8775 | # |
|
|
8776 | # As a special exception to the GNU General Public License, if you |
|
|
8777 | # distribute this file as part of a program that contains a |
|
|
8778 | # configuration script generated by Autoconf, you may include it under |
|
|
8779 | # the same distribution terms that you use for the rest of that program. |
|
|
8780 | |
|
|
8781 | # A sed program that does not truncate output. |
|
|
8782 | SED=$lt_SED |
|
|
8783 | |
|
|
8784 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
8785 | Xsed="$SED -e 1s/^X//" |
|
|
8786 | |
|
|
8787 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
8788 | # if CDPATH is set. |
|
|
8789 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
8790 | |
|
|
8791 | # The names of the tagged configurations supported by this script. |
|
|
8792 | available_tags= |
|
|
8793 | |
|
|
8794 | # ### BEGIN LIBTOOL CONFIG |
|
|
8795 | |
|
|
8796 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
8797 | |
|
|
8798 | # Shell to use when invoking shell scripts. |
|
|
8799 | SHELL=$lt_SHELL |
|
|
8800 | |
|
|
8801 | # Whether or not to build shared libraries. |
|
|
8802 | build_libtool_libs=$enable_shared |
|
|
8803 | |
|
|
8804 | # Whether or not to build static libraries. |
|
|
8805 | build_old_libs=$enable_static |
|
|
8806 | |
|
|
8807 | # Whether or not to add -lc for building shared libraries. |
|
|
8808 | build_libtool_need_lc=$archive_cmds_need_lc |
|
|
8809 | |
|
|
8810 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
8811 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
|
8812 | |
|
|
8813 | # Whether or not to optimize for fast installation. |
|
|
8814 | fast_install=$enable_fast_install |
|
|
8815 | |
|
|
8816 | # The host system. |
|
|
8817 | host_alias=$host_alias |
|
|
8818 | host=$host |
|
|
8819 | host_os=$host_os |
|
|
8820 | |
|
|
8821 | # The build system. |
|
|
8822 | build_alias=$build_alias |
|
|
8823 | build=$build |
|
|
8824 | build_os=$build_os |
|
|
8825 | |
|
|
8826 | # An echo program that does not interpret backslashes. |
|
|
8827 | echo=$lt_echo |
|
|
8828 | |
|
|
8829 | # The archiver. |
|
|
8830 | AR=$lt_AR |
|
|
8831 | AR_FLAGS=$lt_AR_FLAGS |
|
|
8832 | |
|
|
8833 | # A C compiler. |
|
|
8834 | LTCC=$lt_LTCC |
|
|
8835 | |
|
|
8836 | # LTCC compiler flags. |
|
|
8837 | LTCFLAGS=$lt_LTCFLAGS |
|
|
8838 | |
|
|
8839 | # A language-specific compiler. |
|
|
8840 | CC=$lt_compiler |
|
|
8841 | |
|
|
8842 | # Is the compiler the GNU C compiler? |
|
|
8843 | with_gcc=$GCC |
|
|
8844 | |
|
|
8845 | # An ERE matcher. |
|
|
8846 | EGREP=$lt_EGREP |
|
|
8847 | |
|
|
8848 | # The linker used to build libraries. |
|
|
8849 | LD=$lt_LD |
|
|
8850 | |
|
|
8851 | # Whether we need hard or soft links. |
|
|
8852 | LN_S=$lt_LN_S |
|
|
8853 | |
|
|
8854 | # A BSD-compatible nm program. |
|
|
8855 | NM=$lt_NM |
|
|
8856 | |
|
|
8857 | # A symbol stripping program |
|
|
8858 | STRIP=$lt_STRIP |
|
|
8859 | |
|
|
8860 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
8861 | MAGIC_CMD=$MAGIC_CMD |
|
|
8862 | |
|
|
8863 | # Used on cygwin: DLL creation program. |
|
|
8864 | DLLTOOL="$DLLTOOL" |
|
|
8865 | |
|
|
8866 | # Used on cygwin: object dumper. |
|
|
8867 | OBJDUMP="$OBJDUMP" |
|
|
8868 | |
|
|
8869 | # Used on cygwin: assembler. |
|
|
8870 | AS="$AS" |
|
|
8871 | |
|
|
8872 | # The name of the directory that contains temporary libtool files. |
|
|
8873 | objdir=$objdir |
|
|
8874 | |
|
|
8875 | # How to create reloadable object files. |
|
|
8876 | reload_flag=$lt_reload_flag |
|
|
8877 | reload_cmds=$lt_reload_cmds |
|
|
8878 | |
|
|
8879 | # How to pass a linker flag through the compiler. |
|
|
8880 | wl=$lt_lt_prog_compiler_wl |
|
|
8881 | |
|
|
8882 | # Object file suffix (normally "o"). |
|
|
8883 | objext="$ac_objext" |
|
|
8884 | |
|
|
8885 | # Old archive suffix (normally "a"). |
|
|
8886 | libext="$libext" |
|
|
8887 | |
|
|
8888 | # Shared library suffix (normally ".so"). |
|
|
8889 | shrext_cmds='$shrext_cmds' |
|
|
8890 | |
|
|
8891 | # Executable file suffix (normally ""). |
|
|
8892 | exeext="$exeext" |
|
|
8893 | |
|
|
8894 | # Additional compiler flags for building library objects. |
|
|
8895 | pic_flag=$lt_lt_prog_compiler_pic |
|
|
8896 | pic_mode=$pic_mode |
|
|
8897 | |
|
|
8898 | # What is the maximum length of a command? |
|
|
8899 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
8900 | |
|
|
8901 | # Does compiler simultaneously support -c and -o options? |
|
|
8902 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
|
8903 | |
|
|
8904 | # Must we lock files when doing compilation? |
|
|
8905 | need_locks=$lt_need_locks |
|
|
8906 | |
|
|
8907 | # Do we need the lib prefix for modules? |
|
|
8908 | need_lib_prefix=$need_lib_prefix |
|
|
8909 | |
|
|
8910 | # Do we need a version for libraries? |
|
|
8911 | need_version=$need_version |
|
|
8912 | |
|
|
8913 | # Whether dlopen is supported. |
|
|
8914 | dlopen_support=$enable_dlopen |
|
|
8915 | |
|
|
8916 | # Whether dlopen of programs is supported. |
|
|
8917 | dlopen_self=$enable_dlopen_self |
|
|
8918 | |
|
|
8919 | # Whether dlopen of statically linked programs is supported. |
|
|
8920 | dlopen_self_static=$enable_dlopen_self_static |
|
|
8921 | |
|
|
8922 | # Compiler flag to prevent dynamic linking. |
|
|
8923 | link_static_flag=$lt_lt_prog_compiler_static |
|
|
8924 | |
|
|
8925 | # Compiler flag to turn off builtin functions. |
|
|
8926 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
|
8927 | |
|
|
8928 | # Compiler flag to allow reflexive dlopens. |
|
|
8929 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
8930 | |
|
|
8931 | # Compiler flag to generate shared objects directly from archives. |
|
|
8932 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
8933 | |
|
|
8934 | # Compiler flag to generate thread-safe objects. |
|
|
8935 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
8936 | |
|
|
8937 | # Library versioning type. |
|
|
8938 | version_type=$version_type |
|
|
8939 | |
|
|
8940 | # Format of library name prefix. |
|
|
8941 | libname_spec=$lt_libname_spec |
|
|
8942 | |
|
|
8943 | # List of archive names. First name is the real one, the rest are links. |
|
|
8944 | # The last name is the one that the linker finds with -lNAME. |
|
|
8945 | library_names_spec=$lt_library_names_spec |
|
|
8946 | |
|
|
8947 | # The coded name of the library, if different from the real name. |
|
|
8948 | soname_spec=$lt_soname_spec |
|
|
8949 | |
|
|
8950 | # Commands used to build and install an old-style archive. |
|
|
8951 | RANLIB=$lt_RANLIB |
|
|
8952 | old_archive_cmds=$lt_old_archive_cmds |
|
|
8953 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
8954 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
8955 | |
|
|
8956 | # Create an old-style archive from a shared archive. |
|
|
8957 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
8958 | |
|
|
8959 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
8960 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
8961 | |
|
|
8962 | # Commands used to build and install a shared archive. |
|
|
8963 | archive_cmds=$lt_archive_cmds |
|
|
8964 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
8965 | postinstall_cmds=$lt_postinstall_cmds |
|
|
8966 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
8967 | |
|
|
8968 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
8969 | module_cmds=$lt_module_cmds |
|
|
8970 | module_expsym_cmds=$lt_module_expsym_cmds |
|
|
8971 | |
|
|
8972 | # Commands to strip libraries. |
|
|
8973 | old_striplib=$lt_old_striplib |
|
|
8974 | striplib=$lt_striplib |
|
|
8975 | |
|
|
8976 | # Dependencies to place before the objects being linked to create a |
|
|
8977 | # shared library. |
|
|
8978 | predep_objects=$lt_predep_objects |
|
|
8979 | |
|
|
8980 | # Dependencies to place after the objects being linked to create a |
|
|
8981 | # shared library. |
|
|
8982 | postdep_objects=$lt_postdep_objects |
|
|
8983 | |
|
|
8984 | # Dependencies to place before the objects being linked to create a |
|
|
8985 | # shared library. |
|
|
8986 | predeps=$lt_predeps |
|
|
8987 | |
|
|
8988 | # Dependencies to place after the objects being linked to create a |
|
|
8989 | # shared library. |
|
|
8990 | postdeps=$lt_postdeps |
|
|
8991 | |
|
|
8992 | # The library search path used internally by the compiler when linking |
|
|
8993 | # a shared library. |
|
|
8994 | compiler_lib_search_path=$lt_compiler_lib_search_path |
|
|
8995 | |
|
|
8996 | # Method to check whether dependent libraries are shared objects. |
|
|
8997 | deplibs_check_method=$lt_deplibs_check_method |
|
|
8998 | |
|
|
8999 | # Command to use when deplibs_check_method == file_magic. |
|
|
9000 | file_magic_cmd=$lt_file_magic_cmd |
|
|
9001 | |
|
|
9002 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
9003 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
9004 | |
|
|
9005 | # Flag that forces no undefined symbols. |
|
|
9006 | no_undefined_flag=$lt_no_undefined_flag |
|
|
9007 | |
|
|
9008 | # Commands used to finish a libtool library installation in a directory. |
|
|
9009 | finish_cmds=$lt_finish_cmds |
|
|
9010 | |
|
|
9011 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
9012 | finish_eval=$lt_finish_eval |
|
|
9013 | |
|
|
9014 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
9015 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
9016 | |
|
|
9017 | # Transform the output of nm in a proper C declaration |
|
|
9018 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
9019 | |
|
|
9020 | # Transform the output of nm in a C name address pair |
|
|
9021 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
9022 | |
|
|
9023 | # This is the shared library runtime path variable. |
|
|
9024 | runpath_var=$runpath_var |
|
|
9025 | |
|
|
9026 | # This is the shared library path variable. |
|
|
9027 | shlibpath_var=$shlibpath_var |
|
|
9028 | |
|
|
9029 | # Is shlibpath searched before the hard-coded library search path? |
|
|
9030 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
9031 | |
|
|
9032 | # How to hardcode a shared library path into an executable. |
|
|
9033 | hardcode_action=$hardcode_action |
|
|
9034 | |
|
|
9035 | # Whether we should hardcode library paths into libraries. |
|
|
9036 | hardcode_into_libs=$hardcode_into_libs |
|
|
9037 | |
|
|
9038 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
9039 | # This must work even if \$libdir does not exist. |
|
|
9040 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
9041 | |
|
|
9042 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
9043 | # a binary during linking. This must work even if \$libdir does |
|
|
9044 | # not exist. |
|
|
9045 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
|
9046 | |
|
|
9047 | # Whether we need a single -rpath flag with a separated argument. |
|
|
9048 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
9049 | |
|
|
9050 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
9051 | # resulting binary. |
|
|
9052 | hardcode_direct=$hardcode_direct |
|
|
9053 | |
|
|
9054 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
9055 | # resulting binary. |
|
|
9056 | hardcode_minus_L=$hardcode_minus_L |
|
|
9057 | |
|
|
9058 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
9059 | # the resulting binary. |
|
|
9060 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
9061 | |
|
|
9062 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
9063 | # and all subsequent libraries and executables linked against it. |
|
|
9064 | hardcode_automatic=$hardcode_automatic |
|
|
9065 | |
|
|
9066 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
9067 | # restored at relink time. |
|
|
9068 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
9069 | |
|
|
9070 | # Whether libtool must link a program against all its dependency libraries. |
|
|
9071 | link_all_deplibs=$link_all_deplibs |
|
|
9072 | |
|
|
9073 | # Compile-time system search path for libraries |
|
|
9074 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
9075 | |
|
|
9076 | # Run-time system search path for libraries |
|
|
9077 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
9078 | |
|
|
9079 | # Fix the shell variable \$srcfile for the compiler. |
|
|
9080 | fix_srcfile_path="$fix_srcfile_path" |
|
|
9081 | |
|
|
9082 | # Set to yes if exported symbols are required. |
|
|
9083 | always_export_symbols=$always_export_symbols |
|
|
9084 | |
|
|
9085 | # The commands to list exported symbols. |
|
|
9086 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
9087 | |
|
|
9088 | # The commands to extract the exported symbol list from a shared archive. |
|
|
9089 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
9090 | |
|
|
9091 | # Symbols that should not be listed in the preloaded symbols. |
|
|
9092 | exclude_expsyms=$lt_exclude_expsyms |
|
|
9093 | |
|
|
9094 | # Symbols that must always be exported. |
|
|
9095 | include_expsyms=$lt_include_expsyms |
|
|
9096 | |
|
|
9097 | # ### END LIBTOOL CONFIG |
|
|
9098 | |
|
|
9099 | __EOF__ |
|
|
9100 | |
|
|
9101 | |
|
|
9102 | case $host_os in |
|
|
9103 | aix3*) |
|
|
9104 | cat <<\EOF >> "$cfgfile" |
|
|
9105 | |
|
|
9106 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
9107 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
9108 | # vanish in a puff of smoke. |
|
|
9109 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
9110 | COLLECT_NAMES= |
|
|
9111 | export COLLECT_NAMES |
|
|
9112 | fi |
|
|
9113 | EOF |
|
|
9114 | ;; |
|
|
9115 | esac |
|
|
9116 | |
|
|
9117 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
9118 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
9119 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
9120 | # is reportedly fixed, but why not run on old versions too? |
|
|
9121 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
|
|
9122 | |
|
|
9123 | mv -f "$cfgfile" "$ofile" || \ |
|
|
9124 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
|
9125 | chmod +x "$ofile" |
|
|
9126 | |
|
|
9127 | else |
|
|
9128 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
9129 | # `config.status --recheck' to rerun these tests and create the |
|
|
9130 | # libtool script then. |
|
|
9131 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
9132 | if test -f "$ltmain_in"; then |
|
|
9133 | test -f Makefile && make "$ltmain" |
|
|
9134 | fi |
|
|
9135 | fi |
|
|
9136 | |
|
|
9137 | |
|
|
9138 | ac_ext=c |
|
|
9139 | ac_cpp='$CPP $CPPFLAGS' |
|
|
9140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
9141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
9142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
9143 | |
|
|
9144 | CC="$lt_save_CC" |
|
|
9145 | |
|
|
9146 | |
|
|
9147 | # Check whether --with-tags or --without-tags was given. |
|
|
9148 | if test "${with_tags+set}" = set; then |
|
|
9149 | withval="$with_tags" |
|
|
9150 | tagnames="$withval" |
|
|
9151 | fi; |
|
|
9152 | |
|
|
9153 | if test -f "$ltmain" && test -n "$tagnames"; then |
|
|
9154 | if test ! -f "${ofile}"; then |
|
|
9155 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
|
|
9156 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
|
|
9157 | fi |
|
|
9158 | |
|
|
9159 | if test -z "$LTCC"; then |
|
|
9160 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
|
|
9161 | if test -z "$LTCC"; then |
|
|
9162 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
|
|
9163 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
|
|
9164 | else |
|
|
9165 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
|
|
9166 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
|
|
9167 | fi |
|
|
9168 | fi |
|
|
9169 | if test -z "$LTCFLAGS"; then |
|
|
9170 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
|
|
9171 | fi |
|
|
9172 | |
|
|
9173 | # Extract list of available tagged configurations in $ofile. |
|
|
9174 | # Note that this assumes the entire list is on one line. |
|
|
9175 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
|
|
9176 | |
|
|
9177 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
|
9178 | for tagname in $tagnames; do |
|
|
9179 | IFS="$lt_save_ifs" |
|
|
9180 | # Check whether tagname contains only valid characters |
|
|
9181 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
|
|
9182 | "") ;; |
|
|
9183 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
|
|
9184 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
|
|
9185 | { (exit 1); exit 1; }; } |
|
|
9186 | ;; |
|
|
9187 | esac |
|
|
9188 | |
|
|
9189 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
|
|
9190 | then |
|
|
9191 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
|
|
9192 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
|
|
9193 | { (exit 1); exit 1; }; } |
|
|
9194 | fi |
|
|
9195 | |
|
|
9196 | # Update the list of available tags. |
|
|
9197 | if test -n "$tagname"; then |
|
|
9198 | echo appending configuration tag \"$tagname\" to $ofile |
|
|
9199 | |
|
|
9200 | case $tagname in |
|
|
9201 | CXX) |
|
|
9202 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
|
9203 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
|
9204 | (test "X$CXX" != "Xg++"))) ; then |
|
|
9205 | ac_ext=cc |
|
|
9206 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
9207 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
9208 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
9209 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
9210 | |
|
|
9211 | |
|
|
9212 | |
|
|
9213 | |
|
|
9214 | archive_cmds_need_lc_CXX=no |
|
|
9215 | allow_undefined_flag_CXX= |
|
|
9216 | always_export_symbols_CXX=no |
|
|
9217 | archive_expsym_cmds_CXX= |
|
|
9218 | export_dynamic_flag_spec_CXX= |
|
|
9219 | hardcode_direct_CXX=no |
|
|
9220 | hardcode_libdir_flag_spec_CXX= |
|
|
9221 | hardcode_libdir_flag_spec_ld_CXX= |
|
|
9222 | hardcode_libdir_separator_CXX= |
|
|
9223 | hardcode_minus_L_CXX=no |
|
|
9224 | hardcode_shlibpath_var_CXX=unsupported |
|
|
9225 | hardcode_automatic_CXX=no |
|
|
9226 | module_cmds_CXX= |
|
|
9227 | module_expsym_cmds_CXX= |
|
|
9228 | link_all_deplibs_CXX=unknown |
|
|
9229 | old_archive_cmds_CXX=$old_archive_cmds |
|
|
9230 | no_undefined_flag_CXX= |
|
|
9231 | whole_archive_flag_spec_CXX= |
|
|
9232 | enable_shared_with_static_runtimes_CXX=no |
|
|
9233 | |
|
|
9234 | # Dependencies to place before and after the object being linked: |
|
|
9235 | predep_objects_CXX= |
|
|
9236 | postdep_objects_CXX= |
|
|
9237 | predeps_CXX= |
|
|
9238 | postdeps_CXX= |
|
|
9239 | compiler_lib_search_path_CXX= |
|
|
9240 | |
|
|
9241 | # Source file extension for C++ test sources. |
|
|
9242 | ac_ext=cpp |
|
|
9243 | |
|
|
9244 | # Object file extension for compiled C++ test sources. |
|
|
9245 | objext=o |
|
|
9246 | objext_CXX=$objext |
|
|
9247 | |
|
|
9248 | # Code to be used in simple compile tests |
|
|
9249 | lt_simple_compile_test_code="int some_variable = 0;\n" |
|
|
9250 | |
|
|
9251 | # Code to be used in simple link tests |
|
|
9252 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
|
|
9253 | |
|
|
9254 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
9255 | |
|
|
9256 | # If no C compiler was specified, use CC. |
|
|
9257 | LTCC=${LTCC-"$CC"} |
|
|
9258 | |
|
|
9259 | # If no C compiler flags were specified, use CFLAGS. |
|
|
9260 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
9261 | |
|
|
9262 | # Allow CC to be a program name with arguments. |
|
|
9263 | compiler=$CC |
|
|
9264 | |
|
|
9265 | |
|
|
9266 | # save warnings/boilerplate of simple test code |
|
|
9267 | ac_outfile=conftest.$ac_objext |
|
|
9268 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
9269 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
9270 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
9271 | $rm conftest* |
|
|
9272 | |
|
|
9273 | ac_outfile=conftest.$ac_objext |
|
|
9274 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
9275 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
9276 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
9277 | $rm conftest* |
|
|
9278 | |
|
|
9279 | |
|
|
9280 | # Allow CC to be a program name with arguments. |
|
|
9281 | lt_save_CC=$CC |
|
|
9282 | lt_save_LD=$LD |
|
|
9283 | lt_save_GCC=$GCC |
|
|
9284 | GCC=$GXX |
|
|
9285 | lt_save_with_gnu_ld=$with_gnu_ld |
|
|
9286 | lt_save_path_LD=$lt_cv_path_LD |
|
|
9287 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
|
9288 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
|
9289 | else |
|
|
9290 | $as_unset lt_cv_prog_gnu_ld |
|
|
9291 | fi |
|
|
9292 | if test -n "${lt_cv_path_LDCXX+set}"; then |
|
|
9293 | lt_cv_path_LD=$lt_cv_path_LDCXX |
|
|
9294 | else |
|
|
9295 | $as_unset lt_cv_path_LD |
|
|
9296 | fi |
|
|
9297 | test -z "${LDCXX+set}" || LD=$LDCXX |
|
|
9298 | CC=${CXX-"c++"} |
|
|
9299 | compiler=$CC |
|
|
9300 | compiler_CXX=$CC |
|
|
9301 | for cc_temp in $compiler""; do |
|
|
9302 | case $cc_temp in |
|
|
9303 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
9304 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
9305 | \-*) ;; |
|
|
9306 | *) break;; |
|
|
9307 | esac |
|
|
9308 | done |
|
|
9309 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
9310 | |
|
|
9311 | |
|
|
9312 | # We don't want -fno-exception wen compiling C++ code, so set the |
|
|
9313 | # no_builtin_flag separately |
|
|
9314 | if test "$GXX" = yes; then |
|
|
9315 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
|
9316 | else |
|
|
9317 | lt_prog_compiler_no_builtin_flag_CXX= |
|
|
9318 | fi |
|
|
9319 | |
|
|
9320 | if test "$GXX" = yes; then |
|
|
9321 | # Set up default GNU C++ configuration |
|
|
9322 | |
|
|
9323 | |
|
|
9324 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
9325 | if test "${with_gnu_ld+set}" = set; then |
|
|
9326 | withval="$with_gnu_ld" |
|
|
9327 | test "$withval" = no || with_gnu_ld=yes |
|
|
9328 | else |
|
|
9329 | with_gnu_ld=no |
|
|
9330 | fi; |
|
|
9331 | ac_prog=ld |
|
|
9332 | if test "$GCC" = yes; then |
|
|
9333 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
9334 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
|
|
9335 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 |
|
|
9336 | case $host in |
|
|
9337 | *-*-mingw*) |
|
|
9338 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
9339 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
9340 | *) |
|
|
9341 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
9342 | esac |
|
|
9343 | case $ac_prog in |
|
|
9344 | # Accept absolute paths. |
|
|
9345 | [\\/]* | ?:[\\/]*) |
|
|
9346 | re_direlt='/[^/][^/]*/\.\./' |
|
|
9347 | # Canonicalize the pathname of ld |
|
|
9348 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
|
|
9349 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
9350 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
|
|
9351 | done |
|
|
9352 | test -z "$LD" && LD="$ac_prog" |
|
|
9353 | ;; |
|
|
9354 | "") |
|
|
9355 | # If it fails, then pretend we aren't using GCC. |
|
|
9356 | ac_prog=ld |
|
|
9357 | ;; |
|
|
9358 | *) |
|
|
9359 | # If it is relative, then search for the first ld in PATH. |
|
|
9360 | with_gnu_ld=unknown |
|
|
9361 | ;; |
|
|
9362 | esac |
|
|
9363 | elif test "$with_gnu_ld" = yes; then |
|
|
9364 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
|
|
9365 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
|
|
9366 | else |
|
|
9367 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
9368 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
9369 | fi |
|
|
9370 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
9371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9372 | else |
|
|
9373 | if test -z "$LD"; then |
|
|
9374 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
|
9375 | for ac_dir in $PATH; do |
|
|
9376 | IFS="$lt_save_ifs" |
|
|
9377 | test -z "$ac_dir" && ac_dir=. |
|
|
9378 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
9379 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
9380 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
9381 | # but apparently some variants of GNU ld only accept -v. |
|
|
9382 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
9383 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
|
9384 | *GNU* | *'with BFD'*) |
|
|
9385 | test "$with_gnu_ld" != no && break |
|
|
9386 | ;; |
|
|
9387 | *) |
|
|
9388 | test "$with_gnu_ld" != yes && break |
|
|
9389 | ;; |
|
|
9390 | esac |
|
|
9391 | fi |
|
|
9392 | done |
|
|
9393 | IFS="$lt_save_ifs" |
|
|
9394 | else |
|
|
9395 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
9396 | fi |
|
|
9397 | fi |
|
|
9398 | |
|
|
9399 | LD="$lt_cv_path_LD" |
|
|
9400 | if test -n "$LD"; then |
|
|
9401 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
9402 | echo "${ECHO_T}$LD" >&6 |
|
|
9403 | else |
|
|
9404 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
9405 | echo "${ECHO_T}no" >&6 |
|
|
9406 | fi |
|
|
9407 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
9408 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
9409 | { (exit 1); exit 1; }; } |
|
|
9410 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
9411 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
9412 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
9413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
9414 | else |
|
|
9415 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
|
9416 | case `$LD -v 2>&1 </dev/null` in |
|
|
9417 | *GNU* | *'with BFD'*) |
|
|
9418 | lt_cv_prog_gnu_ld=yes |
|
|
9419 | ;; |
|
|
9420 | *) |
|
|
9421 | lt_cv_prog_gnu_ld=no |
|
|
9422 | ;; |
|
|
9423 | esac |
|
|
9424 | fi |
|
|
9425 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
9426 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
9427 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
9428 | |
|
|
9429 | |
|
|
9430 | |
|
|
9431 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
|
9432 | # archiving commands below assume that GNU ld is being used. |
|
|
9433 | if test "$with_gnu_ld" = yes; then |
|
|
9434 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9435 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
9436 | |
|
|
9437 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
9438 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
9439 | |
|
|
9440 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
9441 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
|
9442 | # investigate it a little bit more. (MM) |
|
|
9443 | wlarc='${wl}' |
|
|
9444 | |
|
|
9445 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
9446 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
|
|
9447 | grep 'no-whole-archive' > /dev/null; then |
|
|
9448 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
9449 | else |
|
|
9450 | whole_archive_flag_spec_CXX= |
|
|
9451 | fi |
|
|
9452 | else |
|
|
9453 | with_gnu_ld=no |
|
|
9454 | wlarc= |
|
|
9455 | |
|
|
9456 | # A generic and very simple default shared library creation |
|
|
9457 | # command for GNU C++ for the case where it uses the native |
|
|
9458 | # linker, instead of GNU ld. If possible, this setting should |
|
|
9459 | # overridden to take advantage of the native linker features on |
|
|
9460 | # the platform it is being used on. |
|
|
9461 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
9462 | fi |
|
|
9463 | |
|
|
9464 | # Commands to make compiler produce verbose output that lists |
|
|
9465 | # what "hidden" libraries, object files and flags are used when |
|
|
9466 | # linking a shared library. |
|
|
9467 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
9468 | |
|
|
9469 | else |
|
|
9470 | GXX=no |
|
|
9471 | with_gnu_ld=no |
|
|
9472 | wlarc= |
|
|
9473 | fi |
|
|
9474 | |
|
|
9475 | # PORTME: fill in a description of your system's C++ link characteristics |
|
|
9476 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
9477 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
9478 | ld_shlibs_CXX=yes |
|
|
9479 | case $host_os in |
|
|
9480 | aix3*) |
|
|
9481 | # FIXME: insert proper C++ library support |
|
|
9482 | ld_shlibs_CXX=no |
|
|
9483 | ;; |
|
|
9484 | aix4* | aix5*) |
|
|
9485 | if test "$host_cpu" = ia64; then |
|
|
9486 | # On IA64, the linker does run time linking by default, so we don't |
|
|
9487 | # have to do anything special. |
|
|
9488 | aix_use_runtimelinking=no |
|
|
9489 | exp_sym_flag='-Bexport' |
|
|
9490 | no_entry_flag="" |
|
|
9491 | else |
|
|
9492 | aix_use_runtimelinking=no |
|
|
9493 | |
|
|
9494 | # Test if we are trying to use run time linking or normal |
|
|
9495 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
9496 | # need to do runtime linking. |
|
|
9497 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
9498 | for ld_flag in $LDFLAGS; do |
|
|
9499 | case $ld_flag in |
|
|
9500 | *-brtl*) |
|
|
9501 | aix_use_runtimelinking=yes |
|
|
9502 | break |
|
|
9503 | ;; |
|
|
9504 | esac |
|
|
9505 | done |
|
|
9506 | ;; |
|
|
9507 | esac |
|
|
9508 | |
|
|
9509 | exp_sym_flag='-bexport' |
|
|
9510 | no_entry_flag='-bnoentry' |
|
|
9511 | fi |
|
|
9512 | |
|
|
9513 | # When large executables or shared objects are built, AIX ld can |
|
|
9514 | # have problems creating the table of contents. If linking a library |
|
|
9515 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
9516 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
9517 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
9518 | |
|
|
9519 | archive_cmds_CXX='' |
|
|
9520 | hardcode_direct_CXX=yes |
|
|
9521 | hardcode_libdir_separator_CXX=':' |
|
|
9522 | link_all_deplibs_CXX=yes |
|
|
9523 | |
|
|
9524 | if test "$GXX" = yes; then |
|
|
9525 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
9526 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
9527 | # below for broken collect2 doesn't work under 4.3+ |
|
|
9528 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
9529 | if test -f "$collect2name" && \ |
|
|
9530 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
9531 | then |
|
|
9532 | # We have reworked collect2 |
|
|
9533 | hardcode_direct_CXX=yes |
|
|
9534 | else |
|
|
9535 | # We have old collect2 |
|
|
9536 | hardcode_direct_CXX=unsupported |
|
|
9537 | # It fails to find uninstalled libraries when the uninstalled |
|
|
9538 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
9539 | # to unsupported forces relinking |
|
|
9540 | hardcode_minus_L_CXX=yes |
|
|
9541 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9542 | hardcode_libdir_separator_CXX= |
|
|
9543 | fi |
|
|
9544 | ;; |
|
|
9545 | esac |
|
|
9546 | shared_flag='-shared' |
|
|
9547 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9548 | shared_flag="$shared_flag "'${wl}-G' |
|
|
9549 | fi |
|
|
9550 | else |
|
|
9551 | # not using gcc |
|
|
9552 | if test "$host_cpu" = ia64; then |
|
|
9553 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
9554 | # chokes on -Wl,-G. The following line is correct: |
|
|
9555 | shared_flag='-G' |
|
|
9556 | else |
|
|
9557 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9558 | shared_flag='${wl}-G' |
|
|
9559 | else |
|
|
9560 | shared_flag='${wl}-bM:SRE' |
|
|
9561 | fi |
|
|
9562 | fi |
|
|
9563 | fi |
|
|
9564 | |
|
|
9565 | # It seems that -bexpall does not export symbols beginning with |
|
|
9566 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
9567 | always_export_symbols_CXX=yes |
|
|
9568 | if test "$aix_use_runtimelinking" = yes; then |
|
|
9569 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
9570 | # -berok will link without error, but may produce a broken library. |
|
|
9571 | allow_undefined_flag_CXX='-berok' |
|
|
9572 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
9573 | cat >conftest.$ac_ext <<_ACEOF |
|
|
9574 | /* confdefs.h. */ |
|
|
9575 | _ACEOF |
|
|
9576 | cat confdefs.h >>conftest.$ac_ext |
|
|
9577 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
9578 | /* end confdefs.h. */ |
|
|
9579 | |
|
|
9580 | int |
|
|
9581 | main () |
|
|
9582 | { |
|
|
9583 | |
|
|
9584 | ; |
|
|
9585 | return 0; |
|
|
9586 | } |
|
|
9587 | _ACEOF |
|
|
9588 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
9589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
9590 | (eval $ac_link) 2>conftest.er1 |
2329 | ac_status=$? |
9591 | ac_status=$? |
2330 | grep -v '^ *+' conftest.er1 >conftest.err |
9592 | grep -v '^ *+' conftest.er1 >conftest.err |
2331 | rm -f conftest.er1 |
9593 | rm -f conftest.er1 |
2332 | cat conftest.err >&5 |
9594 | cat conftest.err >&5 |
2333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
… | |
… | |
2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2337 | (eval $ac_try) 2>&5 |
9599 | (eval $ac_try) 2>&5 |
2338 | ac_status=$? |
9600 | ac_status=$? |
2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2340 | (exit $ac_status); }; } && |
9602 | (exit $ac_status); }; } && |
2341 | { ac_try='test -s conftest.$ac_objext' |
9603 | { ac_try='test -s conftest$ac_exeext' |
2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2343 | (eval $ac_try) 2>&5 |
9605 | (eval $ac_try) 2>&5 |
2344 | ac_status=$? |
9606 | ac_status=$? |
2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2346 | (exit $ac_status); }; }; then |
9608 | (exit $ac_status); }; }; then |
2347 | ac_cv_header_stdc=yes |
9609 | |
|
|
9610 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9611 | }'` |
|
|
9612 | # Check for a 64-bit object if we didn't find anything. |
|
|
9613 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9614 | }'`; fi |
2348 | else |
9615 | else |
2349 | echo "$as_me: failed program was:" >&5 |
9616 | echo "$as_me: failed program was:" >&5 |
2350 | sed 's/^/| /' conftest.$ac_ext >&5 |
9617 | sed 's/^/| /' conftest.$ac_ext >&5 |
2351 | |
9618 | |
2352 | ac_cv_header_stdc=no |
|
|
2353 | fi |
9619 | fi |
2354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9620 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9621 | conftest$ac_exeext conftest.$ac_ext |
|
|
9622 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
2355 | |
9623 | |
2356 | if test $ac_cv_header_stdc = yes; then |
9624 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
2357 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
9625 | |
|
|
9626 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
9627 | else |
|
|
9628 | if test "$host_cpu" = ia64; then |
|
|
9629 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
|
9630 | allow_undefined_flag_CXX="-z nodefs" |
|
|
9631 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
|
|
9632 | else |
|
|
9633 | # Determine the default libpath from the value encoded in an empty executable. |
2358 | cat >conftest.$ac_ext <<_ACEOF |
9634 | cat >conftest.$ac_ext <<_ACEOF |
2359 | /* confdefs.h. */ |
9635 | /* confdefs.h. */ |
2360 | _ACEOF |
9636 | _ACEOF |
2361 | cat confdefs.h >>conftest.$ac_ext |
9637 | cat confdefs.h >>conftest.$ac_ext |
2362 | cat >>conftest.$ac_ext <<_ACEOF |
9638 | cat >>conftest.$ac_ext <<_ACEOF |
2363 | /* end confdefs.h. */ |
9639 | /* end confdefs.h. */ |
2364 | #include <string.h> |
|
|
2365 | |
9640 | |
2366 | _ACEOF |
|
|
2367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2368 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
2369 | : |
|
|
2370 | else |
|
|
2371 | ac_cv_header_stdc=no |
|
|
2372 | fi |
|
|
2373 | rm -f conftest* |
|
|
2374 | |
|
|
2375 | fi |
|
|
2376 | |
|
|
2377 | if test $ac_cv_header_stdc = yes; then |
|
|
2378 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
2379 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2380 | /* confdefs.h. */ |
|
|
2381 | _ACEOF |
|
|
2382 | cat confdefs.h >>conftest.$ac_ext |
|
|
2383 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2384 | /* end confdefs.h. */ |
|
|
2385 | #include <stdlib.h> |
|
|
2386 | |
|
|
2387 | _ACEOF |
|
|
2388 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
2389 | $EGREP "free" >/dev/null 2>&1; then |
|
|
2390 | : |
|
|
2391 | else |
|
|
2392 | ac_cv_header_stdc=no |
|
|
2393 | fi |
|
|
2394 | rm -f conftest* |
|
|
2395 | |
|
|
2396 | fi |
|
|
2397 | |
|
|
2398 | if test $ac_cv_header_stdc = yes; then |
|
|
2399 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
2400 | if test "$cross_compiling" = yes; then |
|
|
2401 | : |
|
|
2402 | else |
|
|
2403 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2404 | /* confdefs.h. */ |
|
|
2405 | _ACEOF |
|
|
2406 | cat confdefs.h >>conftest.$ac_ext |
|
|
2407 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2408 | /* end confdefs.h. */ |
|
|
2409 | #include <ctype.h> |
|
|
2410 | #if ((' ' & 0x0FF) == 0x020) |
|
|
2411 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
2412 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
2413 | #else |
|
|
2414 | # define ISLOWER(c) \ |
|
|
2415 | (('a' <= (c) && (c) <= 'i') \ |
|
|
2416 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
2417 | || ('s' <= (c) && (c) <= 'z')) |
|
|
2418 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
2419 | #endif |
|
|
2420 | |
|
|
2421 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
2422 | int |
9641 | int |
2423 | main () |
9642 | main () |
2424 | { |
9643 | { |
2425 | int i; |
9644 | |
2426 | for (i = 0; i < 256; i++) |
9645 | ; |
2427 | if (XOR (islower (i), ISLOWER (i)) |
9646 | return 0; |
2428 | || toupper (i) != TOUPPER (i)) |
|
|
2429 | exit(2); |
|
|
2430 | exit (0); |
|
|
2431 | } |
9647 | } |
2432 | _ACEOF |
9648 | _ACEOF |
2433 | rm -f conftest$ac_exeext |
9649 | rm -f conftest.$ac_objext conftest$ac_exeext |
2434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2435 | (eval $ac_link) 2>&5 |
|
|
2436 | ac_status=$? |
|
|
2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
2439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
2440 | (eval $ac_try) 2>&5 |
|
|
2441 | ac_status=$? |
|
|
2442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2443 | (exit $ac_status); }; }; then |
|
|
2444 | : |
|
|
2445 | else |
|
|
2446 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
2447 | echo "$as_me: failed program was:" >&5 |
|
|
2448 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2449 | |
|
|
2450 | ( exit $ac_status ) |
|
|
2451 | ac_cv_header_stdc=no |
|
|
2452 | fi |
|
|
2453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
2454 | fi |
|
|
2455 | fi |
|
|
2456 | fi |
|
|
2457 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
2458 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
2459 | if test $ac_cv_header_stdc = yes; then |
|
|
2460 | |
|
|
2461 | cat >>confdefs.h <<\_ACEOF |
|
|
2462 | #define STDC_HEADERS 1 |
|
|
2463 | _ACEOF |
|
|
2464 | |
|
|
2465 | fi |
|
|
2466 | |
|
|
2467 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
2468 | |
|
|
2469 | |
|
|
2470 | |
|
|
2471 | |
|
|
2472 | |
|
|
2473 | |
|
|
2474 | |
|
|
2475 | |
|
|
2476 | |
|
|
2477 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
2478 | inttypes.h stdint.h unistd.h |
|
|
2479 | do |
|
|
2480 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
2481 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
2482 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
2483 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
2484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2485 | else |
|
|
2486 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2487 | /* confdefs.h. */ |
|
|
2488 | _ACEOF |
|
|
2489 | cat confdefs.h >>conftest.$ac_ext |
|
|
2490 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
2491 | /* end confdefs.h. */ |
|
|
2492 | $ac_includes_default |
|
|
2493 | |
|
|
2494 | #include <$ac_header> |
|
|
2495 | _ACEOF |
|
|
2496 | rm -f conftest.$ac_objext |
|
|
2497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
2498 | (eval $ac_compile) 2>conftest.er1 |
9651 | (eval $ac_link) 2>conftest.er1 |
2499 | ac_status=$? |
9652 | ac_status=$? |
2500 | grep -v '^ *+' conftest.er1 >conftest.err |
9653 | grep -v '^ *+' conftest.er1 >conftest.err |
2501 | rm -f conftest.er1 |
9654 | rm -f conftest.er1 |
2502 | cat conftest.err >&5 |
9655 | cat conftest.err >&5 |
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
… | |
… | |
2506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2507 | (eval $ac_try) 2>&5 |
9660 | (eval $ac_try) 2>&5 |
2508 | ac_status=$? |
9661 | ac_status=$? |
2509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2510 | (exit $ac_status); }; } && |
9663 | (exit $ac_status); }; } && |
2511 | { ac_try='test -s conftest.$ac_objext' |
9664 | { ac_try='test -s conftest$ac_exeext' |
2512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2513 | (eval $ac_try) 2>&5 |
9666 | (eval $ac_try) 2>&5 |
2514 | ac_status=$? |
9667 | ac_status=$? |
2515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2516 | (exit $ac_status); }; }; then |
9669 | (exit $ac_status); }; }; then |
2517 | eval "$as_ac_Header=yes" |
9670 | |
|
|
9671 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9672 | }'` |
|
|
9673 | # Check for a 64-bit object if we didn't find anything. |
|
|
9674 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
9675 | }'`; fi |
2518 | else |
9676 | else |
2519 | echo "$as_me: failed program was:" >&5 |
9677 | echo "$as_me: failed program was:" >&5 |
2520 | sed 's/^/| /' conftest.$ac_ext >&5 |
9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
2521 | |
9679 | |
2522 | eval "$as_ac_Header=no" |
|
|
2523 | fi |
9680 | fi |
2524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9681 | rm -f conftest.err conftest.$ac_objext \ |
|
|
9682 | conftest$ac_exeext conftest.$ac_ext |
|
|
9683 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
9684 | |
|
|
9685 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
9686 | # Warning - without using the other run time loading flags, |
|
|
9687 | # -berok will link without error, but may produce a broken library. |
|
|
9688 | no_undefined_flag_CXX=' ${wl}-bernotok' |
|
|
9689 | allow_undefined_flag_CXX=' ${wl}-berok' |
|
|
9690 | # Exported symbols can be pulled into shared objects from archives |
|
|
9691 | whole_archive_flag_spec_CXX='$convenience' |
|
|
9692 | archive_cmds_need_lc_CXX=yes |
|
|
9693 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
9694 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
9695 | fi |
|
|
9696 | fi |
|
|
9697 | ;; |
|
|
9698 | |
|
|
9699 | beos*) |
|
|
9700 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
9701 | allow_undefined_flag_CXX=unsupported |
|
|
9702 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
9703 | # support --undefined. This deserves some investigation. FIXME |
|
|
9704 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
9705 | else |
|
|
9706 | ld_shlibs_CXX=no |
|
|
9707 | fi |
|
|
9708 | ;; |
|
|
9709 | |
|
|
9710 | chorus*) |
|
|
9711 | case $cc_basename in |
|
|
9712 | *) |
|
|
9713 | # FIXME: insert proper C++ library support |
|
|
9714 | ld_shlibs_CXX=no |
|
|
9715 | ;; |
|
|
9716 | esac |
|
|
9717 | ;; |
|
|
9718 | |
|
|
9719 | cygwin* | mingw* | pw32*) |
|
|
9720 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
|
9721 | # as there is no search path for DLLs. |
|
|
9722 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
|
9723 | allow_undefined_flag_CXX=unsupported |
|
|
9724 | always_export_symbols_CXX=no |
|
|
9725 | enable_shared_with_static_runtimes_CXX=yes |
|
|
9726 | |
|
|
9727 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
9728 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
9729 | # If the export-symbols file already is a .def file (1st line |
|
|
9730 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
9731 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
9732 | cp $export_symbols $output_objdir/$soname.def; |
|
|
9733 | else |
|
|
9734 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
9735 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
9736 | fi~ |
|
|
9737 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
9738 | else |
|
|
9739 | ld_shlibs_CXX=no |
|
|
9740 | fi |
|
|
9741 | ;; |
|
|
9742 | darwin* | rhapsody*) |
|
|
9743 | case $host_os in |
|
|
9744 | rhapsody* | darwin1.[012]) |
|
|
9745 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
|
|
9746 | ;; |
|
|
9747 | *) # Darwin 1.3 on |
|
|
9748 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
9749 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
9750 | else |
|
|
9751 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
9752 | 10.[012]) |
|
|
9753 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
9754 | ;; |
|
|
9755 | 10.*) |
|
|
9756 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
|
|
9757 | ;; |
|
|
9758 | esac |
|
|
9759 | fi |
|
|
9760 | ;; |
|
|
9761 | esac |
|
|
9762 | archive_cmds_need_lc_CXX=no |
|
|
9763 | hardcode_direct_CXX=no |
|
|
9764 | hardcode_automatic_CXX=yes |
|
|
9765 | hardcode_shlibpath_var_CXX=unsupported |
|
|
9766 | whole_archive_flag_spec_CXX='' |
|
|
9767 | link_all_deplibs_CXX=yes |
|
|
9768 | |
|
|
9769 | if test "$GXX" = yes ; then |
|
|
9770 | lt_int_apple_cc_single_mod=no |
|
|
9771 | output_verbose_link_cmd='echo' |
|
|
9772 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
|
|
9773 | lt_int_apple_cc_single_mod=yes |
|
|
9774 | fi |
|
|
9775 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9776 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9777 | else |
|
|
9778 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
9779 | fi |
|
|
9780 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9781 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
9782 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
|
|
9783 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9784 | else |
|
|
9785 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9786 | fi |
|
|
9787 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9788 | else |
|
|
9789 | case $cc_basename in |
|
|
9790 | xlc*) |
|
|
9791 | output_verbose_link_cmd='echo' |
|
|
9792 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
9793 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
9794 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
9795 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9796 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
9797 | ;; |
|
|
9798 | *) |
|
|
9799 | ld_shlibs_CXX=no |
|
|
9800 | ;; |
|
|
9801 | esac |
|
|
9802 | fi |
|
|
9803 | ;; |
|
|
9804 | |
|
|
9805 | dgux*) |
|
|
9806 | case $cc_basename in |
|
|
9807 | ec++*) |
|
|
9808 | # FIXME: insert proper C++ library support |
|
|
9809 | ld_shlibs_CXX=no |
|
|
9810 | ;; |
|
|
9811 | ghcx*) |
|
|
9812 | # Green Hills C++ Compiler |
|
|
9813 | # FIXME: insert proper C++ library support |
|
|
9814 | ld_shlibs_CXX=no |
|
|
9815 | ;; |
|
|
9816 | *) |
|
|
9817 | # FIXME: insert proper C++ library support |
|
|
9818 | ld_shlibs_CXX=no |
|
|
9819 | ;; |
|
|
9820 | esac |
|
|
9821 | ;; |
|
|
9822 | freebsd[12]*) |
|
|
9823 | # C++ shared libraries reported to be fairly broken before switch to ELF |
|
|
9824 | ld_shlibs_CXX=no |
|
|
9825 | ;; |
|
|
9826 | freebsd-elf*) |
|
|
9827 | archive_cmds_need_lc_CXX=no |
|
|
9828 | ;; |
|
|
9829 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
9830 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
|
9831 | # conventions |
|
|
9832 | ld_shlibs_CXX=yes |
|
|
9833 | ;; |
|
|
9834 | gnu*) |
|
|
9835 | ;; |
|
|
9836 | hpux9*) |
|
|
9837 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9838 | hardcode_libdir_separator_CXX=: |
|
|
9839 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9840 | hardcode_direct_CXX=yes |
|
|
9841 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9842 | # but as the default |
|
|
9843 | # location of the library. |
|
|
9844 | |
|
|
9845 | case $cc_basename in |
|
|
9846 | CC*) |
|
|
9847 | # FIXME: insert proper C++ library support |
|
|
9848 | ld_shlibs_CXX=no |
|
|
9849 | ;; |
|
|
9850 | aCC*) |
|
|
9851 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
9852 | # Commands to make compiler produce verbose output that lists |
|
|
9853 | # what "hidden" libraries, object files and flags are used when |
|
|
9854 | # linking a shared library. |
|
|
9855 | # |
|
|
9856 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9857 | # explicitly linking system object files so we need to strip them |
|
|
9858 | # from the output so that they don't get included in the library |
|
|
9859 | # dependencies. |
|
|
9860 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9861 | ;; |
|
|
9862 | *) |
|
|
9863 | if test "$GXX" = yes; then |
|
|
9864 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
9865 | else |
|
|
9866 | # FIXME: insert proper C++ library support |
|
|
9867 | ld_shlibs_CXX=no |
|
|
9868 | fi |
|
|
9869 | ;; |
|
|
9870 | esac |
|
|
9871 | ;; |
|
|
9872 | hpux10*|hpux11*) |
|
|
9873 | if test $with_gnu_ld = no; then |
|
|
9874 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
|
9875 | hardcode_libdir_separator_CXX=: |
|
|
9876 | |
|
|
9877 | case $host_cpu in |
|
|
9878 | hppa*64*|ia64*) |
|
|
9879 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
|
|
9880 | ;; |
|
|
9881 | *) |
|
|
9882 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9883 | ;; |
|
|
9884 | esac |
|
|
9885 | fi |
|
|
9886 | case $host_cpu in |
|
|
9887 | hppa*64*|ia64*) |
|
|
9888 | hardcode_direct_CXX=no |
|
|
9889 | hardcode_shlibpath_var_CXX=no |
|
|
9890 | ;; |
|
|
9891 | *) |
|
|
9892 | hardcode_direct_CXX=yes |
|
|
9893 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
|
9894 | # but as the default |
|
|
9895 | # location of the library. |
|
|
9896 | ;; |
|
|
9897 | esac |
|
|
9898 | |
|
|
9899 | case $cc_basename in |
|
|
9900 | CC*) |
|
|
9901 | # FIXME: insert proper C++ library support |
|
|
9902 | ld_shlibs_CXX=no |
|
|
9903 | ;; |
|
|
9904 | aCC*) |
|
|
9905 | case $host_cpu in |
|
|
9906 | hppa*64*) |
|
|
9907 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9908 | ;; |
|
|
9909 | ia64*) |
|
|
9910 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9911 | ;; |
|
|
9912 | *) |
|
|
9913 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9914 | ;; |
|
|
9915 | esac |
|
|
9916 | # Commands to make compiler produce verbose output that lists |
|
|
9917 | # what "hidden" libraries, object files and flags are used when |
|
|
9918 | # linking a shared library. |
|
|
9919 | # |
|
|
9920 | # There doesn't appear to be a way to prevent this compiler from |
|
|
9921 | # explicitly linking system object files so we need to strip them |
|
|
9922 | # from the output so that they don't get included in the library |
|
|
9923 | # dependencies. |
|
|
9924 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
9925 | ;; |
|
|
9926 | *) |
|
|
9927 | if test "$GXX" = yes; then |
|
|
9928 | if test $with_gnu_ld = no; then |
|
|
9929 | case $host_cpu in |
|
|
9930 | hppa*64*) |
|
|
9931 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9932 | ;; |
|
|
9933 | ia64*) |
|
|
9934 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9935 | ;; |
|
|
9936 | *) |
|
|
9937 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
9938 | ;; |
|
|
9939 | esac |
|
|
9940 | fi |
|
|
9941 | else |
|
|
9942 | # FIXME: insert proper C++ library support |
|
|
9943 | ld_shlibs_CXX=no |
2525 | fi |
9944 | fi |
2526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9945 | ;; |
2527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
9946 | esac |
2528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9947 | ;; |
2529 | cat >>confdefs.h <<_ACEOF |
9948 | interix3*) |
2530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
9949 | hardcode_direct_CXX=no |
|
|
9950 | hardcode_shlibpath_var_CXX=no |
|
|
9951 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
9952 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
9953 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
9954 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
9955 | # default) and relocated if they conflict, which is a slow very memory |
|
|
9956 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
9957 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
9958 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
9959 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
9960 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
9961 | ;; |
|
|
9962 | irix5* | irix6*) |
|
|
9963 | case $cc_basename in |
|
|
9964 | CC*) |
|
|
9965 | # SGI C++ |
|
|
9966 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
9967 | |
|
|
9968 | # Archives containing C++ object files must be created using |
|
|
9969 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
|
9970 | # necessary to make sure instantiated templates are included |
|
|
9971 | # in the archive. |
|
|
9972 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
|
9973 | ;; |
|
|
9974 | *) |
|
|
9975 | if test "$GXX" = yes; then |
|
|
9976 | if test "$with_gnu_ld" = no; then |
|
|
9977 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
9978 | else |
|
|
9979 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
|
|
9980 | fi |
|
|
9981 | fi |
|
|
9982 | link_all_deplibs_CXX=yes |
|
|
9983 | ;; |
|
|
9984 | esac |
|
|
9985 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
9986 | hardcode_libdir_separator_CXX=: |
|
|
9987 | ;; |
|
|
9988 | linux*) |
|
|
9989 | case $cc_basename in |
|
|
9990 | KCC*) |
|
|
9991 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
9992 | |
|
|
9993 | # KCC will only create a shared library if the output file |
|
|
9994 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
9995 | # to its proper name (with version) after linking. |
|
|
9996 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
9997 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
|
|
9998 | # Commands to make compiler produce verbose output that lists |
|
|
9999 | # what "hidden" libraries, object files and flags are used when |
|
|
10000 | # linking a shared library. |
|
|
10001 | # |
|
|
10002 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10003 | # explicitly linking system object files so we need to strip them |
|
|
10004 | # from the output so that they don't get included in the library |
|
|
10005 | # dependencies. |
|
|
10006 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10007 | |
|
|
10008 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
|
|
10009 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10010 | |
|
|
10011 | # Archives containing C++ object files must be created using |
|
|
10012 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
10013 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
10014 | ;; |
|
|
10015 | icpc*) |
|
|
10016 | # Intel C++ |
|
|
10017 | with_gnu_ld=yes |
|
|
10018 | # version 8.0 and above of icpc choke on multiply defined symbols |
|
|
10019 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
|
|
10020 | # earlier do not add the objects themselves. |
|
|
10021 | case `$CC -V 2>&1` in |
|
|
10022 | *"Version 7."*) |
|
|
10023 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10024 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
10025 | ;; |
|
|
10026 | *) # Version 8.0 or newer |
|
|
10027 | tmp_idyn= |
|
|
10028 | case $host_cpu in |
|
|
10029 | ia64*) tmp_idyn=' -i_dynamic';; |
|
|
10030 | esac |
|
|
10031 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10032 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
10033 | ;; |
|
|
10034 | esac |
|
|
10035 | archive_cmds_need_lc_CXX=no |
|
|
10036 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10037 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10038 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
|
10039 | ;; |
|
|
10040 | pgCC*) |
|
|
10041 | # Portland Group C++ compiler |
|
|
10042 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
|
10043 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
|
|
10044 | |
|
|
10045 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
|
10046 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
|
10047 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
10048 | ;; |
|
|
10049 | cxx*) |
|
|
10050 | # Compaq C++ |
|
|
10051 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
10052 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
|
|
10053 | |
|
|
10054 | runpath_var=LD_RUN_PATH |
|
|
10055 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
10056 | hardcode_libdir_separator_CXX=: |
|
|
10057 | |
|
|
10058 | # Commands to make compiler produce verbose output that lists |
|
|
10059 | # what "hidden" libraries, object files and flags are used when |
|
|
10060 | # linking a shared library. |
|
|
10061 | # |
|
|
10062 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10063 | # explicitly linking system object files so we need to strip them |
|
|
10064 | # from the output so that they don't get included in the library |
|
|
10065 | # dependencies. |
|
|
10066 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10067 | ;; |
|
|
10068 | esac |
|
|
10069 | ;; |
|
|
10070 | lynxos*) |
|
|
10071 | # FIXME: insert proper C++ library support |
|
|
10072 | ld_shlibs_CXX=no |
|
|
10073 | ;; |
|
|
10074 | m88k*) |
|
|
10075 | # FIXME: insert proper C++ library support |
|
|
10076 | ld_shlibs_CXX=no |
|
|
10077 | ;; |
|
|
10078 | mvs*) |
|
|
10079 | case $cc_basename in |
|
|
10080 | cxx*) |
|
|
10081 | # FIXME: insert proper C++ library support |
|
|
10082 | ld_shlibs_CXX=no |
|
|
10083 | ;; |
|
|
10084 | *) |
|
|
10085 | # FIXME: insert proper C++ library support |
|
|
10086 | ld_shlibs_CXX=no |
|
|
10087 | ;; |
|
|
10088 | esac |
|
|
10089 | ;; |
|
|
10090 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
10091 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
10092 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
|
10093 | wlarc= |
|
|
10094 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
10095 | hardcode_direct_CXX=yes |
|
|
10096 | hardcode_shlibpath_var_CXX=no |
|
|
10097 | fi |
|
|
10098 | # Workaround some broken pre-1.5 toolchains |
|
|
10099 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
|
10100 | ;; |
|
|
10101 | openbsd2*) |
|
|
10102 | # C++ shared libraries are fairly broken |
|
|
10103 | ld_shlibs_CXX=no |
|
|
10104 | ;; |
|
|
10105 | openbsd*) |
|
|
10106 | hardcode_direct_CXX=yes |
|
|
10107 | hardcode_shlibpath_var_CXX=no |
|
|
10108 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
|
10109 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10110 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
10111 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
|
10112 | export_dynamic_flag_spec_CXX='${wl}-E' |
|
|
10113 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
10114 | fi |
|
|
10115 | output_verbose_link_cmd='echo' |
|
|
10116 | ;; |
|
|
10117 | osf3*) |
|
|
10118 | case $cc_basename in |
|
|
10119 | KCC*) |
|
|
10120 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
10121 | |
|
|
10122 | # KCC will only create a shared library if the output file |
|
|
10123 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
10124 | # to its proper name (with version) after linking. |
|
|
10125 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
10126 | |
|
|
10127 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10128 | hardcode_libdir_separator_CXX=: |
|
|
10129 | |
|
|
10130 | # Archives containing C++ object files must be created using |
|
|
10131 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
|
10132 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
|
10133 | |
|
|
10134 | ;; |
|
|
10135 | RCC*) |
|
|
10136 | # Rational C++ 2.4.1 |
|
|
10137 | # FIXME: insert proper C++ library support |
|
|
10138 | ld_shlibs_CXX=no |
|
|
10139 | ;; |
|
|
10140 | cxx*) |
|
|
10141 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10142 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
10143 | |
|
|
10144 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10145 | hardcode_libdir_separator_CXX=: |
|
|
10146 | |
|
|
10147 | # Commands to make compiler produce verbose output that lists |
|
|
10148 | # what "hidden" libraries, object files and flags are used when |
|
|
10149 | # linking a shared library. |
|
|
10150 | # |
|
|
10151 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10152 | # explicitly linking system object files so we need to strip them |
|
|
10153 | # from the output so that they don't get included in the library |
|
|
10154 | # dependencies. |
|
|
10155 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10156 | ;; |
|
|
10157 | *) |
|
|
10158 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10159 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10160 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
10161 | |
|
|
10162 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10163 | hardcode_libdir_separator_CXX=: |
|
|
10164 | |
|
|
10165 | # Commands to make compiler produce verbose output that lists |
|
|
10166 | # what "hidden" libraries, object files and flags are used when |
|
|
10167 | # linking a shared library. |
|
|
10168 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10169 | |
|
|
10170 | else |
|
|
10171 | # FIXME: insert proper C++ library support |
|
|
10172 | ld_shlibs_CXX=no |
|
|
10173 | fi |
|
|
10174 | ;; |
|
|
10175 | esac |
|
|
10176 | ;; |
|
|
10177 | osf4* | osf5*) |
|
|
10178 | case $cc_basename in |
|
|
10179 | KCC*) |
|
|
10180 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
|
|
10181 | |
|
|
10182 | # KCC will only create a shared library if the output file |
|
|
10183 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
|
10184 | # to its proper name (with version) after linking. |
|
|
10185 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
|
10186 | |
|
|
10187 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
|
10188 | hardcode_libdir_separator_CXX=: |
|
|
10189 | |
|
|
10190 | # Archives containing C++ object files must be created using |
|
|
10191 | # the KAI C++ compiler. |
|
|
10192 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
|
|
10193 | ;; |
|
|
10194 | RCC*) |
|
|
10195 | # Rational C++ 2.4.1 |
|
|
10196 | # FIXME: insert proper C++ library support |
|
|
10197 | ld_shlibs_CXX=no |
|
|
10198 | ;; |
|
|
10199 | cxx*) |
|
|
10200 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
|
10201 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
10202 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
|
10203 | echo "-hidden">> $lib.exp~ |
|
|
10204 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
|
|
10205 | $rm $lib.exp' |
|
|
10206 | |
|
|
10207 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
|
10208 | hardcode_libdir_separator_CXX=: |
|
|
10209 | |
|
|
10210 | # Commands to make compiler produce verbose output that lists |
|
|
10211 | # what "hidden" libraries, object files and flags are used when |
|
|
10212 | # linking a shared library. |
|
|
10213 | # |
|
|
10214 | # There doesn't appear to be a way to prevent this compiler from |
|
|
10215 | # explicitly linking system object files so we need to strip them |
|
|
10216 | # from the output so that they don't get included in the library |
|
|
10217 | # dependencies. |
|
|
10218 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
|
|
10219 | ;; |
|
|
10220 | *) |
|
|
10221 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10222 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
|
10223 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
10224 | |
|
|
10225 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
|
10226 | hardcode_libdir_separator_CXX=: |
|
|
10227 | |
|
|
10228 | # Commands to make compiler produce verbose output that lists |
|
|
10229 | # what "hidden" libraries, object files and flags are used when |
|
|
10230 | # linking a shared library. |
|
|
10231 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
|
|
10232 | |
|
|
10233 | else |
|
|
10234 | # FIXME: insert proper C++ library support |
|
|
10235 | ld_shlibs_CXX=no |
|
|
10236 | fi |
|
|
10237 | ;; |
|
|
10238 | esac |
|
|
10239 | ;; |
|
|
10240 | psos*) |
|
|
10241 | # FIXME: insert proper C++ library support |
|
|
10242 | ld_shlibs_CXX=no |
|
|
10243 | ;; |
|
|
10244 | sunos4*) |
|
|
10245 | case $cc_basename in |
|
|
10246 | CC*) |
|
|
10247 | # Sun C++ 4.x |
|
|
10248 | # FIXME: insert proper C++ library support |
|
|
10249 | ld_shlibs_CXX=no |
|
|
10250 | ;; |
|
|
10251 | lcc*) |
|
|
10252 | # Lucid |
|
|
10253 | # FIXME: insert proper C++ library support |
|
|
10254 | ld_shlibs_CXX=no |
|
|
10255 | ;; |
|
|
10256 | *) |
|
|
10257 | # FIXME: insert proper C++ library support |
|
|
10258 | ld_shlibs_CXX=no |
|
|
10259 | ;; |
|
|
10260 | esac |
|
|
10261 | ;; |
|
|
10262 | solaris*) |
|
|
10263 | case $cc_basename in |
|
|
10264 | CC*) |
|
|
10265 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10266 | archive_cmds_need_lc_CXX=yes |
|
|
10267 | no_undefined_flag_CXX=' -zdefs' |
|
|
10268 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
|
10269 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10270 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10271 | |
|
|
10272 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
|
10273 | hardcode_shlibpath_var_CXX=no |
|
|
10274 | case $host_os in |
|
|
10275 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
10276 | *) |
|
|
10277 | # The C++ compiler is used as linker so we must use $wl |
|
|
10278 | # flag to pass the commands to the underlying system |
|
|
10279 | # linker. We must also pass each convience library through |
|
|
10280 | # to the system linker between allextract/defaultextract. |
|
|
10281 | # The C++ compiler will combine linker options so we |
|
|
10282 | # cannot just pass the convience library names through |
|
|
10283 | # without $wl. |
|
|
10284 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
10285 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
|
|
10286 | ;; |
|
|
10287 | esac |
|
|
10288 | link_all_deplibs_CXX=yes |
|
|
10289 | |
|
|
10290 | output_verbose_link_cmd='echo' |
|
|
10291 | |
|
|
10292 | # Archives containing C++ object files must be created using |
|
|
10293 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
|
10294 | # necessary to make sure instantiated templates are included |
|
|
10295 | # in the archive. |
|
|
10296 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
|
10297 | ;; |
|
|
10298 | gcx*) |
|
|
10299 | # Green Hills C++ Compiler |
|
|
10300 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10301 | |
|
|
10302 | # The C++ compiler must be used to create the archive. |
|
|
10303 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
|
10304 | ;; |
|
|
10305 | *) |
|
|
10306 | # GNU C++ compiler with Solaris linker |
|
|
10307 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
|
10308 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
|
10309 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
|
|
10310 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10311 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10312 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10313 | |
|
|
10314 | # Commands to make compiler produce verbose output that lists |
|
|
10315 | # what "hidden" libraries, object files and flags are used when |
|
|
10316 | # linking a shared library. |
|
|
10317 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10318 | else |
|
|
10319 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
|
10320 | # platform. |
|
|
10321 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
|
10322 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
10323 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
|
|
10324 | |
|
|
10325 | # Commands to make compiler produce verbose output that lists |
|
|
10326 | # what "hidden" libraries, object files and flags are used when |
|
|
10327 | # linking a shared library. |
|
|
10328 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
|
|
10329 | fi |
|
|
10330 | |
|
|
10331 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
|
10332 | fi |
|
|
10333 | ;; |
|
|
10334 | esac |
|
|
10335 | ;; |
|
|
10336 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
|
10337 | no_undefined_flag_CXX='${wl}-z,text' |
|
|
10338 | archive_cmds_need_lc_CXX=no |
|
|
10339 | hardcode_shlibpath_var_CXX=no |
|
|
10340 | runpath_var='LD_RUN_PATH' |
|
|
10341 | |
|
|
10342 | case $cc_basename in |
|
|
10343 | CC*) |
|
|
10344 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10345 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10346 | ;; |
|
|
10347 | *) |
|
|
10348 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10349 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10350 | ;; |
|
|
10351 | esac |
|
|
10352 | ;; |
|
|
10353 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
10354 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
10355 | # link with -lc, and that would cause any symbols used from libc to |
|
|
10356 | # always be unresolved, which means just about no library would |
|
|
10357 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
10358 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
10359 | # as -z defs. |
|
|
10360 | # For security reasons, it is highly recommended that you always |
|
|
10361 | # use absolute paths for naming shared libraries, and exclude the |
|
|
10362 | # DT_RUNPATH tag from executables and libraries. But doing so |
|
|
10363 | # requires that you compile everything twice, which is a pain. |
|
|
10364 | # So that behaviour is only enabled if SCOABSPATH is set to a |
|
|
10365 | # non-empty value in the environment. Most likely only useful for |
|
|
10366 | # creating official distributions of packages. |
|
|
10367 | # This is a hack until libtool officially supports absolute path |
|
|
10368 | # names for shared libraries. |
|
|
10369 | no_undefined_flag_CXX='${wl}-z,text' |
|
|
10370 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
|
10371 | archive_cmds_need_lc_CXX=no |
|
|
10372 | hardcode_shlibpath_var_CXX=no |
|
|
10373 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
10374 | hardcode_libdir_separator_CXX=':' |
|
|
10375 | link_all_deplibs_CXX=yes |
|
|
10376 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
|
10377 | runpath_var='LD_RUN_PATH' |
|
|
10378 | |
|
|
10379 | case $cc_basename in |
|
|
10380 | CC*) |
|
|
10381 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10382 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10383 | ;; |
|
|
10384 | *) |
|
|
10385 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10386 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
10387 | ;; |
|
|
10388 | esac |
|
|
10389 | ;; |
|
|
10390 | tandem*) |
|
|
10391 | case $cc_basename in |
|
|
10392 | NCC*) |
|
|
10393 | # NonStop-UX NCC 3.20 |
|
|
10394 | # FIXME: insert proper C++ library support |
|
|
10395 | ld_shlibs_CXX=no |
|
|
10396 | ;; |
|
|
10397 | *) |
|
|
10398 | # FIXME: insert proper C++ library support |
|
|
10399 | ld_shlibs_CXX=no |
|
|
10400 | ;; |
|
|
10401 | esac |
|
|
10402 | ;; |
|
|
10403 | vxworks*) |
|
|
10404 | # FIXME: insert proper C++ library support |
|
|
10405 | ld_shlibs_CXX=no |
|
|
10406 | ;; |
|
|
10407 | *) |
|
|
10408 | # FIXME: insert proper C++ library support |
|
|
10409 | ld_shlibs_CXX=no |
|
|
10410 | ;; |
|
|
10411 | esac |
|
|
10412 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
10413 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
10414 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
10415 | |
|
|
10416 | GCC_CXX="$GXX" |
|
|
10417 | LD_CXX="$LD" |
|
|
10418 | |
|
|
10419 | |
|
|
10420 | cat > conftest.$ac_ext <<EOF |
|
|
10421 | class Foo |
|
|
10422 | { |
|
|
10423 | public: |
|
|
10424 | Foo (void) { a = 0; } |
|
|
10425 | private: |
|
|
10426 | int a; |
|
|
10427 | }; |
|
|
10428 | EOF |
|
|
10429 | |
|
|
10430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10431 | (eval $ac_compile) 2>&5 |
|
|
10432 | ac_status=$? |
|
|
10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10434 | (exit $ac_status); }; then |
|
|
10435 | # Parse the compiler output and extract the necessary |
|
|
10436 | # objects, libraries and library flags. |
|
|
10437 | |
|
|
10438 | # Sentinel used to keep track of whether or not we are before |
|
|
10439 | # the conftest object file. |
|
|
10440 | pre_test_object_deps_done=no |
|
|
10441 | |
|
|
10442 | # The `*' in the case matches for architectures that use `case' in |
|
|
10443 | # $output_verbose_cmd can trigger glob expansion during the loop |
|
|
10444 | # eval without this substitution. |
|
|
10445 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
|
|
10446 | |
|
|
10447 | for p in `eval $output_verbose_link_cmd`; do |
|
|
10448 | case $p in |
|
|
10449 | |
|
|
10450 | -L* | -R* | -l*) |
|
|
10451 | # Some compilers place space between "-{L,R}" and the path. |
|
|
10452 | # Remove the space. |
|
|
10453 | if test $p = "-L" \ |
|
|
10454 | || test $p = "-R"; then |
|
|
10455 | prev=$p |
|
|
10456 | continue |
|
|
10457 | else |
|
|
10458 | prev= |
|
|
10459 | fi |
|
|
10460 | |
|
|
10461 | if test "$pre_test_object_deps_done" = no; then |
|
|
10462 | case $p in |
|
|
10463 | -L* | -R*) |
|
|
10464 | # Internal compiler library paths should come after those |
|
|
10465 | # provided the user. The postdeps already come after the |
|
|
10466 | # user supplied libs so there is no need to process them. |
|
|
10467 | if test -z "$compiler_lib_search_path_CXX"; then |
|
|
10468 | compiler_lib_search_path_CXX="${prev}${p}" |
|
|
10469 | else |
|
|
10470 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
|
10471 | fi |
|
|
10472 | ;; |
|
|
10473 | # The "-l" case would never come before the object being |
|
|
10474 | # linked, so don't bother handling this case. |
|
|
10475 | esac |
|
|
10476 | else |
|
|
10477 | if test -z "$postdeps_CXX"; then |
|
|
10478 | postdeps_CXX="${prev}${p}" |
|
|
10479 | else |
|
|
10480 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
|
10481 | fi |
|
|
10482 | fi |
|
|
10483 | ;; |
|
|
10484 | |
|
|
10485 | *.$objext) |
|
|
10486 | # This assumes that the test object file only shows up |
|
|
10487 | # once in the compiler output. |
|
|
10488 | if test "$p" = "conftest.$objext"; then |
|
|
10489 | pre_test_object_deps_done=yes |
|
|
10490 | continue |
|
|
10491 | fi |
|
|
10492 | |
|
|
10493 | if test "$pre_test_object_deps_done" = no; then |
|
|
10494 | if test -z "$predep_objects_CXX"; then |
|
|
10495 | predep_objects_CXX="$p" |
|
|
10496 | else |
|
|
10497 | predep_objects_CXX="$predep_objects_CXX $p" |
|
|
10498 | fi |
|
|
10499 | else |
|
|
10500 | if test -z "$postdep_objects_CXX"; then |
|
|
10501 | postdep_objects_CXX="$p" |
|
|
10502 | else |
|
|
10503 | postdep_objects_CXX="$postdep_objects_CXX $p" |
|
|
10504 | fi |
|
|
10505 | fi |
|
|
10506 | ;; |
|
|
10507 | |
|
|
10508 | *) ;; # Ignore the rest. |
|
|
10509 | |
|
|
10510 | esac |
|
|
10511 | done |
|
|
10512 | |
|
|
10513 | # Clean up. |
|
|
10514 | rm -f a.out a.exe |
|
|
10515 | else |
|
|
10516 | echo "libtool.m4: error: problem compiling CXX test program" |
|
|
10517 | fi |
|
|
10518 | |
|
|
10519 | $rm -f confest.$objext |
|
|
10520 | |
|
|
10521 | # PORTME: override above test on systems where it is broken |
|
|
10522 | case $host_os in |
|
|
10523 | interix3*) |
|
|
10524 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
|
10525 | # hack all around it, let's just trust "g++" to DTRT. |
|
|
10526 | predep_objects_CXX= |
|
|
10527 | postdep_objects_CXX= |
|
|
10528 | postdeps_CXX= |
|
|
10529 | ;; |
|
|
10530 | |
|
|
10531 | solaris*) |
|
|
10532 | case $cc_basename in |
|
|
10533 | CC*) |
|
|
10534 | # Adding this requires a known-good setup of shared libraries for |
|
|
10535 | # Sun compiler versions before 5.6, else PIC objects from an old |
|
|
10536 | # archive will be linked into the output, leading to subtle bugs. |
|
|
10537 | postdeps_CXX='-lCstd -lCrun' |
|
|
10538 | ;; |
|
|
10539 | esac |
|
|
10540 | ;; |
|
|
10541 | esac |
|
|
10542 | |
|
|
10543 | |
|
|
10544 | case " $postdeps_CXX " in |
|
|
10545 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
|
10546 | esac |
|
|
10547 | |
|
|
10548 | lt_prog_compiler_wl_CXX= |
|
|
10549 | lt_prog_compiler_pic_CXX= |
|
|
10550 | lt_prog_compiler_static_CXX= |
|
|
10551 | |
|
|
10552 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
10553 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
10554 | |
|
|
10555 | # C++ specific cases for pic, static, wl, etc. |
|
|
10556 | if test "$GXX" = yes; then |
|
|
10557 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10558 | lt_prog_compiler_static_CXX='-static' |
|
|
10559 | |
|
|
10560 | case $host_os in |
|
|
10561 | aix*) |
|
|
10562 | # All AIX code is PIC. |
|
|
10563 | if test "$host_cpu" = ia64; then |
|
|
10564 | # AIX 5 now supports IA64 processor |
|
|
10565 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10566 | fi |
|
|
10567 | ;; |
|
|
10568 | amigaos*) |
|
|
10569 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
10570 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
10571 | # like `-m68040'. |
|
|
10572 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
|
10573 | ;; |
|
|
10574 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
10575 | # PIC is the default for these OSes. |
|
|
10576 | ;; |
|
|
10577 | mingw* | os2* | pw32*) |
|
|
10578 | # This hack is so that the source file can tell whether it is being |
|
|
10579 | # built for inclusion in a dll (and should export symbols for example). |
|
|
10580 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
|
10581 | ;; |
|
|
10582 | darwin* | rhapsody*) |
|
|
10583 | # PIC is the default on this platform |
|
|
10584 | # Common symbols not allowed in MH_DYLIB files |
|
|
10585 | lt_prog_compiler_pic_CXX='-fno-common' |
|
|
10586 | ;; |
|
|
10587 | *djgpp*) |
|
|
10588 | # DJGPP does not support shared libraries at all |
|
|
10589 | lt_prog_compiler_pic_CXX= |
|
|
10590 | ;; |
|
|
10591 | interix3*) |
|
|
10592 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
10593 | # Instead, we relocate shared libraries at runtime. |
|
|
10594 | ;; |
|
|
10595 | sysv4*MP*) |
|
|
10596 | if test -d /usr/nec; then |
|
|
10597 | lt_prog_compiler_pic_CXX=-Kconform_pic |
|
|
10598 | fi |
|
|
10599 | ;; |
|
|
10600 | hpux*) |
|
|
10601 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
10602 | # not for PA HP-UX. |
|
|
10603 | case $host_cpu in |
|
|
10604 | hppa*64*|ia64*) |
|
|
10605 | ;; |
|
|
10606 | *) |
|
|
10607 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10608 | ;; |
|
|
10609 | esac |
|
|
10610 | ;; |
|
|
10611 | *) |
|
|
10612 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10613 | ;; |
|
|
10614 | esac |
|
|
10615 | else |
|
|
10616 | case $host_os in |
|
|
10617 | aix4* | aix5*) |
|
|
10618 | # All AIX code is PIC. |
|
|
10619 | if test "$host_cpu" = ia64; then |
|
|
10620 | # AIX 5 now supports IA64 processor |
|
|
10621 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10622 | else |
|
|
10623 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
|
10624 | fi |
|
|
10625 | ;; |
|
|
10626 | chorus*) |
|
|
10627 | case $cc_basename in |
|
|
10628 | cxch68*) |
|
|
10629 | # Green Hills C++ Compiler |
|
|
10630 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
|
|
10631 | ;; |
|
|
10632 | esac |
|
|
10633 | ;; |
|
|
10634 | darwin*) |
|
|
10635 | # PIC is the default on this platform |
|
|
10636 | # Common symbols not allowed in MH_DYLIB files |
|
|
10637 | case $cc_basename in |
|
|
10638 | xlc*) |
|
|
10639 | lt_prog_compiler_pic_CXX='-qnocommon' |
|
|
10640 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10641 | ;; |
|
|
10642 | esac |
|
|
10643 | ;; |
|
|
10644 | dgux*) |
|
|
10645 | case $cc_basename in |
|
|
10646 | ec++*) |
|
|
10647 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10648 | ;; |
|
|
10649 | ghcx*) |
|
|
10650 | # Green Hills C++ Compiler |
|
|
10651 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10652 | ;; |
|
|
10653 | *) |
|
|
10654 | ;; |
|
|
10655 | esac |
|
|
10656 | ;; |
|
|
10657 | freebsd* | kfreebsd*-gnu | dragonfly*) |
|
|
10658 | # FreeBSD uses GNU C++ |
|
|
10659 | ;; |
|
|
10660 | hpux9* | hpux10* | hpux11*) |
|
|
10661 | case $cc_basename in |
|
|
10662 | CC*) |
|
|
10663 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10664 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
|
10665 | if test "$host_cpu" != ia64; then |
|
|
10666 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10667 | fi |
|
|
10668 | ;; |
|
|
10669 | aCC*) |
|
|
10670 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10671 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
|
10672 | case $host_cpu in |
|
|
10673 | hppa*64*|ia64*) |
|
|
10674 | # +Z the default |
|
|
10675 | ;; |
|
|
10676 | *) |
|
|
10677 | lt_prog_compiler_pic_CXX='+Z' |
|
|
10678 | ;; |
|
|
10679 | esac |
|
|
10680 | ;; |
|
|
10681 | *) |
|
|
10682 | ;; |
|
|
10683 | esac |
|
|
10684 | ;; |
|
|
10685 | interix*) |
|
|
10686 | # This is c89, which is MS Visual C++ (no shared libs) |
|
|
10687 | # Anyone wants to do a port? |
|
|
10688 | ;; |
|
|
10689 | irix5* | irix6* | nonstopux*) |
|
|
10690 | case $cc_basename in |
|
|
10691 | CC*) |
|
|
10692 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10693 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10694 | # CC pic flag -KPIC is the default. |
|
|
10695 | ;; |
|
|
10696 | *) |
|
|
10697 | ;; |
|
|
10698 | esac |
|
|
10699 | ;; |
|
|
10700 | linux*) |
|
|
10701 | case $cc_basename in |
|
|
10702 | KCC*) |
|
|
10703 | # KAI C++ Compiler |
|
|
10704 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10705 | lt_prog_compiler_pic_CXX='-fPIC' |
|
|
10706 | ;; |
|
|
10707 | icpc* | ecpc*) |
|
|
10708 | # Intel C++ |
|
|
10709 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10710 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10711 | lt_prog_compiler_static_CXX='-static' |
|
|
10712 | ;; |
|
|
10713 | pgCC*) |
|
|
10714 | # Portland Group C++ compiler. |
|
|
10715 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10716 | lt_prog_compiler_pic_CXX='-fpic' |
|
|
10717 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10718 | ;; |
|
|
10719 | cxx*) |
|
|
10720 | # Compaq C++ |
|
|
10721 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10722 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10723 | lt_prog_compiler_pic_CXX= |
|
|
10724 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10725 | ;; |
|
|
10726 | *) |
|
|
10727 | ;; |
|
|
10728 | esac |
|
|
10729 | ;; |
|
|
10730 | lynxos*) |
|
|
10731 | ;; |
|
|
10732 | m88k*) |
|
|
10733 | ;; |
|
|
10734 | mvs*) |
|
|
10735 | case $cc_basename in |
|
|
10736 | cxx*) |
|
|
10737 | lt_prog_compiler_pic_CXX='-W c,exportall' |
|
|
10738 | ;; |
|
|
10739 | *) |
|
|
10740 | ;; |
|
|
10741 | esac |
|
|
10742 | ;; |
|
|
10743 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
10744 | ;; |
|
|
10745 | osf3* | osf4* | osf5*) |
|
|
10746 | case $cc_basename in |
|
|
10747 | KCC*) |
|
|
10748 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
|
10749 | ;; |
|
|
10750 | RCC*) |
|
|
10751 | # Rational C++ 2.4.1 |
|
|
10752 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10753 | ;; |
|
|
10754 | cxx*) |
|
|
10755 | # Digital/Compaq C++ |
|
|
10756 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10757 | # Make sure the PIC flag is empty. It appears that all Alpha |
|
|
10758 | # Linux and Compaq Tru64 Unix objects are PIC. |
|
|
10759 | lt_prog_compiler_pic_CXX= |
|
|
10760 | lt_prog_compiler_static_CXX='-non_shared' |
|
|
10761 | ;; |
|
|
10762 | *) |
|
|
10763 | ;; |
|
|
10764 | esac |
|
|
10765 | ;; |
|
|
10766 | psos*) |
|
|
10767 | ;; |
|
|
10768 | solaris*) |
|
|
10769 | case $cc_basename in |
|
|
10770 | CC*) |
|
|
10771 | # Sun C++ 4.2, 5.x and Centerline C++ |
|
|
10772 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10773 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10774 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
|
10775 | ;; |
|
|
10776 | gcx*) |
|
|
10777 | # Green Hills C++ Compiler |
|
|
10778 | lt_prog_compiler_pic_CXX='-PIC' |
|
|
10779 | ;; |
|
|
10780 | *) |
|
|
10781 | ;; |
|
|
10782 | esac |
|
|
10783 | ;; |
|
|
10784 | sunos4*) |
|
|
10785 | case $cc_basename in |
|
|
10786 | CC*) |
|
|
10787 | # Sun C++ 4.x |
|
|
10788 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10789 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10790 | ;; |
|
|
10791 | lcc*) |
|
|
10792 | # Lucid |
|
|
10793 | lt_prog_compiler_pic_CXX='-pic' |
|
|
10794 | ;; |
|
|
10795 | *) |
|
|
10796 | ;; |
|
|
10797 | esac |
|
|
10798 | ;; |
|
|
10799 | tandem*) |
|
|
10800 | case $cc_basename in |
|
|
10801 | NCC*) |
|
|
10802 | # NonStop-UX NCC 3.20 |
|
|
10803 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10804 | ;; |
|
|
10805 | *) |
|
|
10806 | ;; |
|
|
10807 | esac |
|
|
10808 | ;; |
|
|
10809 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
10810 | case $cc_basename in |
|
|
10811 | CC*) |
|
|
10812 | lt_prog_compiler_wl_CXX='-Wl,' |
|
|
10813 | lt_prog_compiler_pic_CXX='-KPIC' |
|
|
10814 | lt_prog_compiler_static_CXX='-Bstatic' |
|
|
10815 | ;; |
|
|
10816 | esac |
|
|
10817 | ;; |
|
|
10818 | vxworks*) |
|
|
10819 | ;; |
|
|
10820 | *) |
|
|
10821 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10822 | ;; |
|
|
10823 | esac |
|
|
10824 | fi |
|
|
10825 | |
|
|
10826 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
|
|
10827 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 |
|
|
10828 | |
|
|
10829 | # |
|
|
10830 | # Check to make sure the PIC flag actually works. |
|
|
10831 | # |
|
|
10832 | if test -n "$lt_prog_compiler_pic_CXX"; then |
|
|
10833 | |
|
|
10834 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
|
10835 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 |
|
|
10836 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
|
|
10837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10838 | else |
|
|
10839 | lt_prog_compiler_pic_works_CXX=no |
|
|
10840 | ac_outfile=conftest.$ac_objext |
|
|
10841 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10842 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10843 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10844 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10845 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10846 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10847 | # The option is referenced via a variable to avoid confusing sed. |
|
|
10848 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10849 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
10850 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10851 | -e 's:$: $lt_compiler_flag:'` |
|
|
10852 | (eval echo "\"\$as_me:10852: $lt_compile\"" >&5) |
|
|
10853 | (eval "$lt_compile" 2>conftest.err) |
|
|
10854 | ac_status=$? |
|
|
10855 | cat conftest.err >&5 |
|
|
10856 | echo "$as_me:10856: \$? = $ac_status" >&5 |
|
|
10857 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
10858 | # The compiler can only warn and ignore the option if not recognized |
|
|
10859 | # So say no if there are warnings other than the usual output. |
|
|
10860 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
10861 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
10862 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
10863 | lt_prog_compiler_pic_works_CXX=yes |
|
|
10864 | fi |
|
|
10865 | fi |
|
|
10866 | $rm conftest* |
|
|
10867 | |
|
|
10868 | fi |
|
|
10869 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
|
|
10870 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 |
|
|
10871 | |
|
|
10872 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
|
|
10873 | case $lt_prog_compiler_pic_CXX in |
|
|
10874 | "" | " "*) ;; |
|
|
10875 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
|
10876 | esac |
|
|
10877 | else |
|
|
10878 | lt_prog_compiler_pic_CXX= |
|
|
10879 | lt_prog_compiler_can_build_shared_CXX=no |
|
|
10880 | fi |
|
|
10881 | |
|
|
10882 | fi |
|
|
10883 | case $host_os in |
|
|
10884 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
10885 | *djgpp*) |
|
|
10886 | lt_prog_compiler_pic_CXX= |
|
|
10887 | ;; |
|
|
10888 | *) |
|
|
10889 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
|
10890 | ;; |
|
|
10891 | esac |
|
|
10892 | |
|
|
10893 | # |
|
|
10894 | # Check to make sure the static flag actually works. |
|
|
10895 | # |
|
|
10896 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
|
10897 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
10898 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
10899 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
|
|
10900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10901 | else |
|
|
10902 | lt_prog_compiler_static_works_CXX=no |
|
|
10903 | save_LDFLAGS="$LDFLAGS" |
|
|
10904 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
10905 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
10906 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
10907 | # The linker can only warn and ignore the option if not recognized |
|
|
10908 | # So say no if there are warnings |
|
|
10909 | if test -s conftest.err; then |
|
|
10910 | # Append any errors to the config.log. |
|
|
10911 | cat conftest.err 1>&5 |
|
|
10912 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
10913 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
10914 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
10915 | lt_prog_compiler_static_works_CXX=yes |
|
|
10916 | fi |
|
|
10917 | else |
|
|
10918 | lt_prog_compiler_static_works_CXX=yes |
|
|
10919 | fi |
|
|
10920 | fi |
|
|
10921 | $rm conftest* |
|
|
10922 | LDFLAGS="$save_LDFLAGS" |
|
|
10923 | |
|
|
10924 | fi |
|
|
10925 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
|
|
10926 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 |
|
|
10927 | |
|
|
10928 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
|
|
10929 | : |
|
|
10930 | else |
|
|
10931 | lt_prog_compiler_static_CXX= |
|
|
10932 | fi |
|
|
10933 | |
|
|
10934 | |
|
|
10935 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
10936 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
10937 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
|
|
10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10939 | else |
|
|
10940 | lt_cv_prog_compiler_c_o_CXX=no |
|
|
10941 | $rm -r conftest 2>/dev/null |
|
|
10942 | mkdir conftest |
|
|
10943 | cd conftest |
|
|
10944 | mkdir out |
|
|
10945 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
10946 | |
|
|
10947 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
10948 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
10949 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
10950 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
10951 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
10952 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
10953 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
10954 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
10955 | -e 's:$: $lt_compiler_flag:'` |
|
|
10956 | (eval echo "\"\$as_me:10956: $lt_compile\"" >&5) |
|
|
10957 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
10958 | ac_status=$? |
|
|
10959 | cat out/conftest.err >&5 |
|
|
10960 | echo "$as_me:10960: \$? = $ac_status" >&5 |
|
|
10961 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
10962 | then |
|
|
10963 | # The compiler can only warn and ignore the option if not recognized |
|
|
10964 | # So say no if there are warnings |
|
|
10965 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
10966 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
10967 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
10968 | lt_cv_prog_compiler_c_o_CXX=yes |
|
|
10969 | fi |
|
|
10970 | fi |
|
|
10971 | chmod u+w . 2>&5 |
|
|
10972 | $rm conftest* |
|
|
10973 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
10974 | # template instantiation |
|
|
10975 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
10976 | $rm out/* && rmdir out |
|
|
10977 | cd .. |
|
|
10978 | rmdir conftest |
|
|
10979 | $rm conftest* |
|
|
10980 | |
|
|
10981 | fi |
|
|
10982 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
|
10983 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 |
|
|
10984 | |
|
|
10985 | |
|
|
10986 | hard_links="nottested" |
|
|
10987 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
|
10988 | # do not overwrite the value of need_locks provided by the user |
|
|
10989 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
10990 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
10991 | hard_links=yes |
|
|
10992 | $rm conftest* |
|
|
10993 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
10994 | touch conftest.a |
|
|
10995 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
10996 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
10997 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
10998 | echo "${ECHO_T}$hard_links" >&6 |
|
|
10999 | if test "$hard_links" = no; then |
|
|
11000 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
11001 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
11002 | need_locks=warn |
|
|
11003 | fi |
|
|
11004 | else |
|
|
11005 | need_locks=no |
|
|
11006 | fi |
|
|
11007 | |
|
|
11008 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
11009 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
11010 | |
|
|
11011 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
11012 | case $host_os in |
|
|
11013 | aix4* | aix5*) |
|
|
11014 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
11015 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
11016 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
11017 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
11018 | else |
|
|
11019 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
11020 | fi |
|
|
11021 | ;; |
|
|
11022 | pw32*) |
|
|
11023 | export_symbols_cmds_CXX="$ltdll_cmds" |
|
|
11024 | ;; |
|
|
11025 | cygwin* | mingw*) |
|
|
11026 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
11027 | ;; |
|
|
11028 | kfreebsd*-gnu) |
|
|
11029 | link_all_deplibs_CXX=no |
|
|
11030 | ;; |
|
|
11031 | linux*) |
|
|
11032 | link_all_deplibs_CXX=no |
|
|
11033 | ;; |
|
|
11034 | *) |
|
|
11035 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
11036 | ;; |
|
|
11037 | esac |
|
|
11038 | |
|
|
11039 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
|
|
11040 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
|
|
11041 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
|
11042 | |
|
|
11043 | # |
|
|
11044 | # Do we need to explicitly link libc? |
|
|
11045 | # |
|
|
11046 | case "x$archive_cmds_need_lc_CXX" in |
|
|
11047 | x|xyes) |
|
|
11048 | # Assume -lc should be added |
|
|
11049 | archive_cmds_need_lc_CXX=yes |
|
|
11050 | |
|
|
11051 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
11052 | case $archive_cmds_CXX in |
|
|
11053 | *'~'*) |
|
|
11054 | # FIXME: we may have to deal with multi-command sequences. |
|
|
11055 | ;; |
|
|
11056 | '$CC '*) |
|
|
11057 | # Test whether the compiler implicitly links with -lc since on some |
|
|
11058 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
11059 | # to ld, don't add -lc before -lgcc. |
|
|
11060 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
11061 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
11062 | $rm conftest* |
|
|
11063 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
11064 | |
|
|
11065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11066 | (eval $ac_compile) 2>&5 |
|
|
11067 | ac_status=$? |
|
|
11068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11069 | (exit $ac_status); } 2>conftest.err; then |
|
|
11070 | soname=conftest |
|
|
11071 | lib=conftest |
|
|
11072 | libobjs=conftest.$ac_objext |
|
|
11073 | deplibs= |
|
|
11074 | wl=$lt_prog_compiler_wl_CXX |
|
|
11075 | pic_flag=$lt_prog_compiler_pic_CXX |
|
|
11076 | compiler_flags=-v |
|
|
11077 | linker_flags=-v |
|
|
11078 | verstring= |
|
|
11079 | output_objdir=. |
|
|
11080 | libname=conftest |
|
|
11081 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
|
11082 | allow_undefined_flag_CXX= |
|
|
11083 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
11084 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
11085 | ac_status=$? |
|
|
11086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11087 | (exit $ac_status); } |
|
|
11088 | then |
|
|
11089 | archive_cmds_need_lc_CXX=no |
|
|
11090 | else |
|
|
11091 | archive_cmds_need_lc_CXX=yes |
|
|
11092 | fi |
|
|
11093 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
|
11094 | else |
|
|
11095 | cat conftest.err 1>&5 |
|
|
11096 | fi |
|
|
11097 | $rm conftest* |
|
|
11098 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
|
|
11099 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 |
|
|
11100 | ;; |
|
|
11101 | esac |
|
|
11102 | fi |
|
|
11103 | ;; |
|
|
11104 | esac |
|
|
11105 | |
|
|
11106 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
11107 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
11108 | library_names_spec= |
|
|
11109 | libname_spec='lib$name' |
|
|
11110 | soname_spec= |
|
|
11111 | shrext_cmds=".so" |
|
|
11112 | postinstall_cmds= |
|
|
11113 | postuninstall_cmds= |
|
|
11114 | finish_cmds= |
|
|
11115 | finish_eval= |
|
|
11116 | shlibpath_var= |
|
|
11117 | shlibpath_overrides_runpath=unknown |
|
|
11118 | version_type=none |
|
|
11119 | dynamic_linker="$host_os ld.so" |
|
|
11120 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
11121 | if test "$GCC" = yes; then |
|
|
11122 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
11123 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
11124 | # if the path contains ";" then we assume it to be the separator |
|
|
11125 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
11126 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
11127 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
11128 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
11129 | else |
|
|
11130 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
11131 | fi |
|
|
11132 | else |
|
|
11133 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
11134 | fi |
|
|
11135 | need_lib_prefix=unknown |
|
|
11136 | hardcode_into_libs=no |
|
|
11137 | |
|
|
11138 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
11139 | # flags to be left without arguments |
|
|
11140 | need_version=unknown |
|
|
11141 | |
|
|
11142 | case $host_os in |
|
|
11143 | aix3*) |
|
|
11144 | version_type=linux |
|
|
11145 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
11146 | shlibpath_var=LIBPATH |
|
|
11147 | |
|
|
11148 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
11149 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11150 | ;; |
|
|
11151 | |
|
|
11152 | aix4* | aix5*) |
|
|
11153 | version_type=linux |
|
|
11154 | need_lib_prefix=no |
|
|
11155 | need_version=no |
|
|
11156 | hardcode_into_libs=yes |
|
|
11157 | if test "$host_cpu" = ia64; then |
|
|
11158 | # AIX 5 supports IA64 |
|
|
11159 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
11160 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11161 | else |
|
|
11162 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
11163 | # for dependence libraries. The import file would start with |
|
|
11164 | # the line `#! .'. This would cause the generated library to |
|
|
11165 | # depend on `.', always an invalid library. This was fixed in |
|
|
11166 | # development snapshots of GCC prior to 3.0. |
|
|
11167 | case $host_os in |
|
|
11168 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
11169 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
11170 | echo ' yes ' |
|
|
11171 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
11172 | : |
|
|
11173 | else |
|
|
11174 | can_build_shared=no |
|
|
11175 | fi |
|
|
11176 | ;; |
|
|
11177 | esac |
|
|
11178 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
11179 | # soname into executable. Probably we can add versioning support to |
|
|
11180 | # collect2, so additional links can be useful in future. |
|
|
11181 | if test "$aix_use_runtimelinking" = yes; then |
|
|
11182 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
11183 | # instead of lib<name>.a to let people know that these are not |
|
|
11184 | # typical AIX shared libraries. |
|
|
11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11186 | else |
|
|
11187 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
11188 | # and later when we are not doing run time linking. |
|
|
11189 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
11190 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11191 | fi |
|
|
11192 | shlibpath_var=LIBPATH |
|
|
11193 | fi |
|
|
11194 | ;; |
|
|
11195 | |
|
|
11196 | amigaos*) |
|
|
11197 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
11198 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
11199 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
11200 | ;; |
|
|
11201 | |
|
|
11202 | beos*) |
|
|
11203 | library_names_spec='${libname}${shared_ext}' |
|
|
11204 | dynamic_linker="$host_os ld.so" |
|
|
11205 | shlibpath_var=LIBRARY_PATH |
|
|
11206 | ;; |
|
|
11207 | |
|
|
11208 | bsdi[45]*) |
|
|
11209 | version_type=linux |
|
|
11210 | need_version=no |
|
|
11211 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11212 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11213 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
11214 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11215 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
11216 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
11217 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
11218 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
11219 | # libtool to hard-code these into programs |
|
|
11220 | ;; |
|
|
11221 | |
|
|
11222 | cygwin* | mingw* | pw32*) |
|
|
11223 | version_type=windows |
|
|
11224 | shrext_cmds=".dll" |
|
|
11225 | need_version=no |
|
|
11226 | need_lib_prefix=no |
|
|
11227 | |
|
|
11228 | case $GCC,$host_os in |
|
|
11229 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
11230 | library_names_spec='$libname.dll.a' |
|
|
11231 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
11232 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
11233 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
11234 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
11235 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
11236 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
11237 | chmod a+x \$dldir/$dlname' |
|
|
11238 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
11239 | dlpath=$dir/\$dldll~ |
|
|
11240 | $rm \$dlpath' |
|
|
11241 | shlibpath_overrides_runpath=yes |
|
|
11242 | |
|
|
11243 | case $host_os in |
|
|
11244 | cygwin*) |
|
|
11245 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
11246 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11247 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
11248 | ;; |
|
|
11249 | mingw*) |
|
|
11250 | # MinGW DLLs use traditional 'lib' prefix |
|
|
11251 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11252 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
11253 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
11254 | # It is most probably a Windows format PATH printed by |
|
|
11255 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
11256 | # path with ; separators, and with drive letters. We can handle the |
|
|
11257 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
11258 | # especially as we might pass files found there to a mingw objdump, |
|
|
11259 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
11260 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
11261 | else |
|
|
11262 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
11263 | fi |
|
|
11264 | ;; |
|
|
11265 | pw32*) |
|
|
11266 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
11267 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
11268 | ;; |
|
|
11269 | esac |
|
|
11270 | ;; |
|
|
11271 | |
|
|
11272 | *) |
|
|
11273 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
11274 | ;; |
|
|
11275 | esac |
|
|
11276 | dynamic_linker='Win32 ld.exe' |
|
|
11277 | # FIXME: first we should search . and the directory the executable is in |
|
|
11278 | shlibpath_var=PATH |
|
|
11279 | ;; |
|
|
11280 | |
|
|
11281 | darwin* | rhapsody*) |
|
|
11282 | dynamic_linker="$host_os dyld" |
|
|
11283 | version_type=darwin |
|
|
11284 | need_lib_prefix=no |
|
|
11285 | need_version=no |
|
|
11286 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
11287 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
11288 | shlibpath_overrides_runpath=yes |
|
|
11289 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
11290 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
11291 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
11292 | if test "$GCC" = yes; then |
|
|
11293 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
11294 | else |
|
|
11295 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
11296 | fi |
|
|
11297 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
11298 | ;; |
|
|
11299 | |
|
|
11300 | dgux*) |
|
|
11301 | version_type=linux |
|
|
11302 | need_lib_prefix=no |
|
|
11303 | need_version=no |
|
|
11304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
11305 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11306 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11307 | ;; |
|
|
11308 | |
|
|
11309 | freebsd1*) |
|
|
11310 | dynamic_linker=no |
|
|
11311 | ;; |
|
|
11312 | |
|
|
11313 | kfreebsd*-gnu) |
|
|
11314 | version_type=linux |
|
|
11315 | need_lib_prefix=no |
|
|
11316 | need_version=no |
|
|
11317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11318 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11319 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11320 | shlibpath_overrides_runpath=no |
|
|
11321 | hardcode_into_libs=yes |
|
|
11322 | dynamic_linker='GNU ld.so' |
|
|
11323 | ;; |
|
|
11324 | |
|
|
11325 | freebsd* | dragonfly*) |
|
|
11326 | # DragonFly does not have aout. When/if they implement a new |
|
|
11327 | # versioning mechanism, adjust this. |
|
|
11328 | if test -x /usr/bin/objformat; then |
|
|
11329 | objformat=`/usr/bin/objformat` |
|
|
11330 | else |
|
|
11331 | case $host_os in |
|
|
11332 | freebsd[123]*) objformat=aout ;; |
|
|
11333 | *) objformat=elf ;; |
|
|
11334 | esac |
|
|
11335 | fi |
|
|
11336 | version_type=freebsd-$objformat |
|
|
11337 | case $version_type in |
|
|
11338 | freebsd-elf*) |
|
|
11339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11340 | need_version=no |
|
|
11341 | need_lib_prefix=no |
|
|
11342 | ;; |
|
|
11343 | freebsd-*) |
|
|
11344 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
11345 | need_version=yes |
|
|
11346 | ;; |
|
|
11347 | esac |
|
|
11348 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11349 | case $host_os in |
|
|
11350 | freebsd2*) |
|
|
11351 | shlibpath_overrides_runpath=yes |
|
|
11352 | ;; |
|
|
11353 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
11354 | shlibpath_overrides_runpath=yes |
|
|
11355 | hardcode_into_libs=yes |
|
|
11356 | ;; |
|
|
11357 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
11358 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
11359 | shlibpath_overrides_runpath=no |
|
|
11360 | hardcode_into_libs=yes |
|
|
11361 | ;; |
|
|
11362 | freebsd*) # from 4.6 on |
|
|
11363 | shlibpath_overrides_runpath=yes |
|
|
11364 | hardcode_into_libs=yes |
|
|
11365 | ;; |
|
|
11366 | esac |
|
|
11367 | ;; |
|
|
11368 | |
|
|
11369 | gnu*) |
|
|
11370 | version_type=linux |
|
|
11371 | need_lib_prefix=no |
|
|
11372 | need_version=no |
|
|
11373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
11374 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11375 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11376 | hardcode_into_libs=yes |
|
|
11377 | ;; |
|
|
11378 | |
|
|
11379 | hpux9* | hpux10* | hpux11*) |
|
|
11380 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
11381 | # link against other versions. |
|
|
11382 | version_type=sunos |
|
|
11383 | need_lib_prefix=no |
|
|
11384 | need_version=no |
|
|
11385 | case $host_cpu in |
|
|
11386 | ia64*) |
|
|
11387 | shrext_cmds='.so' |
|
|
11388 | hardcode_into_libs=yes |
|
|
11389 | dynamic_linker="$host_os dld.so" |
|
|
11390 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11391 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11392 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11393 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11394 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
11395 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
11396 | else |
|
|
11397 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
11398 | fi |
|
|
11399 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11400 | ;; |
|
|
11401 | hppa*64*) |
|
|
11402 | shrext_cmds='.sl' |
|
|
11403 | hardcode_into_libs=yes |
|
|
11404 | dynamic_linker="$host_os dld.sl" |
|
|
11405 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
11406 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
11407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11408 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11409 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
11410 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
11411 | ;; |
|
|
11412 | *) |
|
|
11413 | shrext_cmds='.sl' |
|
|
11414 | dynamic_linker="$host_os dld.sl" |
|
|
11415 | shlibpath_var=SHLIB_PATH |
|
|
11416 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
11417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11418 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11419 | ;; |
|
|
11420 | esac |
|
|
11421 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
11422 | postinstall_cmds='chmod 555 $lib' |
|
|
11423 | ;; |
|
|
11424 | |
|
|
11425 | interix3*) |
|
|
11426 | version_type=linux |
|
|
11427 | need_lib_prefix=no |
|
|
11428 | need_version=no |
|
|
11429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11430 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11431 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
11432 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11433 | shlibpath_overrides_runpath=no |
|
|
11434 | hardcode_into_libs=yes |
|
|
11435 | ;; |
|
|
11436 | |
|
|
11437 | irix5* | irix6* | nonstopux*) |
|
|
11438 | case $host_os in |
|
|
11439 | nonstopux*) version_type=nonstopux ;; |
|
|
11440 | *) |
|
|
11441 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
11442 | version_type=linux |
|
|
11443 | else |
|
|
11444 | version_type=irix |
|
|
11445 | fi ;; |
|
|
11446 | esac |
|
|
11447 | need_lib_prefix=no |
|
|
11448 | need_version=no |
|
|
11449 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11451 | case $host_os in |
|
|
11452 | irix5* | nonstopux*) |
|
|
11453 | libsuff= shlibsuff= |
|
|
11454 | ;; |
|
|
11455 | *) |
|
|
11456 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
11457 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
11458 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
11459 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
11460 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
11461 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
11462 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
11463 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
11464 | esac |
|
|
11465 | ;; |
|
|
11466 | esac |
|
|
11467 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
11468 | shlibpath_overrides_runpath=no |
|
|
11469 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
11470 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
11471 | hardcode_into_libs=yes |
|
|
11472 | ;; |
|
|
11473 | |
|
|
11474 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
11475 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
11476 | dynamic_linker=no |
|
|
11477 | ;; |
|
|
11478 | |
|
|
11479 | # This must be Linux ELF. |
|
|
11480 | linux*) |
|
|
11481 | version_type=linux |
|
|
11482 | need_lib_prefix=no |
|
|
11483 | need_version=no |
|
|
11484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11485 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11486 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
11487 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11488 | shlibpath_overrides_runpath=no |
|
|
11489 | # This implies no fast_install, which is unacceptable. |
|
|
11490 | # Some rework will be needed to allow for fast_install |
|
|
11491 | # before this can be enabled. |
|
|
11492 | hardcode_into_libs=yes |
|
|
11493 | |
|
|
11494 | # Append ld.so.conf contents to the search path |
|
|
11495 | if test -f /etc/ld.so.conf; then |
|
|
11496 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
|
11497 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
11498 | fi |
|
|
11499 | |
|
|
11500 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
11501 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
11502 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
11503 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
11504 | # people can always --disable-shared, the test was removed, and we |
|
|
11505 | # assume the GNU/Linux dynamic linker is in use. |
|
|
11506 | dynamic_linker='GNU/Linux ld.so' |
|
|
11507 | ;; |
|
|
11508 | |
|
|
11509 | netbsdelf*-gnu) |
|
|
11510 | version_type=linux |
|
|
11511 | need_lib_prefix=no |
|
|
11512 | need_version=no |
|
|
11513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11514 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11515 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11516 | shlibpath_overrides_runpath=no |
|
|
11517 | hardcode_into_libs=yes |
|
|
11518 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11519 | ;; |
|
|
11520 | |
|
|
11521 | knetbsd*-gnu) |
|
|
11522 | version_type=linux |
|
|
11523 | need_lib_prefix=no |
|
|
11524 | need_version=no |
|
|
11525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11526 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11527 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11528 | shlibpath_overrides_runpath=no |
|
|
11529 | hardcode_into_libs=yes |
|
|
11530 | dynamic_linker='GNU ld.so' |
|
|
11531 | ;; |
|
|
11532 | |
|
|
11533 | netbsd*) |
|
|
11534 | version_type=sunos |
|
|
11535 | need_lib_prefix=no |
|
|
11536 | need_version=no |
|
|
11537 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
11538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11540 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
11541 | else |
|
|
11542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
11543 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11544 | dynamic_linker='NetBSD ld.elf_so' |
|
|
11545 | fi |
|
|
11546 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11547 | shlibpath_overrides_runpath=yes |
|
|
11548 | hardcode_into_libs=yes |
|
|
11549 | ;; |
|
|
11550 | |
|
|
11551 | newsos6) |
|
|
11552 | version_type=linux |
|
|
11553 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11554 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11555 | shlibpath_overrides_runpath=yes |
|
|
11556 | ;; |
|
|
11557 | |
|
|
11558 | nto-qnx*) |
|
|
11559 | version_type=linux |
|
|
11560 | need_lib_prefix=no |
|
|
11561 | need_version=no |
|
|
11562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11563 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11564 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11565 | shlibpath_overrides_runpath=yes |
|
|
11566 | ;; |
|
|
11567 | |
|
|
11568 | openbsd*) |
|
|
11569 | version_type=sunos |
|
|
11570 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
11571 | need_lib_prefix=no |
|
|
11572 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
11573 | case $host_os in |
|
|
11574 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
11575 | *) need_version=no ;; |
|
|
11576 | esac |
|
|
11577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11578 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
11579 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11580 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
11581 | case $host_os in |
|
|
11582 | openbsd2.[89] | openbsd2.[89].*) |
|
|
11583 | shlibpath_overrides_runpath=no |
|
|
11584 | ;; |
|
|
11585 | *) |
|
|
11586 | shlibpath_overrides_runpath=yes |
|
|
11587 | ;; |
|
|
11588 | esac |
|
|
11589 | else |
|
|
11590 | shlibpath_overrides_runpath=yes |
|
|
11591 | fi |
|
|
11592 | ;; |
|
|
11593 | |
|
|
11594 | os2*) |
|
|
11595 | libname_spec='$name' |
|
|
11596 | shrext_cmds=".dll" |
|
|
11597 | need_lib_prefix=no |
|
|
11598 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
11599 | dynamic_linker='OS/2 ld.exe' |
|
|
11600 | shlibpath_var=LIBPATH |
|
|
11601 | ;; |
|
|
11602 | |
|
|
11603 | osf3* | osf4* | osf5*) |
|
|
11604 | version_type=osf |
|
|
11605 | need_lib_prefix=no |
|
|
11606 | need_version=no |
|
|
11607 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11609 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11610 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
11611 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
11612 | ;; |
|
|
11613 | |
|
|
11614 | solaris*) |
|
|
11615 | version_type=linux |
|
|
11616 | need_lib_prefix=no |
|
|
11617 | need_version=no |
|
|
11618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11619 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11620 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11621 | shlibpath_overrides_runpath=yes |
|
|
11622 | hardcode_into_libs=yes |
|
|
11623 | # ldd complains unless libraries are executable |
|
|
11624 | postinstall_cmds='chmod +x $lib' |
|
|
11625 | ;; |
|
|
11626 | |
|
|
11627 | sunos4*) |
|
|
11628 | version_type=sunos |
|
|
11629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
11630 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
11631 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11632 | shlibpath_overrides_runpath=yes |
|
|
11633 | if test "$with_gnu_ld" = yes; then |
|
|
11634 | need_lib_prefix=no |
|
|
11635 | fi |
|
|
11636 | need_version=yes |
|
|
11637 | ;; |
|
|
11638 | |
|
|
11639 | sysv4 | sysv4.3*) |
|
|
11640 | version_type=linux |
|
|
11641 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11642 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11643 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11644 | case $host_vendor in |
|
|
11645 | sni) |
|
|
11646 | shlibpath_overrides_runpath=no |
|
|
11647 | need_lib_prefix=no |
|
|
11648 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
11649 | runpath_var=LD_RUN_PATH |
|
|
11650 | ;; |
|
|
11651 | siemens) |
|
|
11652 | need_lib_prefix=no |
|
|
11653 | ;; |
|
|
11654 | motorola) |
|
|
11655 | need_lib_prefix=no |
|
|
11656 | need_version=no |
|
|
11657 | shlibpath_overrides_runpath=no |
|
|
11658 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
11659 | ;; |
|
|
11660 | esac |
|
|
11661 | ;; |
|
|
11662 | |
|
|
11663 | sysv4*MP*) |
|
|
11664 | if test -d /usr/nec ;then |
|
|
11665 | version_type=linux |
|
|
11666 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
11667 | soname_spec='$libname${shared_ext}.$major' |
|
|
11668 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11669 | fi |
|
|
11670 | ;; |
|
|
11671 | |
|
|
11672 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
11673 | version_type=freebsd-elf |
|
|
11674 | need_lib_prefix=no |
|
|
11675 | need_version=no |
|
|
11676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
11677 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11678 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11679 | hardcode_into_libs=yes |
|
|
11680 | if test "$with_gnu_ld" = yes; then |
|
|
11681 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
11682 | shlibpath_overrides_runpath=no |
|
|
11683 | else |
|
|
11684 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
11685 | shlibpath_overrides_runpath=yes |
|
|
11686 | case $host_os in |
|
|
11687 | sco3.2v5*) |
|
|
11688 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
11689 | ;; |
|
|
11690 | esac |
|
|
11691 | fi |
|
|
11692 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
11693 | ;; |
|
|
11694 | |
|
|
11695 | uts4*) |
|
|
11696 | version_type=linux |
|
|
11697 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
11698 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
11699 | shlibpath_var=LD_LIBRARY_PATH |
|
|
11700 | ;; |
|
|
11701 | |
|
|
11702 | *) |
|
|
11703 | dynamic_linker=no |
|
|
11704 | ;; |
|
|
11705 | esac |
|
|
11706 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
11707 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
11708 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
11709 | |
|
|
11710 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
11711 | if test "$GCC" = yes; then |
|
|
11712 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
11713 | fi |
|
|
11714 | |
|
|
11715 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
11716 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
11717 | hardcode_action_CXX= |
|
|
11718 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
|
|
11719 | test -n "$runpath_var_CXX" || \ |
|
|
11720 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
|
|
11721 | |
|
|
11722 | # We can hardcode non-existant directories. |
|
|
11723 | if test "$hardcode_direct_CXX" != no && |
|
|
11724 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
11725 | # have to relink, otherwise we might link with an installed library |
|
|
11726 | # when we should be linking with a yet-to-be-installed one |
|
|
11727 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
|
11728 | test "$hardcode_minus_L_CXX" != no; then |
|
|
11729 | # Linking always hardcodes the temporary library directory. |
|
|
11730 | hardcode_action_CXX=relink |
|
|
11731 | else |
|
|
11732 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
11733 | hardcode_action_CXX=immediate |
|
|
11734 | fi |
|
|
11735 | else |
|
|
11736 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
11737 | # directories. |
|
|
11738 | hardcode_action_CXX=unsupported |
|
|
11739 | fi |
|
|
11740 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
|
|
11741 | echo "${ECHO_T}$hardcode_action_CXX" >&6 |
|
|
11742 | |
|
|
11743 | if test "$hardcode_action_CXX" = relink; then |
|
|
11744 | # Fast installation is not supported |
|
|
11745 | enable_fast_install=no |
|
|
11746 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
11747 | test "$enable_shared" = no; then |
|
|
11748 | # Fast installation is not necessary |
|
|
11749 | enable_fast_install=needless |
|
|
11750 | fi |
|
|
11751 | |
|
|
11752 | |
|
|
11753 | # The else clause should only fire when bootstrapping the |
|
|
11754 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
11755 | # with your package, and you will get complaints that there are |
|
|
11756 | # no rules to generate ltmain.sh. |
|
|
11757 | if test -f "$ltmain"; then |
|
|
11758 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
11759 | # without removal of \ escapes. |
|
|
11760 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
11761 | setopt NO_GLOB_SUBST |
|
|
11762 | fi |
|
|
11763 | # Now quote all the things that may contain metacharacters while being |
|
|
11764 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
11765 | # variables and quote the copies for generation of the libtool script. |
|
|
11766 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
11767 | SED SHELL STRIP \ |
|
|
11768 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
11769 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
11770 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
11771 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
11772 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
11773 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
11774 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
11775 | compiler_CXX \ |
|
|
11776 | CC_CXX \ |
|
|
11777 | LD_CXX \ |
|
|
11778 | lt_prog_compiler_wl_CXX \ |
|
|
11779 | lt_prog_compiler_pic_CXX \ |
|
|
11780 | lt_prog_compiler_static_CXX \ |
|
|
11781 | lt_prog_compiler_no_builtin_flag_CXX \ |
|
|
11782 | export_dynamic_flag_spec_CXX \ |
|
|
11783 | thread_safe_flag_spec_CXX \ |
|
|
11784 | whole_archive_flag_spec_CXX \ |
|
|
11785 | enable_shared_with_static_runtimes_CXX \ |
|
|
11786 | old_archive_cmds_CXX \ |
|
|
11787 | old_archive_from_new_cmds_CXX \ |
|
|
11788 | predep_objects_CXX \ |
|
|
11789 | postdep_objects_CXX \ |
|
|
11790 | predeps_CXX \ |
|
|
11791 | postdeps_CXX \ |
|
|
11792 | compiler_lib_search_path_CXX \ |
|
|
11793 | archive_cmds_CXX \ |
|
|
11794 | archive_expsym_cmds_CXX \ |
|
|
11795 | postinstall_cmds_CXX \ |
|
|
11796 | postuninstall_cmds_CXX \ |
|
|
11797 | old_archive_from_expsyms_cmds_CXX \ |
|
|
11798 | allow_undefined_flag_CXX \ |
|
|
11799 | no_undefined_flag_CXX \ |
|
|
11800 | export_symbols_cmds_CXX \ |
|
|
11801 | hardcode_libdir_flag_spec_CXX \ |
|
|
11802 | hardcode_libdir_flag_spec_ld_CXX \ |
|
|
11803 | hardcode_libdir_separator_CXX \ |
|
|
11804 | hardcode_automatic_CXX \ |
|
|
11805 | module_cmds_CXX \ |
|
|
11806 | module_expsym_cmds_CXX \ |
|
|
11807 | lt_cv_prog_compiler_c_o_CXX \ |
|
|
11808 | exclude_expsyms_CXX \ |
|
|
11809 | include_expsyms_CXX; do |
|
|
11810 | |
|
|
11811 | case $var in |
|
|
11812 | old_archive_cmds_CXX | \ |
|
|
11813 | old_archive_from_new_cmds_CXX | \ |
|
|
11814 | archive_cmds_CXX | \ |
|
|
11815 | archive_expsym_cmds_CXX | \ |
|
|
11816 | module_cmds_CXX | \ |
|
|
11817 | module_expsym_cmds_CXX | \ |
|
|
11818 | old_archive_from_expsyms_cmds_CXX | \ |
|
|
11819 | export_symbols_cmds_CXX | \ |
|
|
11820 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
11821 | postinstall_cmds | postuninstall_cmds | \ |
|
|
11822 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
11823 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
11824 | # Double-quote double-evaled strings. |
|
|
11825 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
11826 | ;; |
|
|
11827 | *) |
|
|
11828 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
11829 | ;; |
|
|
11830 | esac |
|
|
11831 | done |
|
|
11832 | |
|
|
11833 | case $lt_echo in |
|
|
11834 | *'\$0 --fallback-echo"') |
|
|
11835 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
11836 | ;; |
|
|
11837 | esac |
|
|
11838 | |
|
|
11839 | cfgfile="$ofile" |
|
|
11840 | |
|
|
11841 | cat <<__EOF__ >> "$cfgfile" |
|
|
11842 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
11843 | |
|
|
11844 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
11845 | |
|
|
11846 | # Shell to use when invoking shell scripts. |
|
|
11847 | SHELL=$lt_SHELL |
|
|
11848 | |
|
|
11849 | # Whether or not to build shared libraries. |
|
|
11850 | build_libtool_libs=$enable_shared |
|
|
11851 | |
|
|
11852 | # Whether or not to build static libraries. |
|
|
11853 | build_old_libs=$enable_static |
|
|
11854 | |
|
|
11855 | # Whether or not to add -lc for building shared libraries. |
|
|
11856 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
|
11857 | |
|
|
11858 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
11859 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
|
11860 | |
|
|
11861 | # Whether or not to optimize for fast installation. |
|
|
11862 | fast_install=$enable_fast_install |
|
|
11863 | |
|
|
11864 | # The host system. |
|
|
11865 | host_alias=$host_alias |
|
|
11866 | host=$host |
|
|
11867 | host_os=$host_os |
|
|
11868 | |
|
|
11869 | # The build system. |
|
|
11870 | build_alias=$build_alias |
|
|
11871 | build=$build |
|
|
11872 | build_os=$build_os |
|
|
11873 | |
|
|
11874 | # An echo program that does not interpret backslashes. |
|
|
11875 | echo=$lt_echo |
|
|
11876 | |
|
|
11877 | # The archiver. |
|
|
11878 | AR=$lt_AR |
|
|
11879 | AR_FLAGS=$lt_AR_FLAGS |
|
|
11880 | |
|
|
11881 | # A C compiler. |
|
|
11882 | LTCC=$lt_LTCC |
|
|
11883 | |
|
|
11884 | # LTCC compiler flags. |
|
|
11885 | LTCFLAGS=$lt_LTCFLAGS |
|
|
11886 | |
|
|
11887 | # A language-specific compiler. |
|
|
11888 | CC=$lt_compiler_CXX |
|
|
11889 | |
|
|
11890 | # Is the compiler the GNU C compiler? |
|
|
11891 | with_gcc=$GCC_CXX |
|
|
11892 | |
|
|
11893 | # An ERE matcher. |
|
|
11894 | EGREP=$lt_EGREP |
|
|
11895 | |
|
|
11896 | # The linker used to build libraries. |
|
|
11897 | LD=$lt_LD_CXX |
|
|
11898 | |
|
|
11899 | # Whether we need hard or soft links. |
|
|
11900 | LN_S=$lt_LN_S |
|
|
11901 | |
|
|
11902 | # A BSD-compatible nm program. |
|
|
11903 | NM=$lt_NM |
|
|
11904 | |
|
|
11905 | # A symbol stripping program |
|
|
11906 | STRIP=$lt_STRIP |
|
|
11907 | |
|
|
11908 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
11909 | MAGIC_CMD=$MAGIC_CMD |
|
|
11910 | |
|
|
11911 | # Used on cygwin: DLL creation program. |
|
|
11912 | DLLTOOL="$DLLTOOL" |
|
|
11913 | |
|
|
11914 | # Used on cygwin: object dumper. |
|
|
11915 | OBJDUMP="$OBJDUMP" |
|
|
11916 | |
|
|
11917 | # Used on cygwin: assembler. |
|
|
11918 | AS="$AS" |
|
|
11919 | |
|
|
11920 | # The name of the directory that contains temporary libtool files. |
|
|
11921 | objdir=$objdir |
|
|
11922 | |
|
|
11923 | # How to create reloadable object files. |
|
|
11924 | reload_flag=$lt_reload_flag |
|
|
11925 | reload_cmds=$lt_reload_cmds |
|
|
11926 | |
|
|
11927 | # How to pass a linker flag through the compiler. |
|
|
11928 | wl=$lt_lt_prog_compiler_wl_CXX |
|
|
11929 | |
|
|
11930 | # Object file suffix (normally "o"). |
|
|
11931 | objext="$ac_objext" |
|
|
11932 | |
|
|
11933 | # Old archive suffix (normally "a"). |
|
|
11934 | libext="$libext" |
|
|
11935 | |
|
|
11936 | # Shared library suffix (normally ".so"). |
|
|
11937 | shrext_cmds='$shrext_cmds' |
|
|
11938 | |
|
|
11939 | # Executable file suffix (normally ""). |
|
|
11940 | exeext="$exeext" |
|
|
11941 | |
|
|
11942 | # Additional compiler flags for building library objects. |
|
|
11943 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
|
11944 | pic_mode=$pic_mode |
|
|
11945 | |
|
|
11946 | # What is the maximum length of a command? |
|
|
11947 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
11948 | |
|
|
11949 | # Does compiler simultaneously support -c and -o options? |
|
|
11950 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
|
11951 | |
|
|
11952 | # Must we lock files when doing compilation? |
|
|
11953 | need_locks=$lt_need_locks |
|
|
11954 | |
|
|
11955 | # Do we need the lib prefix for modules? |
|
|
11956 | need_lib_prefix=$need_lib_prefix |
|
|
11957 | |
|
|
11958 | # Do we need a version for libraries? |
|
|
11959 | need_version=$need_version |
|
|
11960 | |
|
|
11961 | # Whether dlopen is supported. |
|
|
11962 | dlopen_support=$enable_dlopen |
|
|
11963 | |
|
|
11964 | # Whether dlopen of programs is supported. |
|
|
11965 | dlopen_self=$enable_dlopen_self |
|
|
11966 | |
|
|
11967 | # Whether dlopen of statically linked programs is supported. |
|
|
11968 | dlopen_self_static=$enable_dlopen_self_static |
|
|
11969 | |
|
|
11970 | # Compiler flag to prevent dynamic linking. |
|
|
11971 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
|
11972 | |
|
|
11973 | # Compiler flag to turn off builtin functions. |
|
|
11974 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
|
11975 | |
|
|
11976 | # Compiler flag to allow reflexive dlopens. |
|
|
11977 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
|
11978 | |
|
|
11979 | # Compiler flag to generate shared objects directly from archives. |
|
|
11980 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
|
11981 | |
|
|
11982 | # Compiler flag to generate thread-safe objects. |
|
|
11983 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
|
|
11984 | |
|
|
11985 | # Library versioning type. |
|
|
11986 | version_type=$version_type |
|
|
11987 | |
|
|
11988 | # Format of library name prefix. |
|
|
11989 | libname_spec=$lt_libname_spec |
|
|
11990 | |
|
|
11991 | # List of archive names. First name is the real one, the rest are links. |
|
|
11992 | # The last name is the one that the linker finds with -lNAME. |
|
|
11993 | library_names_spec=$lt_library_names_spec |
|
|
11994 | |
|
|
11995 | # The coded name of the library, if different from the real name. |
|
|
11996 | soname_spec=$lt_soname_spec |
|
|
11997 | |
|
|
11998 | # Commands used to build and install an old-style archive. |
|
|
11999 | RANLIB=$lt_RANLIB |
|
|
12000 | old_archive_cmds=$lt_old_archive_cmds_CXX |
|
|
12001 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
12002 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
12003 | |
|
|
12004 | # Create an old-style archive from a shared archive. |
|
|
12005 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
|
12006 | |
|
|
12007 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
12008 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
|
12009 | |
|
|
12010 | # Commands used to build and install a shared archive. |
|
|
12011 | archive_cmds=$lt_archive_cmds_CXX |
|
|
12012 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
|
12013 | postinstall_cmds=$lt_postinstall_cmds |
|
|
12014 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
12015 | |
|
|
12016 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
12017 | module_cmds=$lt_module_cmds_CXX |
|
|
12018 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
|
12019 | |
|
|
12020 | # Commands to strip libraries. |
|
|
12021 | old_striplib=$lt_old_striplib |
|
|
12022 | striplib=$lt_striplib |
|
|
12023 | |
|
|
12024 | # Dependencies to place before the objects being linked to create a |
|
|
12025 | # shared library. |
|
|
12026 | predep_objects=$lt_predep_objects_CXX |
|
|
12027 | |
|
|
12028 | # Dependencies to place after the objects being linked to create a |
|
|
12029 | # shared library. |
|
|
12030 | postdep_objects=$lt_postdep_objects_CXX |
|
|
12031 | |
|
|
12032 | # Dependencies to place before the objects being linked to create a |
|
|
12033 | # shared library. |
|
|
12034 | predeps=$lt_predeps_CXX |
|
|
12035 | |
|
|
12036 | # Dependencies to place after the objects being linked to create a |
|
|
12037 | # shared library. |
|
|
12038 | postdeps=$lt_postdeps_CXX |
|
|
12039 | |
|
|
12040 | # The library search path used internally by the compiler when linking |
|
|
12041 | # a shared library. |
|
|
12042 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
|
12043 | |
|
|
12044 | # Method to check whether dependent libraries are shared objects. |
|
|
12045 | deplibs_check_method=$lt_deplibs_check_method |
|
|
12046 | |
|
|
12047 | # Command to use when deplibs_check_method == file_magic. |
|
|
12048 | file_magic_cmd=$lt_file_magic_cmd |
|
|
12049 | |
|
|
12050 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
12051 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
|
12052 | |
|
|
12053 | # Flag that forces no undefined symbols. |
|
|
12054 | no_undefined_flag=$lt_no_undefined_flag_CXX |
|
|
12055 | |
|
|
12056 | # Commands used to finish a libtool library installation in a directory. |
|
|
12057 | finish_cmds=$lt_finish_cmds |
|
|
12058 | |
|
|
12059 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
12060 | finish_eval=$lt_finish_eval |
|
|
12061 | |
|
|
12062 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
12063 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
12064 | |
|
|
12065 | # Transform the output of nm in a proper C declaration |
|
|
12066 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
12067 | |
|
|
12068 | # Transform the output of nm in a C name address pair |
|
|
12069 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
12070 | |
|
|
12071 | # This is the shared library runtime path variable. |
|
|
12072 | runpath_var=$runpath_var |
|
|
12073 | |
|
|
12074 | # This is the shared library path variable. |
|
|
12075 | shlibpath_var=$shlibpath_var |
|
|
12076 | |
|
|
12077 | # Is shlibpath searched before the hard-coded library search path? |
|
|
12078 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
12079 | |
|
|
12080 | # How to hardcode a shared library path into an executable. |
|
|
12081 | hardcode_action=$hardcode_action_CXX |
|
|
12082 | |
|
|
12083 | # Whether we should hardcode library paths into libraries. |
|
|
12084 | hardcode_into_libs=$hardcode_into_libs |
|
|
12085 | |
|
|
12086 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
12087 | # This must work even if \$libdir does not exist. |
|
|
12088 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
|
12089 | |
|
|
12090 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
12091 | # a binary during linking. This must work even if \$libdir does |
|
|
12092 | # not exist. |
|
|
12093 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
|
12094 | |
|
|
12095 | # Whether we need a single -rpath flag with a separated argument. |
|
|
12096 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
|
12097 | |
|
|
12098 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
12099 | # resulting binary. |
|
|
12100 | hardcode_direct=$hardcode_direct_CXX |
|
|
12101 | |
|
|
12102 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
12103 | # resulting binary. |
|
|
12104 | hardcode_minus_L=$hardcode_minus_L_CXX |
|
|
12105 | |
|
|
12106 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
12107 | # the resulting binary. |
|
|
12108 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
|
12109 | |
|
|
12110 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
12111 | # and all subsequent libraries and executables linked against it. |
|
|
12112 | hardcode_automatic=$hardcode_automatic_CXX |
|
|
12113 | |
|
|
12114 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
12115 | # restored at relink time. |
|
|
12116 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
12117 | |
|
|
12118 | # Whether libtool must link a program against all its dependency libraries. |
|
|
12119 | link_all_deplibs=$link_all_deplibs_CXX |
|
|
12120 | |
|
|
12121 | # Compile-time system search path for libraries |
|
|
12122 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
12123 | |
|
|
12124 | # Run-time system search path for libraries |
|
|
12125 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
12126 | |
|
|
12127 | # Fix the shell variable \$srcfile for the compiler. |
|
|
12128 | fix_srcfile_path="$fix_srcfile_path_CXX" |
|
|
12129 | |
|
|
12130 | # Set to yes if exported symbols are required. |
|
|
12131 | always_export_symbols=$always_export_symbols_CXX |
|
|
12132 | |
|
|
12133 | # The commands to list exported symbols. |
|
|
12134 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
|
12135 | |
|
|
12136 | # The commands to extract the exported symbol list from a shared archive. |
|
|
12137 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
12138 | |
|
|
12139 | # Symbols that should not be listed in the preloaded symbols. |
|
|
12140 | exclude_expsyms=$lt_exclude_expsyms_CXX |
|
|
12141 | |
|
|
12142 | # Symbols that must always be exported. |
|
|
12143 | include_expsyms=$lt_include_expsyms_CXX |
|
|
12144 | |
|
|
12145 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
12146 | |
|
|
12147 | __EOF__ |
|
|
12148 | |
|
|
12149 | |
|
|
12150 | else |
|
|
12151 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
12152 | # `config.status --recheck' to rerun these tests and create the |
|
|
12153 | # libtool script then. |
|
|
12154 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
12155 | if test -f "$ltmain_in"; then |
|
|
12156 | test -f Makefile && make "$ltmain" |
|
|
12157 | fi |
|
|
12158 | fi |
|
|
12159 | |
|
|
12160 | |
|
|
12161 | ac_ext=c |
|
|
12162 | ac_cpp='$CPP $CPPFLAGS' |
|
|
12163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
12164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
12166 | |
|
|
12167 | CC=$lt_save_CC |
|
|
12168 | LDCXX=$LD |
|
|
12169 | LD=$lt_save_LD |
|
|
12170 | GCC=$lt_save_GCC |
|
|
12171 | with_gnu_ldcxx=$with_gnu_ld |
|
|
12172 | with_gnu_ld=$lt_save_with_gnu_ld |
|
|
12173 | lt_cv_path_LDCXX=$lt_cv_path_LD |
|
|
12174 | lt_cv_path_LD=$lt_save_path_LD |
|
|
12175 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
|
12176 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
|
12177 | |
|
|
12178 | else |
|
|
12179 | tagname="" |
|
|
12180 | fi |
|
|
12181 | ;; |
|
|
12182 | |
|
|
12183 | F77) |
|
|
12184 | if test -n "$F77" && test "X$F77" != "Xno"; then |
|
|
12185 | |
|
|
12186 | ac_ext=f |
|
|
12187 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
|
|
12188 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
12189 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
|
|
12190 | |
|
|
12191 | |
|
|
12192 | archive_cmds_need_lc_F77=no |
|
|
12193 | allow_undefined_flag_F77= |
|
|
12194 | always_export_symbols_F77=no |
|
|
12195 | archive_expsym_cmds_F77= |
|
|
12196 | export_dynamic_flag_spec_F77= |
|
|
12197 | hardcode_direct_F77=no |
|
|
12198 | hardcode_libdir_flag_spec_F77= |
|
|
12199 | hardcode_libdir_flag_spec_ld_F77= |
|
|
12200 | hardcode_libdir_separator_F77= |
|
|
12201 | hardcode_minus_L_F77=no |
|
|
12202 | hardcode_automatic_F77=no |
|
|
12203 | module_cmds_F77= |
|
|
12204 | module_expsym_cmds_F77= |
|
|
12205 | link_all_deplibs_F77=unknown |
|
|
12206 | old_archive_cmds_F77=$old_archive_cmds |
|
|
12207 | no_undefined_flag_F77= |
|
|
12208 | whole_archive_flag_spec_F77= |
|
|
12209 | enable_shared_with_static_runtimes_F77=no |
|
|
12210 | |
|
|
12211 | # Source file extension for f77 test sources. |
|
|
12212 | ac_ext=f |
|
|
12213 | |
|
|
12214 | # Object file extension for compiled f77 test sources. |
|
|
12215 | objext=o |
|
|
12216 | objext_F77=$objext |
|
|
12217 | |
|
|
12218 | # Code to be used in simple compile tests |
|
|
12219 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
|
|
12220 | |
|
|
12221 | # Code to be used in simple link tests |
|
|
12222 | lt_simple_link_test_code=" program t\n end\n" |
|
|
12223 | |
|
|
12224 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
12225 | |
|
|
12226 | # If no C compiler was specified, use CC. |
|
|
12227 | LTCC=${LTCC-"$CC"} |
|
|
12228 | |
|
|
12229 | # If no C compiler flags were specified, use CFLAGS. |
|
|
12230 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
12231 | |
|
|
12232 | # Allow CC to be a program name with arguments. |
|
|
12233 | compiler=$CC |
|
|
12234 | |
|
|
12235 | |
|
|
12236 | # save warnings/boilerplate of simple test code |
|
|
12237 | ac_outfile=conftest.$ac_objext |
|
|
12238 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
12239 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
12240 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
12241 | $rm conftest* |
|
|
12242 | |
|
|
12243 | ac_outfile=conftest.$ac_objext |
|
|
12244 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
12245 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
12246 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
12247 | $rm conftest* |
|
|
12248 | |
|
|
12249 | |
|
|
12250 | # Allow CC to be a program name with arguments. |
|
|
12251 | lt_save_CC="$CC" |
|
|
12252 | CC=${F77-"f77"} |
|
|
12253 | compiler=$CC |
|
|
12254 | compiler_F77=$CC |
|
|
12255 | for cc_temp in $compiler""; do |
|
|
12256 | case $cc_temp in |
|
|
12257 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
12258 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
12259 | \-*) ;; |
|
|
12260 | *) break;; |
|
|
12261 | esac |
|
|
12262 | done |
|
|
12263 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
12264 | |
|
|
12265 | |
|
|
12266 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
12267 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
12268 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
12269 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
12270 | |
|
|
12271 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
|
|
12272 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 |
|
|
12273 | test "$can_build_shared" = "no" && enable_shared=no |
|
|
12274 | |
|
|
12275 | # On AIX, shared libraries and static libraries use the same namespace, and |
|
|
12276 | # are all built from PIC. |
|
|
12277 | case $host_os in |
|
|
12278 | aix3*) |
|
|
12279 | test "$enable_shared" = yes && enable_static=no |
|
|
12280 | if test -n "$RANLIB"; then |
|
|
12281 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
|
12282 | postinstall_cmds='$RANLIB $lib' |
|
|
12283 | fi |
|
|
12284 | ;; |
|
|
12285 | aix4* | aix5*) |
|
|
12286 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
|
12287 | test "$enable_shared" = yes && enable_static=no |
|
|
12288 | fi |
|
|
12289 | ;; |
|
|
12290 | esac |
|
|
12291 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
|
|
12292 | echo "${ECHO_T}$enable_shared" >&6 |
|
|
12293 | |
|
|
12294 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
|
|
12295 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 |
|
|
12296 | # Make sure either enable_shared or enable_static is yes. |
|
|
12297 | test "$enable_shared" = yes || enable_static=yes |
|
|
12298 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
|
|
12299 | echo "${ECHO_T}$enable_static" >&6 |
|
|
12300 | |
|
|
12301 | GCC_F77="$G77" |
|
|
12302 | LD_F77="$LD" |
|
|
12303 | |
|
|
12304 | lt_prog_compiler_wl_F77= |
|
|
12305 | lt_prog_compiler_pic_F77= |
|
|
12306 | lt_prog_compiler_static_F77= |
|
|
12307 | |
|
|
12308 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
12309 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
12310 | |
|
|
12311 | if test "$GCC" = yes; then |
|
|
12312 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12313 | lt_prog_compiler_static_F77='-static' |
|
|
12314 | |
|
|
12315 | case $host_os in |
|
|
12316 | aix*) |
|
|
12317 | # All AIX code is PIC. |
|
|
12318 | if test "$host_cpu" = ia64; then |
|
|
12319 | # AIX 5 now supports IA64 processor |
|
|
12320 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12321 | fi |
|
|
12322 | ;; |
|
|
12323 | |
|
|
12324 | amigaos*) |
|
|
12325 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
12326 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
12327 | # like `-m68040'. |
|
|
12328 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
|
|
12329 | ;; |
|
|
12330 | |
|
|
12331 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
12332 | # PIC is the default for these OSes. |
|
|
12333 | ;; |
|
|
12334 | |
|
|
12335 | mingw* | pw32* | os2*) |
|
|
12336 | # This hack is so that the source file can tell whether it is being |
|
|
12337 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12338 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12339 | ;; |
|
|
12340 | |
|
|
12341 | darwin* | rhapsody*) |
|
|
12342 | # PIC is the default on this platform |
|
|
12343 | # Common symbols not allowed in MH_DYLIB files |
|
|
12344 | lt_prog_compiler_pic_F77='-fno-common' |
|
|
12345 | ;; |
|
|
12346 | |
|
|
12347 | interix3*) |
|
|
12348 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
12349 | # Instead, we relocate shared libraries at runtime. |
|
|
12350 | ;; |
|
|
12351 | |
|
|
12352 | msdosdjgpp*) |
|
|
12353 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
12354 | # on systems that don't support them. |
|
|
12355 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12356 | enable_shared=no |
|
|
12357 | ;; |
|
|
12358 | |
|
|
12359 | sysv4*MP*) |
|
|
12360 | if test -d /usr/nec; then |
|
|
12361 | lt_prog_compiler_pic_F77=-Kconform_pic |
|
|
12362 | fi |
|
|
12363 | ;; |
|
|
12364 | |
|
|
12365 | hpux*) |
|
|
12366 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12367 | # not for PA HP-UX. |
|
|
12368 | case $host_cpu in |
|
|
12369 | hppa*64*|ia64*) |
|
|
12370 | # +Z the default |
|
|
12371 | ;; |
|
|
12372 | *) |
|
|
12373 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12374 | ;; |
|
|
12375 | esac |
|
|
12376 | ;; |
|
|
12377 | |
|
|
12378 | *) |
|
|
12379 | lt_prog_compiler_pic_F77='-fPIC' |
|
|
12380 | ;; |
|
|
12381 | esac |
|
|
12382 | else |
|
|
12383 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
12384 | case $host_os in |
|
|
12385 | aix*) |
|
|
12386 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12387 | if test "$host_cpu" = ia64; then |
|
|
12388 | # AIX 5 now supports IA64 processor |
|
|
12389 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12390 | else |
|
|
12391 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
|
|
12392 | fi |
|
|
12393 | ;; |
|
|
12394 | darwin*) |
|
|
12395 | # PIC is the default on this platform |
|
|
12396 | # Common symbols not allowed in MH_DYLIB files |
|
|
12397 | case $cc_basename in |
|
|
12398 | xlc*) |
|
|
12399 | lt_prog_compiler_pic_F77='-qnocommon' |
|
|
12400 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12401 | ;; |
|
|
12402 | esac |
|
|
12403 | ;; |
|
|
12404 | |
|
|
12405 | mingw* | pw32* | os2*) |
|
|
12406 | # This hack is so that the source file can tell whether it is being |
|
|
12407 | # built for inclusion in a dll (and should export symbols for example). |
|
|
12408 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
|
|
12409 | ;; |
|
|
12410 | |
|
|
12411 | hpux9* | hpux10* | hpux11*) |
|
|
12412 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12413 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
12414 | # not for PA HP-UX. |
|
|
12415 | case $host_cpu in |
|
|
12416 | hppa*64*|ia64*) |
|
|
12417 | # +Z the default |
|
|
12418 | ;; |
|
|
12419 | *) |
|
|
12420 | lt_prog_compiler_pic_F77='+Z' |
|
|
12421 | ;; |
|
|
12422 | esac |
|
|
12423 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
12424 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
|
|
12425 | ;; |
|
|
12426 | |
|
|
12427 | irix5* | irix6* | nonstopux*) |
|
|
12428 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12429 | # PIC (with -KPIC) is the default. |
|
|
12430 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12431 | ;; |
|
|
12432 | |
|
|
12433 | newsos6) |
|
|
12434 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12435 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12436 | ;; |
|
|
12437 | |
|
|
12438 | linux*) |
|
|
12439 | case $cc_basename in |
|
|
12440 | icc* | ecc*) |
|
|
12441 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12442 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12443 | lt_prog_compiler_static_F77='-static' |
|
|
12444 | ;; |
|
|
12445 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
12446 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
12447 | # which looks to be a dead project) |
|
|
12448 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12449 | lt_prog_compiler_pic_F77='-fpic' |
|
|
12450 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12451 | ;; |
|
|
12452 | ccc*) |
|
|
12453 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12454 | # All Alpha code is PIC. |
|
|
12455 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12456 | ;; |
|
|
12457 | esac |
|
|
12458 | ;; |
|
|
12459 | |
|
|
12460 | osf3* | osf4* | osf5*) |
|
|
12461 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12462 | # All OSF/1 code is PIC. |
|
|
12463 | lt_prog_compiler_static_F77='-non_shared' |
|
|
12464 | ;; |
|
|
12465 | |
|
|
12466 | solaris*) |
|
|
12467 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12468 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12469 | case $cc_basename in |
|
|
12470 | f77* | f90* | f95*) |
|
|
12471 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
|
|
12472 | *) |
|
|
12473 | lt_prog_compiler_wl_F77='-Wl,';; |
|
|
12474 | esac |
|
|
12475 | ;; |
|
|
12476 | |
|
|
12477 | sunos4*) |
|
|
12478 | lt_prog_compiler_wl_F77='-Qoption ld ' |
|
|
12479 | lt_prog_compiler_pic_F77='-PIC' |
|
|
12480 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12481 | ;; |
|
|
12482 | |
|
|
12483 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
12484 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12485 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12486 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12487 | ;; |
|
|
12488 | |
|
|
12489 | sysv4*MP*) |
|
|
12490 | if test -d /usr/nec ;then |
|
|
12491 | lt_prog_compiler_pic_F77='-Kconform_pic' |
|
|
12492 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12493 | fi |
|
|
12494 | ;; |
|
|
12495 | |
|
|
12496 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
12497 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12498 | lt_prog_compiler_pic_F77='-KPIC' |
|
|
12499 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12500 | ;; |
|
|
12501 | |
|
|
12502 | unicos*) |
|
|
12503 | lt_prog_compiler_wl_F77='-Wl,' |
|
|
12504 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12505 | ;; |
|
|
12506 | |
|
|
12507 | uts4*) |
|
|
12508 | lt_prog_compiler_pic_F77='-pic' |
|
|
12509 | lt_prog_compiler_static_F77='-Bstatic' |
|
|
12510 | ;; |
|
|
12511 | |
|
|
12512 | *) |
|
|
12513 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12514 | ;; |
|
|
12515 | esac |
|
|
12516 | fi |
|
|
12517 | |
|
|
12518 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
|
|
12519 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 |
|
|
12520 | |
|
|
12521 | # |
|
|
12522 | # Check to make sure the PIC flag actually works. |
|
|
12523 | # |
|
|
12524 | if test -n "$lt_prog_compiler_pic_F77"; then |
|
|
12525 | |
|
|
12526 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
|
|
12527 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 |
|
|
12528 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
|
|
12529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12530 | else |
|
|
12531 | lt_prog_compiler_pic_works_F77=no |
|
|
12532 | ac_outfile=conftest.$ac_objext |
|
|
12533 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
12534 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
|
|
12535 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
12536 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
12537 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
12538 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
12539 | # The option is referenced via a variable to avoid confusing sed. |
|
|
12540 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
12541 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
12542 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
12543 | -e 's:$: $lt_compiler_flag:'` |
|
|
12544 | (eval echo "\"\$as_me:12544: $lt_compile\"" >&5) |
|
|
12545 | (eval "$lt_compile" 2>conftest.err) |
|
|
12546 | ac_status=$? |
|
|
12547 | cat conftest.err >&5 |
|
|
12548 | echo "$as_me:12548: \$? = $ac_status" >&5 |
|
|
12549 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
12550 | # The compiler can only warn and ignore the option if not recognized |
|
|
12551 | # So say no if there are warnings other than the usual output. |
|
|
12552 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
12553 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12554 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
12555 | lt_prog_compiler_pic_works_F77=yes |
|
|
12556 | fi |
|
|
12557 | fi |
|
|
12558 | $rm conftest* |
|
|
12559 | |
|
|
12560 | fi |
|
|
12561 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
|
|
12562 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 |
|
|
12563 | |
|
|
12564 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
|
|
12565 | case $lt_prog_compiler_pic_F77 in |
|
|
12566 | "" | " "*) ;; |
|
|
12567 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
|
|
12568 | esac |
|
|
12569 | else |
|
|
12570 | lt_prog_compiler_pic_F77= |
|
|
12571 | lt_prog_compiler_can_build_shared_F77=no |
|
|
12572 | fi |
|
|
12573 | |
|
|
12574 | fi |
|
|
12575 | case $host_os in |
|
|
12576 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
12577 | *djgpp*) |
|
|
12578 | lt_prog_compiler_pic_F77= |
|
|
12579 | ;; |
|
|
12580 | *) |
|
|
12581 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
|
|
12582 | ;; |
|
|
12583 | esac |
|
|
12584 | |
|
|
12585 | # |
|
|
12586 | # Check to make sure the static flag actually works. |
|
|
12587 | # |
|
|
12588 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
|
|
12589 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
12590 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
12591 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
|
|
12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12593 | else |
|
|
12594 | lt_prog_compiler_static_works_F77=no |
|
|
12595 | save_LDFLAGS="$LDFLAGS" |
|
|
12596 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
12597 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
12598 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
12599 | # The linker can only warn and ignore the option if not recognized |
|
|
12600 | # So say no if there are warnings |
|
|
12601 | if test -s conftest.err; then |
|
|
12602 | # Append any errors to the config.log. |
|
|
12603 | cat conftest.err 1>&5 |
|
|
12604 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
12605 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
12606 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
12607 | lt_prog_compiler_static_works_F77=yes |
|
|
12608 | fi |
|
|
12609 | else |
|
|
12610 | lt_prog_compiler_static_works_F77=yes |
|
|
12611 | fi |
|
|
12612 | fi |
|
|
12613 | $rm conftest* |
|
|
12614 | LDFLAGS="$save_LDFLAGS" |
|
|
12615 | |
|
|
12616 | fi |
|
|
12617 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
|
|
12618 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 |
|
|
12619 | |
|
|
12620 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
|
|
12621 | : |
|
|
12622 | else |
|
|
12623 | lt_prog_compiler_static_F77= |
|
|
12624 | fi |
|
|
12625 | |
|
|
12626 | |
|
|
12627 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
12628 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
12629 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
|
|
12630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12631 | else |
|
|
12632 | lt_cv_prog_compiler_c_o_F77=no |
|
|
12633 | $rm -r conftest 2>/dev/null |
|
|
12634 | mkdir conftest |
|
|
12635 | cd conftest |
|
|
12636 | mkdir out |
|
|
12637 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
12638 | |
|
|
12639 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
12640 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
12641 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
12642 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
12643 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
12644 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
12645 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
12646 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
12647 | -e 's:$: $lt_compiler_flag:'` |
|
|
12648 | (eval echo "\"\$as_me:12648: $lt_compile\"" >&5) |
|
|
12649 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
12650 | ac_status=$? |
|
|
12651 | cat out/conftest.err >&5 |
|
|
12652 | echo "$as_me:12652: \$? = $ac_status" >&5 |
|
|
12653 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
12654 | then |
|
|
12655 | # The compiler can only warn and ignore the option if not recognized |
|
|
12656 | # So say no if there are warnings |
|
|
12657 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
12658 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
12659 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
12660 | lt_cv_prog_compiler_c_o_F77=yes |
|
|
12661 | fi |
|
|
12662 | fi |
|
|
12663 | chmod u+w . 2>&5 |
|
|
12664 | $rm conftest* |
|
|
12665 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
12666 | # template instantiation |
|
|
12667 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
12668 | $rm out/* && rmdir out |
|
|
12669 | cd .. |
|
|
12670 | rmdir conftest |
|
|
12671 | $rm conftest* |
|
|
12672 | |
|
|
12673 | fi |
|
|
12674 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
|
|
12675 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 |
|
|
12676 | |
|
|
12677 | |
|
|
12678 | hard_links="nottested" |
|
|
12679 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
|
|
12680 | # do not overwrite the value of need_locks provided by the user |
|
|
12681 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
12682 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
12683 | hard_links=yes |
|
|
12684 | $rm conftest* |
|
|
12685 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
12686 | touch conftest.a |
|
|
12687 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
12688 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
12689 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
12690 | echo "${ECHO_T}$hard_links" >&6 |
|
|
12691 | if test "$hard_links" = no; then |
|
|
12692 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
12693 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
12694 | need_locks=warn |
|
|
12695 | fi |
|
|
12696 | else |
|
|
12697 | need_locks=no |
|
|
12698 | fi |
|
|
12699 | |
|
|
12700 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
12701 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
12702 | |
|
|
12703 | runpath_var= |
|
|
12704 | allow_undefined_flag_F77= |
|
|
12705 | enable_shared_with_static_runtimes_F77=no |
|
|
12706 | archive_cmds_F77= |
|
|
12707 | archive_expsym_cmds_F77= |
|
|
12708 | old_archive_From_new_cmds_F77= |
|
|
12709 | old_archive_from_expsyms_cmds_F77= |
|
|
12710 | export_dynamic_flag_spec_F77= |
|
|
12711 | whole_archive_flag_spec_F77= |
|
|
12712 | thread_safe_flag_spec_F77= |
|
|
12713 | hardcode_libdir_flag_spec_F77= |
|
|
12714 | hardcode_libdir_flag_spec_ld_F77= |
|
|
12715 | hardcode_libdir_separator_F77= |
|
|
12716 | hardcode_direct_F77=no |
|
|
12717 | hardcode_minus_L_F77=no |
|
|
12718 | hardcode_shlibpath_var_F77=unsupported |
|
|
12719 | link_all_deplibs_F77=unknown |
|
|
12720 | hardcode_automatic_F77=no |
|
|
12721 | module_cmds_F77= |
|
|
12722 | module_expsym_cmds_F77= |
|
|
12723 | always_export_symbols_F77=no |
|
|
12724 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
12725 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
12726 | # included in the symbol list |
|
|
12727 | include_expsyms_F77= |
|
|
12728 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
12729 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
12730 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
12731 | # as well as any symbol that contains `d'. |
|
|
12732 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
|
|
12733 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
12734 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
12735 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
12736 | # rely on this symbol name, it's probably fine to never include it in |
|
|
12737 | # preloaded symbol tables. |
|
|
12738 | extract_expsyms_cmds= |
|
|
12739 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
12740 | for cc_temp in $compiler""; do |
|
|
12741 | case $cc_temp in |
|
|
12742 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
12743 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
12744 | \-*) ;; |
|
|
12745 | *) break;; |
|
|
12746 | esac |
|
|
12747 | done |
|
|
12748 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
12749 | |
|
|
12750 | case $host_os in |
|
|
12751 | cygwin* | mingw* | pw32*) |
|
|
12752 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
12753 | # When not using gcc, we currently assume that we are using |
|
|
12754 | # Microsoft Visual C++. |
|
|
12755 | if test "$GCC" != yes; then |
|
|
12756 | with_gnu_ld=no |
|
|
12757 | fi |
|
|
12758 | ;; |
|
|
12759 | interix*) |
|
|
12760 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
12761 | with_gnu_ld=yes |
|
|
12762 | ;; |
|
|
12763 | openbsd*) |
|
|
12764 | with_gnu_ld=no |
|
|
12765 | ;; |
|
|
12766 | esac |
|
|
12767 | |
|
|
12768 | ld_shlibs_F77=yes |
|
|
12769 | if test "$with_gnu_ld" = yes; then |
|
|
12770 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
12771 | wlarc='${wl}' |
|
|
12772 | |
|
|
12773 | # Set some defaults for GNU ld with shared library support. These |
|
|
12774 | # are reset later if shared libraries are not supported. Putting them |
|
|
12775 | # here allows them to be overridden if necessary. |
|
|
12776 | runpath_var=LD_RUN_PATH |
|
|
12777 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
|
|
12778 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
|
|
12779 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
12780 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
12781 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
12782 | else |
|
|
12783 | whole_archive_flag_spec_F77= |
|
|
12784 | fi |
|
|
12785 | supports_anon_versioning=no |
|
|
12786 | case `$LD -v 2>/dev/null` in |
|
|
12787 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
12788 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
12789 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
12790 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
12791 | *) supports_anon_versioning=yes ;; |
|
|
12792 | esac |
|
|
12793 | |
|
|
12794 | # See if GNU ld supports shared libraries. |
|
|
12795 | case $host_os in |
|
|
12796 | aix3* | aix4* | aix5*) |
|
|
12797 | # On AIX/PPC, the GNU linker is very broken |
|
|
12798 | if test "$host_cpu" != ia64; then |
|
|
12799 | ld_shlibs_F77=no |
|
|
12800 | cat <<EOF 1>&2 |
|
|
12801 | |
|
|
12802 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
12803 | *** to be unable to reliably create shared libraries on AIX. |
|
|
12804 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
12805 | *** really care for shared libraries, you may want to modify your PATH |
|
|
12806 | *** so that a non-GNU linker is found, and then restart. |
|
|
12807 | |
|
|
12808 | EOF |
|
|
12809 | fi |
|
|
12810 | ;; |
|
|
12811 | |
|
|
12812 | amigaos*) |
|
|
12813 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
12814 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
12815 | hardcode_minus_L_F77=yes |
|
|
12816 | |
|
|
12817 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
12818 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
12819 | # to version 4, is to share data among multiple programs linked |
|
|
12820 | # with the same dynamic library. Since this doesn't match the |
|
|
12821 | # behavior of shared libraries on other platforms, we can't use |
|
|
12822 | # them. |
|
|
12823 | ld_shlibs_F77=no |
|
|
12824 | ;; |
|
|
12825 | |
|
|
12826 | beos*) |
|
|
12827 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12828 | allow_undefined_flag_F77=unsupported |
|
|
12829 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
12830 | # support --undefined. This deserves some investigation. FIXME |
|
|
12831 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12832 | else |
|
|
12833 | ld_shlibs_F77=no |
|
|
12834 | fi |
|
|
12835 | ;; |
|
|
12836 | |
|
|
12837 | cygwin* | mingw* | pw32*) |
|
|
12838 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
|
|
12839 | # as there is no search path for DLLs. |
|
|
12840 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
12841 | allow_undefined_flag_F77=unsupported |
|
|
12842 | always_export_symbols_F77=no |
|
|
12843 | enable_shared_with_static_runtimes_F77=yes |
|
|
12844 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
12845 | |
|
|
12846 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
12847 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
12848 | # If the export-symbols file already is a .def file (1st line |
|
|
12849 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
12850 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
12851 | cp $export_symbols $output_objdir/$soname.def; |
|
|
12852 | else |
|
|
12853 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
12854 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
12855 | fi~ |
|
|
12856 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
12857 | else |
|
|
12858 | ld_shlibs_F77=no |
|
|
12859 | fi |
|
|
12860 | ;; |
|
|
12861 | |
|
|
12862 | interix3*) |
|
|
12863 | hardcode_direct_F77=no |
|
|
12864 | hardcode_shlibpath_var_F77=no |
|
|
12865 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
12866 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
12867 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
12868 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
12869 | # default) and relocated if they conflict, which is a slow very memory |
|
|
12870 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
12871 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
12872 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
12873 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
12874 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
12875 | ;; |
|
|
12876 | |
|
|
12877 | linux*) |
|
|
12878 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12879 | tmp_addflag= |
|
|
12880 | case $cc_basename,$host_cpu in |
|
|
12881 | pgcc*) # Portland Group C compiler |
|
|
12882 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
12883 | tmp_addflag=' $pic_flag' |
|
|
12884 | ;; |
|
|
12885 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
12886 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
12887 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
12888 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
12889 | tmp_addflag=' -i_dynamic' ;; |
|
|
12890 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
12891 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
12892 | ifc* | ifort*) # Intel Fortran compiler |
|
|
12893 | tmp_addflag=' -nofor_main' ;; |
|
|
12894 | esac |
|
|
12895 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12896 | |
|
|
12897 | if test $supports_anon_versioning = yes; then |
|
|
12898 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
12899 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
12900 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
12901 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
12902 | fi |
|
|
12903 | link_all_deplibs_F77=no |
|
|
12904 | else |
|
|
12905 | ld_shlibs_F77=no |
|
|
12906 | fi |
|
|
12907 | ;; |
|
|
12908 | |
|
|
12909 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
12910 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
12911 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
12912 | wlarc= |
|
|
12913 | else |
|
|
12914 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12915 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12916 | fi |
|
|
12917 | ;; |
|
|
12918 | |
|
|
12919 | solaris*) |
|
|
12920 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
12921 | ld_shlibs_F77=no |
|
|
12922 | cat <<EOF 1>&2 |
|
|
12923 | |
|
|
12924 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
12925 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
12926 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
12927 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
12928 | *** your PATH or compiler configuration so that the native linker is |
|
|
12929 | *** used, and then restart. |
|
|
12930 | |
|
|
12931 | EOF |
|
|
12932 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12933 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12934 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12935 | else |
|
|
12936 | ld_shlibs_F77=no |
|
|
12937 | fi |
|
|
12938 | ;; |
|
|
12939 | |
|
|
12940 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
12941 | case `$LD -v 2>&1` in |
|
|
12942 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
12943 | ld_shlibs_F77=no |
|
|
12944 | cat <<_LT_EOF 1>&2 |
|
|
12945 | |
|
|
12946 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
12947 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
12948 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
12949 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
12950 | *** your PATH or compiler configuration so that the native linker is |
|
|
12951 | *** used, and then restart. |
|
|
12952 | |
|
|
12953 | _LT_EOF |
|
|
12954 | ;; |
|
|
12955 | *) |
|
|
12956 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12957 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
12958 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
12959 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
12960 | else |
|
|
12961 | ld_shlibs_F77=no |
|
|
12962 | fi |
|
|
12963 | ;; |
|
|
12964 | esac |
|
|
12965 | ;; |
|
|
12966 | |
|
|
12967 | sunos4*) |
|
|
12968 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
12969 | wlarc= |
|
|
12970 | hardcode_direct_F77=yes |
|
|
12971 | hardcode_shlibpath_var_F77=no |
|
|
12972 | ;; |
|
|
12973 | |
|
|
12974 | *) |
|
|
12975 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
12976 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
12977 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
12978 | else |
|
|
12979 | ld_shlibs_F77=no |
|
|
12980 | fi |
|
|
12981 | ;; |
|
|
12982 | esac |
|
|
12983 | |
|
|
12984 | if test "$ld_shlibs_F77" = no; then |
|
|
12985 | runpath_var= |
|
|
12986 | hardcode_libdir_flag_spec_F77= |
|
|
12987 | export_dynamic_flag_spec_F77= |
|
|
12988 | whole_archive_flag_spec_F77= |
|
|
12989 | fi |
|
|
12990 | else |
|
|
12991 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
12992 | case $host_os in |
|
|
12993 | aix3*) |
|
|
12994 | allow_undefined_flag_F77=unsupported |
|
|
12995 | always_export_symbols_F77=yes |
|
|
12996 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
12997 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
12998 | # are no directories specified by -L. |
|
|
12999 | hardcode_minus_L_F77=yes |
|
|
13000 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
13001 | # Neither direct hardcoding nor static linking is supported with a |
|
|
13002 | # broken collect2. |
|
|
13003 | hardcode_direct_F77=unsupported |
|
|
13004 | fi |
|
|
13005 | ;; |
|
|
13006 | |
|
|
13007 | aix4* | aix5*) |
|
|
13008 | if test "$host_cpu" = ia64; then |
|
|
13009 | # On IA64, the linker does run time linking by default, so we don't |
|
|
13010 | # have to do anything special. |
|
|
13011 | aix_use_runtimelinking=no |
|
|
13012 | exp_sym_flag='-Bexport' |
|
|
13013 | no_entry_flag="" |
|
|
13014 | else |
|
|
13015 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
13016 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
13017 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
13018 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
13019 | else |
|
|
13020 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
13021 | fi |
|
|
13022 | aix_use_runtimelinking=no |
|
|
13023 | |
|
|
13024 | # Test if we are trying to use run time linking or normal |
|
|
13025 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
13026 | # need to do runtime linking. |
|
|
13027 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
13028 | for ld_flag in $LDFLAGS; do |
|
|
13029 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
13030 | aix_use_runtimelinking=yes |
|
|
13031 | break |
|
|
13032 | fi |
|
|
13033 | done |
|
|
13034 | ;; |
|
|
13035 | esac |
|
|
13036 | |
|
|
13037 | exp_sym_flag='-bexport' |
|
|
13038 | no_entry_flag='-bnoentry' |
|
|
13039 | fi |
|
|
13040 | |
|
|
13041 | # When large executables or shared objects are built, AIX ld can |
|
|
13042 | # have problems creating the table of contents. If linking a library |
|
|
13043 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
13044 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
13045 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
13046 | |
|
|
13047 | archive_cmds_F77='' |
|
|
13048 | hardcode_direct_F77=yes |
|
|
13049 | hardcode_libdir_separator_F77=':' |
|
|
13050 | link_all_deplibs_F77=yes |
|
|
13051 | |
|
|
13052 | if test "$GCC" = yes; then |
|
|
13053 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
13054 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
13055 | # below for broken collect2 doesn't work under 4.3+ |
|
|
13056 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
13057 | if test -f "$collect2name" && \ |
|
|
13058 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
13059 | then |
|
|
13060 | # We have reworked collect2 |
|
|
13061 | hardcode_direct_F77=yes |
|
|
13062 | else |
|
|
13063 | # We have old collect2 |
|
|
13064 | hardcode_direct_F77=unsupported |
|
|
13065 | # It fails to find uninstalled libraries when the uninstalled |
|
|
13066 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
13067 | # to unsupported forces relinking |
|
|
13068 | hardcode_minus_L_F77=yes |
|
|
13069 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13070 | hardcode_libdir_separator_F77= |
|
|
13071 | fi |
|
|
13072 | ;; |
|
|
13073 | esac |
|
|
13074 | shared_flag='-shared' |
|
|
13075 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13076 | shared_flag="$shared_flag "'${wl}-G' |
|
|
13077 | fi |
|
|
13078 | else |
|
|
13079 | # not using gcc |
|
|
13080 | if test "$host_cpu" = ia64; then |
|
|
13081 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
13082 | # chokes on -Wl,-G. The following line is correct: |
|
|
13083 | shared_flag='-G' |
|
|
13084 | else |
|
|
13085 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13086 | shared_flag='${wl}-G' |
|
|
13087 | else |
|
|
13088 | shared_flag='${wl}-bM:SRE' |
|
|
13089 | fi |
|
|
13090 | fi |
|
|
13091 | fi |
|
|
13092 | |
|
|
13093 | # It seems that -bexpall does not export symbols beginning with |
|
|
13094 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
13095 | always_export_symbols_F77=yes |
|
|
13096 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13097 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
13098 | # -berok will link without error, but may produce a broken library. |
|
|
13099 | allow_undefined_flag_F77='-berok' |
|
|
13100 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13101 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13102 | program main |
|
|
13103 | |
|
|
13104 | end |
2531 | _ACEOF |
13105 | _ACEOF |
|
|
13106 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13108 | (eval $ac_link) 2>conftest.er1 |
|
|
13109 | ac_status=$? |
|
|
13110 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13111 | rm -f conftest.er1 |
|
|
13112 | cat conftest.err >&5 |
|
|
13113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13114 | (exit $ac_status); } && |
|
|
13115 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13117 | (eval $ac_try) 2>&5 |
|
|
13118 | ac_status=$? |
|
|
13119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13120 | (exit $ac_status); }; } && |
|
|
13121 | { ac_try='test -s conftest$ac_exeext' |
|
|
13122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13123 | (eval $ac_try) 2>&5 |
|
|
13124 | ac_status=$? |
|
|
13125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13126 | (exit $ac_status); }; }; then |
2532 | |
13127 | |
|
|
13128 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13129 | }'` |
|
|
13130 | # Check for a 64-bit object if we didn't find anything. |
|
|
13131 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13132 | }'`; fi |
|
|
13133 | else |
|
|
13134 | echo "$as_me: failed program was:" >&5 |
|
|
13135 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13136 | |
|
|
13137 | fi |
|
|
13138 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13139 | conftest$ac_exeext conftest.$ac_ext |
|
|
13140 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13141 | |
|
|
13142 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13143 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
13144 | else |
|
|
13145 | if test "$host_cpu" = ia64; then |
|
|
13146 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
|
|
13147 | allow_undefined_flag_F77="-z nodefs" |
|
|
13148 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
|
|
13149 | else |
|
|
13150 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
13151 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13152 | program main |
|
|
13153 | |
|
|
13154 | end |
|
|
13155 | _ACEOF |
|
|
13156 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
13157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13158 | (eval $ac_link) 2>conftest.er1 |
|
|
13159 | ac_status=$? |
|
|
13160 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13161 | rm -f conftest.er1 |
|
|
13162 | cat conftest.err >&5 |
|
|
13163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13164 | (exit $ac_status); } && |
|
|
13165 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
|
|
13166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13167 | (eval $ac_try) 2>&5 |
|
|
13168 | ac_status=$? |
|
|
13169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13170 | (exit $ac_status); }; } && |
|
|
13171 | { ac_try='test -s conftest$ac_exeext' |
|
|
13172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13173 | (eval $ac_try) 2>&5 |
|
|
13174 | ac_status=$? |
|
|
13175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13176 | (exit $ac_status); }; }; then |
|
|
13177 | |
|
|
13178 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13179 | }'` |
|
|
13180 | # Check for a 64-bit object if we didn't find anything. |
|
|
13181 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
13182 | }'`; fi |
|
|
13183 | else |
|
|
13184 | echo "$as_me: failed program was:" >&5 |
|
|
13185 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13186 | |
|
|
13187 | fi |
|
|
13188 | rm -f conftest.err conftest.$ac_objext \ |
|
|
13189 | conftest$ac_exeext conftest.$ac_ext |
|
|
13190 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
13191 | |
|
|
13192 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
13193 | # Warning - without using the other run time loading flags, |
|
|
13194 | # -berok will link without error, but may produce a broken library. |
|
|
13195 | no_undefined_flag_F77=' ${wl}-bernotok' |
|
|
13196 | allow_undefined_flag_F77=' ${wl}-berok' |
|
|
13197 | # Exported symbols can be pulled into shared objects from archives |
|
|
13198 | whole_archive_flag_spec_F77='$convenience' |
|
|
13199 | archive_cmds_need_lc_F77=yes |
|
|
13200 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
13201 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
2533 | fi |
13202 | fi |
|
|
13203 | fi |
|
|
13204 | ;; |
2534 | |
13205 | |
|
|
13206 | amigaos*) |
|
|
13207 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
13208 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13209 | hardcode_minus_L_F77=yes |
|
|
13210 | # see comment about different semantics on the GNU ld section |
|
|
13211 | ld_shlibs_F77=no |
|
|
13212 | ;; |
|
|
13213 | |
|
|
13214 | bsdi[45]*) |
|
|
13215 | export_dynamic_flag_spec_F77=-rdynamic |
|
|
13216 | ;; |
|
|
13217 | |
|
|
13218 | cygwin* | mingw* | pw32*) |
|
|
13219 | # When not using gcc, we currently assume that we are using |
|
|
13220 | # Microsoft Visual C++. |
|
|
13221 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
13222 | # no search path for DLLs. |
|
|
13223 | hardcode_libdir_flag_spec_F77=' ' |
|
|
13224 | allow_undefined_flag_F77=unsupported |
|
|
13225 | # Tell ltmain to make .lib files, not .a files. |
|
|
13226 | libext=lib |
|
|
13227 | # Tell ltmain to make .dll files, not .so files. |
|
|
13228 | shrext_cmds=".dll" |
|
|
13229 | # FIXME: Setting linknames here is a bad hack. |
|
|
13230 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
13231 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
13232 | old_archive_From_new_cmds_F77='true' |
|
|
13233 | # FIXME: Should let the user specify the lib program. |
|
|
13234 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
13235 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
|
|
13236 | enable_shared_with_static_runtimes_F77=yes |
|
|
13237 | ;; |
|
|
13238 | |
|
|
13239 | darwin* | rhapsody*) |
|
|
13240 | case $host_os in |
|
|
13241 | rhapsody* | darwin1.[012]) |
|
|
13242 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
|
|
13243 | ;; |
|
|
13244 | *) # Darwin 1.3 on |
|
|
13245 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
13246 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
13247 | else |
|
|
13248 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
13249 | 10.[012]) |
|
|
13250 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
13251 | ;; |
|
|
13252 | 10.*) |
|
|
13253 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
|
|
13254 | ;; |
|
|
13255 | esac |
|
|
13256 | fi |
|
|
13257 | ;; |
|
|
13258 | esac |
|
|
13259 | archive_cmds_need_lc_F77=no |
|
|
13260 | hardcode_direct_F77=no |
|
|
13261 | hardcode_automatic_F77=yes |
|
|
13262 | hardcode_shlibpath_var_F77=unsupported |
|
|
13263 | whole_archive_flag_spec_F77='' |
|
|
13264 | link_all_deplibs_F77=yes |
|
|
13265 | if test "$GCC" = yes ; then |
|
|
13266 | output_verbose_link_cmd='echo' |
|
|
13267 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
13268 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
13269 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
13270 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13271 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13272 | else |
|
|
13273 | case $cc_basename in |
|
|
13274 | xlc*) |
|
|
13275 | output_verbose_link_cmd='echo' |
|
|
13276 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
13277 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
13278 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
13279 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13280 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
13281 | ;; |
|
|
13282 | *) |
|
|
13283 | ld_shlibs_F77=no |
|
|
13284 | ;; |
|
|
13285 | esac |
|
|
13286 | fi |
|
|
13287 | ;; |
|
|
13288 | |
|
|
13289 | dgux*) |
|
|
13290 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13291 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13292 | hardcode_shlibpath_var_F77=no |
|
|
13293 | ;; |
|
|
13294 | |
|
|
13295 | freebsd1*) |
|
|
13296 | ld_shlibs_F77=no |
|
|
13297 | ;; |
|
|
13298 | |
|
|
13299 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
13300 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
13301 | # does not break anything, and helps significantly (at the cost of a little |
|
|
13302 | # extra space). |
|
|
13303 | freebsd2.2*) |
|
|
13304 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
13305 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13306 | hardcode_direct_F77=yes |
|
|
13307 | hardcode_shlibpath_var_F77=no |
|
|
13308 | ;; |
|
|
13309 | |
|
|
13310 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
13311 | freebsd2*) |
|
|
13312 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13313 | hardcode_direct_F77=yes |
|
|
13314 | hardcode_minus_L_F77=yes |
|
|
13315 | hardcode_shlibpath_var_F77=no |
|
|
13316 | ;; |
|
|
13317 | |
|
|
13318 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
13319 | freebsd* | dragonfly*) |
|
|
13320 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13321 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13322 | hardcode_direct_F77=yes |
|
|
13323 | hardcode_shlibpath_var_F77=no |
|
|
13324 | ;; |
|
|
13325 | |
|
|
13326 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
13327 | kfreebsd*-gnu) |
|
|
13328 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13329 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13330 | hardcode_direct_F77=yes |
|
|
13331 | hardcode_shlibpath_var_F77=no |
|
|
13332 | link_all_deplibs_F77=no |
|
|
13333 | ;; |
|
|
13334 | |
|
|
13335 | hpux9*) |
|
|
13336 | if test "$GCC" = yes; then |
|
|
13337 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
13338 | else |
|
|
13339 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
13340 | fi |
|
|
13341 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13342 | hardcode_libdir_separator_F77=: |
|
|
13343 | hardcode_direct_F77=yes |
|
|
13344 | |
|
|
13345 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13346 | # but as the default location of the library. |
|
|
13347 | hardcode_minus_L_F77=yes |
|
|
13348 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13349 | ;; |
|
|
13350 | |
|
|
13351 | hpux10*) |
|
|
13352 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
13353 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13354 | else |
|
|
13355 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
13356 | fi |
|
|
13357 | if test "$with_gnu_ld" = no; then |
|
|
13358 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13359 | hardcode_libdir_separator_F77=: |
|
|
13360 | |
|
|
13361 | hardcode_direct_F77=yes |
|
|
13362 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13363 | |
|
|
13364 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13365 | # but as the default location of the library. |
|
|
13366 | hardcode_minus_L_F77=yes |
|
|
13367 | fi |
|
|
13368 | ;; |
|
|
13369 | |
|
|
13370 | hpux11*) |
|
|
13371 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
13372 | case $host_cpu in |
|
|
13373 | hppa*64*) |
|
|
13374 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13375 | ;; |
|
|
13376 | ia64*) |
|
|
13377 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13378 | ;; |
|
|
13379 | *) |
|
|
13380 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13381 | ;; |
|
|
13382 | esac |
|
|
13383 | else |
|
|
13384 | case $host_cpu in |
|
|
13385 | hppa*64*) |
|
|
13386 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13387 | ;; |
|
|
13388 | ia64*) |
|
|
13389 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13390 | ;; |
|
|
13391 | *) |
|
|
13392 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13393 | ;; |
|
|
13394 | esac |
|
|
13395 | fi |
|
|
13396 | if test "$with_gnu_ld" = no; then |
|
|
13397 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
|
|
13398 | hardcode_libdir_separator_F77=: |
|
|
13399 | |
|
|
13400 | case $host_cpu in |
|
|
13401 | hppa*64*|ia64*) |
|
|
13402 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
|
|
13403 | hardcode_direct_F77=no |
|
|
13404 | hardcode_shlibpath_var_F77=no |
|
|
13405 | ;; |
|
|
13406 | *) |
|
|
13407 | hardcode_direct_F77=yes |
|
|
13408 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13409 | |
|
|
13410 | # hardcode_minus_L: Not really in the search PATH, |
|
|
13411 | # but as the default location of the library. |
|
|
13412 | hardcode_minus_L_F77=yes |
|
|
13413 | ;; |
|
|
13414 | esac |
|
|
13415 | fi |
|
|
13416 | ;; |
|
|
13417 | |
|
|
13418 | irix5* | irix6* | nonstopux*) |
|
|
13419 | if test "$GCC" = yes; then |
|
|
13420 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13421 | else |
|
|
13422 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13423 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
|
|
13424 | fi |
|
|
13425 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13426 | hardcode_libdir_separator_F77=: |
|
|
13427 | link_all_deplibs_F77=yes |
|
|
13428 | ;; |
|
|
13429 | |
|
|
13430 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
13431 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
13432 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
13433 | else |
|
|
13434 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
13435 | fi |
|
|
13436 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13437 | hardcode_direct_F77=yes |
|
|
13438 | hardcode_shlibpath_var_F77=no |
|
|
13439 | ;; |
|
|
13440 | |
|
|
13441 | newsos6) |
|
|
13442 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13443 | hardcode_direct_F77=yes |
|
|
13444 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13445 | hardcode_libdir_separator_F77=: |
|
|
13446 | hardcode_shlibpath_var_F77=no |
|
|
13447 | ;; |
|
|
13448 | |
|
|
13449 | openbsd*) |
|
|
13450 | hardcode_direct_F77=yes |
|
|
13451 | hardcode_shlibpath_var_F77=no |
|
|
13452 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
13453 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13454 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
13455 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13456 | export_dynamic_flag_spec_F77='${wl}-E' |
|
|
13457 | else |
|
|
13458 | case $host_os in |
|
|
13459 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
13460 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
13461 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13462 | ;; |
|
|
13463 | *) |
|
|
13464 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13465 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
|
|
13466 | ;; |
|
|
13467 | esac |
|
|
13468 | fi |
|
|
13469 | ;; |
|
|
13470 | |
|
|
13471 | os2*) |
|
|
13472 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13473 | hardcode_minus_L_F77=yes |
|
|
13474 | allow_undefined_flag_F77=unsupported |
|
|
13475 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
13476 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
13477 | ;; |
|
|
13478 | |
|
|
13479 | osf3*) |
|
|
13480 | if test "$GCC" = yes; then |
|
|
13481 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13482 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13483 | else |
|
|
13484 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13485 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13486 | fi |
|
|
13487 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13488 | hardcode_libdir_separator_F77=: |
|
|
13489 | ;; |
|
|
13490 | |
|
|
13491 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
13492 | if test "$GCC" = yes; then |
|
|
13493 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
|
|
13494 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
13495 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
|
|
13496 | else |
|
|
13497 | allow_undefined_flag_F77=' -expect_unresolved \*' |
|
|
13498 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
13499 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
13500 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
13501 | |
|
|
13502 | # Both c and cxx compiler support -rpath directly |
|
|
13503 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
|
|
13504 | fi |
|
|
13505 | hardcode_libdir_separator_F77=: |
|
|
13506 | ;; |
|
|
13507 | |
|
|
13508 | solaris*) |
|
|
13509 | no_undefined_flag_F77=' -z text' |
|
|
13510 | if test "$GCC" = yes; then |
|
|
13511 | wlarc='${wl}' |
|
|
13512 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13513 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13514 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
13515 | else |
|
|
13516 | wlarc='' |
|
|
13517 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13518 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
13519 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
13520 | fi |
|
|
13521 | hardcode_libdir_flag_spec_F77='-R$libdir' |
|
|
13522 | hardcode_shlibpath_var_F77=no |
|
|
13523 | case $host_os in |
|
|
13524 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
13525 | *) |
|
|
13526 | # The compiler driver will combine linker options so we |
|
|
13527 | # cannot just pass the convience library names through |
|
|
13528 | # without $wl, iff we do not link with $LD. |
|
|
13529 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
13530 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
13531 | case $wlarc in |
|
|
13532 | '') |
|
|
13533 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
|
|
13534 | *) |
|
|
13535 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
|
13536 | esac ;; |
|
|
13537 | esac |
|
|
13538 | link_all_deplibs_F77=yes |
|
|
13539 | ;; |
|
|
13540 | |
|
|
13541 | sunos4*) |
|
|
13542 | if test "x$host_vendor" = xsequent; then |
|
|
13543 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
13544 | # files that make .init and .fini sections work. |
|
|
13545 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13546 | else |
|
|
13547 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
13548 | fi |
|
|
13549 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13550 | hardcode_direct_F77=yes |
|
|
13551 | hardcode_minus_L_F77=yes |
|
|
13552 | hardcode_shlibpath_var_F77=no |
|
|
13553 | ;; |
|
|
13554 | |
|
|
13555 | sysv4) |
|
|
13556 | case $host_vendor in |
|
|
13557 | sni) |
|
|
13558 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13559 | hardcode_direct_F77=yes # is this really true??? |
|
|
13560 | ;; |
|
|
13561 | siemens) |
|
|
13562 | ## LD is ld it makes a PLAMLIB |
|
|
13563 | ## CC just makes a GrossModule. |
|
|
13564 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
13565 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
|
|
13566 | hardcode_direct_F77=no |
|
|
13567 | ;; |
|
|
13568 | motorola) |
|
|
13569 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13570 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
|
|
13571 | ;; |
|
|
13572 | esac |
|
|
13573 | runpath_var='LD_RUN_PATH' |
|
|
13574 | hardcode_shlibpath_var_F77=no |
|
|
13575 | ;; |
|
|
13576 | |
|
|
13577 | sysv4.3*) |
|
|
13578 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13579 | hardcode_shlibpath_var_F77=no |
|
|
13580 | export_dynamic_flag_spec_F77='-Bexport' |
|
|
13581 | ;; |
|
|
13582 | |
|
|
13583 | sysv4*MP*) |
|
|
13584 | if test -d /usr/nec; then |
|
|
13585 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13586 | hardcode_shlibpath_var_F77=no |
|
|
13587 | runpath_var=LD_RUN_PATH |
|
|
13588 | hardcode_runpath_var=yes |
|
|
13589 | ld_shlibs_F77=yes |
|
|
13590 | fi |
|
|
13591 | ;; |
|
|
13592 | |
|
|
13593 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
13594 | no_undefined_flag_F77='${wl}-z,text' |
|
|
13595 | archive_cmds_need_lc_F77=no |
|
|
13596 | hardcode_shlibpath_var_F77=no |
|
|
13597 | runpath_var='LD_RUN_PATH' |
|
|
13598 | |
|
|
13599 | if test "$GCC" = yes; then |
|
|
13600 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13601 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13602 | else |
|
|
13603 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13604 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13605 | fi |
|
|
13606 | ;; |
|
|
13607 | |
|
|
13608 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
13609 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
13610 | # link with -lc, and that would cause any symbols used from libc to |
|
|
13611 | # always be unresolved, which means just about no library would |
|
|
13612 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
13613 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
13614 | # as -z defs. |
|
|
13615 | no_undefined_flag_F77='${wl}-z,text' |
|
|
13616 | allow_undefined_flag_F77='${wl}-z,nodefs' |
|
|
13617 | archive_cmds_need_lc_F77=no |
|
|
13618 | hardcode_shlibpath_var_F77=no |
|
|
13619 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
13620 | hardcode_libdir_separator_F77=':' |
|
|
13621 | link_all_deplibs_F77=yes |
|
|
13622 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
|
|
13623 | runpath_var='LD_RUN_PATH' |
|
|
13624 | |
|
|
13625 | if test "$GCC" = yes; then |
|
|
13626 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13627 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13628 | else |
|
|
13629 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13630 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
13631 | fi |
|
|
13632 | ;; |
|
|
13633 | |
|
|
13634 | uts4*) |
|
|
13635 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
13636 | hardcode_libdir_flag_spec_F77='-L$libdir' |
|
|
13637 | hardcode_shlibpath_var_F77=no |
|
|
13638 | ;; |
|
|
13639 | |
|
|
13640 | *) |
|
|
13641 | ld_shlibs_F77=no |
|
|
13642 | ;; |
|
|
13643 | esac |
|
|
13644 | fi |
|
|
13645 | |
|
|
13646 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
|
|
13647 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
|
|
13648 | test "$ld_shlibs_F77" = no && can_build_shared=no |
|
|
13649 | |
|
|
13650 | # |
|
|
13651 | # Do we need to explicitly link libc? |
|
|
13652 | # |
|
|
13653 | case "x$archive_cmds_need_lc_F77" in |
|
|
13654 | x|xyes) |
|
|
13655 | # Assume -lc should be added |
|
|
13656 | archive_cmds_need_lc_F77=yes |
|
|
13657 | |
|
|
13658 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
13659 | case $archive_cmds_F77 in |
|
|
13660 | *'~'*) |
|
|
13661 | # FIXME: we may have to deal with multi-command sequences. |
|
|
13662 | ;; |
|
|
13663 | '$CC '*) |
|
|
13664 | # Test whether the compiler implicitly links with -lc since on some |
|
|
13665 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
13666 | # to ld, don't add -lc before -lgcc. |
|
|
13667 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
13668 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
13669 | $rm conftest* |
|
|
13670 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
13671 | |
|
|
13672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13673 | (eval $ac_compile) 2>&5 |
|
|
13674 | ac_status=$? |
|
|
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13676 | (exit $ac_status); } 2>conftest.err; then |
|
|
13677 | soname=conftest |
|
|
13678 | lib=conftest |
|
|
13679 | libobjs=conftest.$ac_objext |
|
|
13680 | deplibs= |
|
|
13681 | wl=$lt_prog_compiler_wl_F77 |
|
|
13682 | pic_flag=$lt_prog_compiler_pic_F77 |
|
|
13683 | compiler_flags=-v |
|
|
13684 | linker_flags=-v |
|
|
13685 | verstring= |
|
|
13686 | output_objdir=. |
|
|
13687 | libname=conftest |
|
|
13688 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
|
|
13689 | allow_undefined_flag_F77= |
|
|
13690 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
13691 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
13692 | ac_status=$? |
|
|
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13694 | (exit $ac_status); } |
|
|
13695 | then |
|
|
13696 | archive_cmds_need_lc_F77=no |
|
|
13697 | else |
|
|
13698 | archive_cmds_need_lc_F77=yes |
|
|
13699 | fi |
|
|
13700 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
|
|
13701 | else |
|
|
13702 | cat conftest.err 1>&5 |
|
|
13703 | fi |
|
|
13704 | $rm conftest* |
|
|
13705 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
|
|
13706 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 |
|
|
13707 | ;; |
|
|
13708 | esac |
|
|
13709 | fi |
|
|
13710 | ;; |
|
|
13711 | esac |
|
|
13712 | |
|
|
13713 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
13714 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
13715 | library_names_spec= |
|
|
13716 | libname_spec='lib$name' |
|
|
13717 | soname_spec= |
|
|
13718 | shrext_cmds=".so" |
|
|
13719 | postinstall_cmds= |
|
|
13720 | postuninstall_cmds= |
|
|
13721 | finish_cmds= |
|
|
13722 | finish_eval= |
|
|
13723 | shlibpath_var= |
|
|
13724 | shlibpath_overrides_runpath=unknown |
|
|
13725 | version_type=none |
|
|
13726 | dynamic_linker="$host_os ld.so" |
|
|
13727 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
13728 | if test "$GCC" = yes; then |
|
|
13729 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
13730 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
13731 | # if the path contains ";" then we assume it to be the separator |
|
|
13732 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
13733 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
13734 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
13735 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
13736 | else |
|
|
13737 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
13738 | fi |
|
|
13739 | else |
|
|
13740 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
13741 | fi |
|
|
13742 | need_lib_prefix=unknown |
|
|
13743 | hardcode_into_libs=no |
|
|
13744 | |
|
|
13745 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
13746 | # flags to be left without arguments |
|
|
13747 | need_version=unknown |
|
|
13748 | |
|
|
13749 | case $host_os in |
|
|
13750 | aix3*) |
|
|
13751 | version_type=linux |
|
|
13752 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
13753 | shlibpath_var=LIBPATH |
|
|
13754 | |
|
|
13755 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
13756 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13757 | ;; |
|
|
13758 | |
|
|
13759 | aix4* | aix5*) |
|
|
13760 | version_type=linux |
|
|
13761 | need_lib_prefix=no |
|
|
13762 | need_version=no |
|
|
13763 | hardcode_into_libs=yes |
|
|
13764 | if test "$host_cpu" = ia64; then |
|
|
13765 | # AIX 5 supports IA64 |
|
|
13766 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
13767 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13768 | else |
|
|
13769 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
13770 | # for dependence libraries. The import file would start with |
|
|
13771 | # the line `#! .'. This would cause the generated library to |
|
|
13772 | # depend on `.', always an invalid library. This was fixed in |
|
|
13773 | # development snapshots of GCC prior to 3.0. |
|
|
13774 | case $host_os in |
|
|
13775 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
13776 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
13777 | echo ' yes ' |
|
|
13778 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
13779 | : |
|
|
13780 | else |
|
|
13781 | can_build_shared=no |
|
|
13782 | fi |
|
|
13783 | ;; |
|
|
13784 | esac |
|
|
13785 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
13786 | # soname into executable. Probably we can add versioning support to |
|
|
13787 | # collect2, so additional links can be useful in future. |
|
|
13788 | if test "$aix_use_runtimelinking" = yes; then |
|
|
13789 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
13790 | # instead of lib<name>.a to let people know that these are not |
|
|
13791 | # typical AIX shared libraries. |
|
|
13792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
13793 | else |
|
|
13794 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
13795 | # and later when we are not doing run time linking. |
|
|
13796 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
13797 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13798 | fi |
|
|
13799 | shlibpath_var=LIBPATH |
|
|
13800 | fi |
|
|
13801 | ;; |
|
|
13802 | |
|
|
13803 | amigaos*) |
|
|
13804 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
13805 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
13806 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
13807 | ;; |
|
|
13808 | |
|
|
13809 | beos*) |
|
|
13810 | library_names_spec='${libname}${shared_ext}' |
|
|
13811 | dynamic_linker="$host_os ld.so" |
|
|
13812 | shlibpath_var=LIBRARY_PATH |
|
|
13813 | ;; |
|
|
13814 | |
|
|
13815 | bsdi[45]*) |
|
|
13816 | version_type=linux |
|
|
13817 | need_version=no |
|
|
13818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
13819 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13820 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
13821 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13822 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
13823 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
13824 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
13825 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
13826 | # libtool to hard-code these into programs |
|
|
13827 | ;; |
|
|
13828 | |
|
|
13829 | cygwin* | mingw* | pw32*) |
|
|
13830 | version_type=windows |
|
|
13831 | shrext_cmds=".dll" |
|
|
13832 | need_version=no |
|
|
13833 | need_lib_prefix=no |
|
|
13834 | |
|
|
13835 | case $GCC,$host_os in |
|
|
13836 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
13837 | library_names_spec='$libname.dll.a' |
|
|
13838 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
13839 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
13840 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
13841 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
13842 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
13843 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
13844 | chmod a+x \$dldir/$dlname' |
|
|
13845 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
13846 | dlpath=$dir/\$dldll~ |
|
|
13847 | $rm \$dlpath' |
|
|
13848 | shlibpath_overrides_runpath=yes |
|
|
13849 | |
|
|
13850 | case $host_os in |
|
|
13851 | cygwin*) |
|
|
13852 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
13853 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13854 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
13855 | ;; |
|
|
13856 | mingw*) |
|
|
13857 | # MinGW DLLs use traditional 'lib' prefix |
|
|
13858 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13859 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
13860 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
13861 | # It is most probably a Windows format PATH printed by |
|
|
13862 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
13863 | # path with ; separators, and with drive letters. We can handle the |
|
|
13864 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
13865 | # especially as we might pass files found there to a mingw objdump, |
|
|
13866 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
13867 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
13868 | else |
|
|
13869 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
13870 | fi |
|
|
13871 | ;; |
|
|
13872 | pw32*) |
|
|
13873 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
13874 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
13875 | ;; |
|
|
13876 | esac |
|
|
13877 | ;; |
|
|
13878 | |
|
|
13879 | *) |
|
|
13880 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
13881 | ;; |
|
|
13882 | esac |
|
|
13883 | dynamic_linker='Win32 ld.exe' |
|
|
13884 | # FIXME: first we should search . and the directory the executable is in |
|
|
13885 | shlibpath_var=PATH |
|
|
13886 | ;; |
|
|
13887 | |
|
|
13888 | darwin* | rhapsody*) |
|
|
13889 | dynamic_linker="$host_os dyld" |
|
|
13890 | version_type=darwin |
|
|
13891 | need_lib_prefix=no |
|
|
13892 | need_version=no |
|
|
13893 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
13894 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
13895 | shlibpath_overrides_runpath=yes |
|
|
13896 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
13897 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
13898 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
13899 | if test "$GCC" = yes; then |
|
|
13900 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
13901 | else |
|
|
13902 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
13903 | fi |
|
|
13904 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
13905 | ;; |
|
|
13906 | |
|
|
13907 | dgux*) |
|
|
13908 | version_type=linux |
|
|
13909 | need_lib_prefix=no |
|
|
13910 | need_version=no |
|
|
13911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
13912 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13913 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13914 | ;; |
|
|
13915 | |
|
|
13916 | freebsd1*) |
|
|
13917 | dynamic_linker=no |
|
|
13918 | ;; |
|
|
13919 | |
|
|
13920 | kfreebsd*-gnu) |
|
|
13921 | version_type=linux |
|
|
13922 | need_lib_prefix=no |
|
|
13923 | need_version=no |
|
|
13924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
13925 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13926 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13927 | shlibpath_overrides_runpath=no |
|
|
13928 | hardcode_into_libs=yes |
|
|
13929 | dynamic_linker='GNU ld.so' |
|
|
13930 | ;; |
|
|
13931 | |
|
|
13932 | freebsd* | dragonfly*) |
|
|
13933 | # DragonFly does not have aout. When/if they implement a new |
|
|
13934 | # versioning mechanism, adjust this. |
|
|
13935 | if test -x /usr/bin/objformat; then |
|
|
13936 | objformat=`/usr/bin/objformat` |
|
|
13937 | else |
|
|
13938 | case $host_os in |
|
|
13939 | freebsd[123]*) objformat=aout ;; |
|
|
13940 | *) objformat=elf ;; |
|
|
13941 | esac |
|
|
13942 | fi |
|
|
13943 | version_type=freebsd-$objformat |
|
|
13944 | case $version_type in |
|
|
13945 | freebsd-elf*) |
|
|
13946 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
13947 | need_version=no |
|
|
13948 | need_lib_prefix=no |
|
|
13949 | ;; |
|
|
13950 | freebsd-*) |
|
|
13951 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
13952 | need_version=yes |
|
|
13953 | ;; |
|
|
13954 | esac |
|
|
13955 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13956 | case $host_os in |
|
|
13957 | freebsd2*) |
|
|
13958 | shlibpath_overrides_runpath=yes |
|
|
13959 | ;; |
|
|
13960 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
13961 | shlibpath_overrides_runpath=yes |
|
|
13962 | hardcode_into_libs=yes |
|
|
13963 | ;; |
|
|
13964 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
13965 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
13966 | shlibpath_overrides_runpath=no |
|
|
13967 | hardcode_into_libs=yes |
|
|
13968 | ;; |
|
|
13969 | freebsd*) # from 4.6 on |
|
|
13970 | shlibpath_overrides_runpath=yes |
|
|
13971 | hardcode_into_libs=yes |
|
|
13972 | ;; |
|
|
13973 | esac |
|
|
13974 | ;; |
|
|
13975 | |
|
|
13976 | gnu*) |
|
|
13977 | version_type=linux |
|
|
13978 | need_lib_prefix=no |
|
|
13979 | need_version=no |
|
|
13980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
13981 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
13982 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13983 | hardcode_into_libs=yes |
|
|
13984 | ;; |
|
|
13985 | |
|
|
13986 | hpux9* | hpux10* | hpux11*) |
|
|
13987 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
13988 | # link against other versions. |
|
|
13989 | version_type=sunos |
|
|
13990 | need_lib_prefix=no |
|
|
13991 | need_version=no |
|
|
13992 | case $host_cpu in |
|
|
13993 | ia64*) |
|
|
13994 | shrext_cmds='.so' |
|
|
13995 | hardcode_into_libs=yes |
|
|
13996 | dynamic_linker="$host_os dld.so" |
|
|
13997 | shlibpath_var=LD_LIBRARY_PATH |
|
|
13998 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
13999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14000 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14001 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
14002 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
14003 | else |
|
|
14004 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
14005 | fi |
|
|
14006 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14007 | ;; |
|
|
14008 | hppa*64*) |
|
|
14009 | shrext_cmds='.sl' |
|
|
14010 | hardcode_into_libs=yes |
|
|
14011 | dynamic_linker="$host_os dld.sl" |
|
|
14012 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
14013 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
14014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14015 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14016 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
14017 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
14018 | ;; |
|
|
14019 | *) |
|
|
14020 | shrext_cmds='.sl' |
|
|
14021 | dynamic_linker="$host_os dld.sl" |
|
|
14022 | shlibpath_var=SHLIB_PATH |
|
|
14023 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
14024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14025 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14026 | ;; |
|
|
14027 | esac |
|
|
14028 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
14029 | postinstall_cmds='chmod 555 $lib' |
|
|
14030 | ;; |
|
|
14031 | |
|
|
14032 | interix3*) |
|
|
14033 | version_type=linux |
|
|
14034 | need_lib_prefix=no |
|
|
14035 | need_version=no |
|
|
14036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14037 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14038 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
14039 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14040 | shlibpath_overrides_runpath=no |
|
|
14041 | hardcode_into_libs=yes |
|
|
14042 | ;; |
|
|
14043 | |
|
|
14044 | irix5* | irix6* | nonstopux*) |
|
|
14045 | case $host_os in |
|
|
14046 | nonstopux*) version_type=nonstopux ;; |
|
|
14047 | *) |
|
|
14048 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
14049 | version_type=linux |
|
|
14050 | else |
|
|
14051 | version_type=irix |
|
|
14052 | fi ;; |
|
|
14053 | esac |
|
|
14054 | need_lib_prefix=no |
|
|
14055 | need_version=no |
|
|
14056 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14057 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14058 | case $host_os in |
|
|
14059 | irix5* | nonstopux*) |
|
|
14060 | libsuff= shlibsuff= |
|
|
14061 | ;; |
|
|
14062 | *) |
|
|
14063 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
14064 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
14065 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
14066 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
14067 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
14068 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
14069 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
14070 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
14071 | esac |
|
|
14072 | ;; |
|
|
14073 | esac |
|
|
14074 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
14075 | shlibpath_overrides_runpath=no |
|
|
14076 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
14077 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
14078 | hardcode_into_libs=yes |
|
|
14079 | ;; |
|
|
14080 | |
|
|
14081 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
14082 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
14083 | dynamic_linker=no |
|
|
14084 | ;; |
|
|
14085 | |
|
|
14086 | # This must be Linux ELF. |
|
|
14087 | linux*) |
|
|
14088 | version_type=linux |
|
|
14089 | need_lib_prefix=no |
|
|
14090 | need_version=no |
|
|
14091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14092 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14093 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
14094 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14095 | shlibpath_overrides_runpath=no |
|
|
14096 | # This implies no fast_install, which is unacceptable. |
|
|
14097 | # Some rework will be needed to allow for fast_install |
|
|
14098 | # before this can be enabled. |
|
|
14099 | hardcode_into_libs=yes |
|
|
14100 | |
|
|
14101 | # Append ld.so.conf contents to the search path |
|
|
14102 | if test -f /etc/ld.so.conf; then |
|
|
14103 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
|
14104 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
14105 | fi |
|
|
14106 | |
|
|
14107 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
14108 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
14109 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
14110 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
14111 | # people can always --disable-shared, the test was removed, and we |
|
|
14112 | # assume the GNU/Linux dynamic linker is in use. |
|
|
14113 | dynamic_linker='GNU/Linux ld.so' |
|
|
14114 | ;; |
|
|
14115 | |
|
|
14116 | netbsdelf*-gnu) |
|
|
14117 | version_type=linux |
|
|
14118 | need_lib_prefix=no |
|
|
14119 | need_version=no |
|
|
14120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14121 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14122 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14123 | shlibpath_overrides_runpath=no |
|
|
14124 | hardcode_into_libs=yes |
|
|
14125 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14126 | ;; |
|
|
14127 | |
|
|
14128 | knetbsd*-gnu) |
|
|
14129 | version_type=linux |
|
|
14130 | need_lib_prefix=no |
|
|
14131 | need_version=no |
|
|
14132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14133 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14134 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14135 | shlibpath_overrides_runpath=no |
|
|
14136 | hardcode_into_libs=yes |
|
|
14137 | dynamic_linker='GNU ld.so' |
|
|
14138 | ;; |
|
|
14139 | |
|
|
14140 | netbsd*) |
|
|
14141 | version_type=sunos |
|
|
14142 | need_lib_prefix=no |
|
|
14143 | need_version=no |
|
|
14144 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
14145 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14146 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14147 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
14148 | else |
|
|
14149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
14150 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14151 | dynamic_linker='NetBSD ld.elf_so' |
|
|
14152 | fi |
|
|
14153 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14154 | shlibpath_overrides_runpath=yes |
|
|
14155 | hardcode_into_libs=yes |
|
|
14156 | ;; |
|
|
14157 | |
|
|
14158 | newsos6) |
|
|
14159 | version_type=linux |
|
|
14160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14161 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14162 | shlibpath_overrides_runpath=yes |
|
|
14163 | ;; |
|
|
14164 | |
|
|
14165 | nto-qnx*) |
|
|
14166 | version_type=linux |
|
|
14167 | need_lib_prefix=no |
|
|
14168 | need_version=no |
|
|
14169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14170 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14171 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14172 | shlibpath_overrides_runpath=yes |
|
|
14173 | ;; |
|
|
14174 | |
|
|
14175 | openbsd*) |
|
|
14176 | version_type=sunos |
|
|
14177 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
14178 | need_lib_prefix=no |
|
|
14179 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
14180 | case $host_os in |
|
|
14181 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
14182 | *) need_version=no ;; |
|
|
14183 | esac |
|
|
14184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14185 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
14186 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14187 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
14188 | case $host_os in |
|
|
14189 | openbsd2.[89] | openbsd2.[89].*) |
|
|
14190 | shlibpath_overrides_runpath=no |
|
|
14191 | ;; |
|
|
14192 | *) |
|
|
14193 | shlibpath_overrides_runpath=yes |
|
|
14194 | ;; |
|
|
14195 | esac |
|
|
14196 | else |
|
|
14197 | shlibpath_overrides_runpath=yes |
|
|
14198 | fi |
|
|
14199 | ;; |
|
|
14200 | |
|
|
14201 | os2*) |
|
|
14202 | libname_spec='$name' |
|
|
14203 | shrext_cmds=".dll" |
|
|
14204 | need_lib_prefix=no |
|
|
14205 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
14206 | dynamic_linker='OS/2 ld.exe' |
|
|
14207 | shlibpath_var=LIBPATH |
|
|
14208 | ;; |
|
|
14209 | |
|
|
14210 | osf3* | osf4* | osf5*) |
|
|
14211 | version_type=osf |
|
|
14212 | need_lib_prefix=no |
|
|
14213 | need_version=no |
|
|
14214 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14216 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14217 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
14218 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
14219 | ;; |
|
|
14220 | |
|
|
14221 | solaris*) |
|
|
14222 | version_type=linux |
|
|
14223 | need_lib_prefix=no |
|
|
14224 | need_version=no |
|
|
14225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14226 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14227 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14228 | shlibpath_overrides_runpath=yes |
|
|
14229 | hardcode_into_libs=yes |
|
|
14230 | # ldd complains unless libraries are executable |
|
|
14231 | postinstall_cmds='chmod +x $lib' |
|
|
14232 | ;; |
|
|
14233 | |
|
|
14234 | sunos4*) |
|
|
14235 | version_type=sunos |
|
|
14236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
14237 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
14238 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14239 | shlibpath_overrides_runpath=yes |
|
|
14240 | if test "$with_gnu_ld" = yes; then |
|
|
14241 | need_lib_prefix=no |
|
|
14242 | fi |
|
|
14243 | need_version=yes |
|
|
14244 | ;; |
|
|
14245 | |
|
|
14246 | sysv4 | sysv4.3*) |
|
|
14247 | version_type=linux |
|
|
14248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14249 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14250 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14251 | case $host_vendor in |
|
|
14252 | sni) |
|
|
14253 | shlibpath_overrides_runpath=no |
|
|
14254 | need_lib_prefix=no |
|
|
14255 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
14256 | runpath_var=LD_RUN_PATH |
|
|
14257 | ;; |
|
|
14258 | siemens) |
|
|
14259 | need_lib_prefix=no |
|
|
14260 | ;; |
|
|
14261 | motorola) |
|
|
14262 | need_lib_prefix=no |
|
|
14263 | need_version=no |
|
|
14264 | shlibpath_overrides_runpath=no |
|
|
14265 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
14266 | ;; |
|
|
14267 | esac |
|
|
14268 | ;; |
|
|
14269 | |
|
|
14270 | sysv4*MP*) |
|
|
14271 | if test -d /usr/nec ;then |
|
|
14272 | version_type=linux |
|
|
14273 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
14274 | soname_spec='$libname${shared_ext}.$major' |
|
|
14275 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14276 | fi |
|
|
14277 | ;; |
|
|
14278 | |
|
|
14279 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
14280 | version_type=freebsd-elf |
|
|
14281 | need_lib_prefix=no |
|
|
14282 | need_version=no |
|
|
14283 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
14284 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14285 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14286 | hardcode_into_libs=yes |
|
|
14287 | if test "$with_gnu_ld" = yes; then |
|
|
14288 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
14289 | shlibpath_overrides_runpath=no |
|
|
14290 | else |
|
|
14291 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
14292 | shlibpath_overrides_runpath=yes |
|
|
14293 | case $host_os in |
|
|
14294 | sco3.2v5*) |
|
|
14295 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
14296 | ;; |
|
|
14297 | esac |
|
|
14298 | fi |
|
|
14299 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
14300 | ;; |
|
|
14301 | |
|
|
14302 | uts4*) |
|
|
14303 | version_type=linux |
|
|
14304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
14305 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
14306 | shlibpath_var=LD_LIBRARY_PATH |
|
|
14307 | ;; |
|
|
14308 | |
|
|
14309 | *) |
|
|
14310 | dynamic_linker=no |
|
|
14311 | ;; |
|
|
14312 | esac |
|
|
14313 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
14314 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
14315 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
14316 | |
|
|
14317 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
14318 | if test "$GCC" = yes; then |
|
|
14319 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
14320 | fi |
|
|
14321 | |
|
|
14322 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
14323 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
14324 | hardcode_action_F77= |
|
|
14325 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
|
|
14326 | test -n "$runpath_var_F77" || \ |
|
|
14327 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
|
|
14328 | |
|
|
14329 | # We can hardcode non-existant directories. |
|
|
14330 | if test "$hardcode_direct_F77" != no && |
|
|
14331 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
14332 | # have to relink, otherwise we might link with an installed library |
|
|
14333 | # when we should be linking with a yet-to-be-installed one |
|
|
14334 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
|
|
14335 | test "$hardcode_minus_L_F77" != no; then |
|
|
14336 | # Linking always hardcodes the temporary library directory. |
|
|
14337 | hardcode_action_F77=relink |
|
|
14338 | else |
|
|
14339 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
14340 | hardcode_action_F77=immediate |
|
|
14341 | fi |
|
|
14342 | else |
|
|
14343 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
14344 | # directories. |
|
|
14345 | hardcode_action_F77=unsupported |
|
|
14346 | fi |
|
|
14347 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
|
|
14348 | echo "${ECHO_T}$hardcode_action_F77" >&6 |
|
|
14349 | |
|
|
14350 | if test "$hardcode_action_F77" = relink; then |
|
|
14351 | # Fast installation is not supported |
|
|
14352 | enable_fast_install=no |
|
|
14353 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
14354 | test "$enable_shared" = no; then |
|
|
14355 | # Fast installation is not necessary |
|
|
14356 | enable_fast_install=needless |
|
|
14357 | fi |
|
|
14358 | |
|
|
14359 | |
|
|
14360 | # The else clause should only fire when bootstrapping the |
|
|
14361 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
14362 | # with your package, and you will get complaints that there are |
|
|
14363 | # no rules to generate ltmain.sh. |
|
|
14364 | if test -f "$ltmain"; then |
|
|
14365 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
14366 | # without removal of \ escapes. |
|
|
14367 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
14368 | setopt NO_GLOB_SUBST |
|
|
14369 | fi |
|
|
14370 | # Now quote all the things that may contain metacharacters while being |
|
|
14371 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
14372 | # variables and quote the copies for generation of the libtool script. |
|
|
14373 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
14374 | SED SHELL STRIP \ |
|
|
14375 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
14376 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
14377 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
14378 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
14379 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
14380 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
14381 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
14382 | compiler_F77 \ |
|
|
14383 | CC_F77 \ |
|
|
14384 | LD_F77 \ |
|
|
14385 | lt_prog_compiler_wl_F77 \ |
|
|
14386 | lt_prog_compiler_pic_F77 \ |
|
|
14387 | lt_prog_compiler_static_F77 \ |
|
|
14388 | lt_prog_compiler_no_builtin_flag_F77 \ |
|
|
14389 | export_dynamic_flag_spec_F77 \ |
|
|
14390 | thread_safe_flag_spec_F77 \ |
|
|
14391 | whole_archive_flag_spec_F77 \ |
|
|
14392 | enable_shared_with_static_runtimes_F77 \ |
|
|
14393 | old_archive_cmds_F77 \ |
|
|
14394 | old_archive_from_new_cmds_F77 \ |
|
|
14395 | predep_objects_F77 \ |
|
|
14396 | postdep_objects_F77 \ |
|
|
14397 | predeps_F77 \ |
|
|
14398 | postdeps_F77 \ |
|
|
14399 | compiler_lib_search_path_F77 \ |
|
|
14400 | archive_cmds_F77 \ |
|
|
14401 | archive_expsym_cmds_F77 \ |
|
|
14402 | postinstall_cmds_F77 \ |
|
|
14403 | postuninstall_cmds_F77 \ |
|
|
14404 | old_archive_from_expsyms_cmds_F77 \ |
|
|
14405 | allow_undefined_flag_F77 \ |
|
|
14406 | no_undefined_flag_F77 \ |
|
|
14407 | export_symbols_cmds_F77 \ |
|
|
14408 | hardcode_libdir_flag_spec_F77 \ |
|
|
14409 | hardcode_libdir_flag_spec_ld_F77 \ |
|
|
14410 | hardcode_libdir_separator_F77 \ |
|
|
14411 | hardcode_automatic_F77 \ |
|
|
14412 | module_cmds_F77 \ |
|
|
14413 | module_expsym_cmds_F77 \ |
|
|
14414 | lt_cv_prog_compiler_c_o_F77 \ |
|
|
14415 | exclude_expsyms_F77 \ |
|
|
14416 | include_expsyms_F77; do |
|
|
14417 | |
|
|
14418 | case $var in |
|
|
14419 | old_archive_cmds_F77 | \ |
|
|
14420 | old_archive_from_new_cmds_F77 | \ |
|
|
14421 | archive_cmds_F77 | \ |
|
|
14422 | archive_expsym_cmds_F77 | \ |
|
|
14423 | module_cmds_F77 | \ |
|
|
14424 | module_expsym_cmds_F77 | \ |
|
|
14425 | old_archive_from_expsyms_cmds_F77 | \ |
|
|
14426 | export_symbols_cmds_F77 | \ |
|
|
14427 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
14428 | postinstall_cmds | postuninstall_cmds | \ |
|
|
14429 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
14430 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
14431 | # Double-quote double-evaled strings. |
|
|
14432 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
14433 | ;; |
|
|
14434 | *) |
|
|
14435 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
14436 | ;; |
|
|
14437 | esac |
|
|
14438 | done |
|
|
14439 | |
|
|
14440 | case $lt_echo in |
|
|
14441 | *'\$0 --fallback-echo"') |
|
|
14442 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
14443 | ;; |
|
|
14444 | esac |
|
|
14445 | |
|
|
14446 | cfgfile="$ofile" |
|
|
14447 | |
|
|
14448 | cat <<__EOF__ >> "$cfgfile" |
|
|
14449 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
14450 | |
|
|
14451 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
14452 | |
|
|
14453 | # Shell to use when invoking shell scripts. |
|
|
14454 | SHELL=$lt_SHELL |
|
|
14455 | |
|
|
14456 | # Whether or not to build shared libraries. |
|
|
14457 | build_libtool_libs=$enable_shared |
|
|
14458 | |
|
|
14459 | # Whether or not to build static libraries. |
|
|
14460 | build_old_libs=$enable_static |
|
|
14461 | |
|
|
14462 | # Whether or not to add -lc for building shared libraries. |
|
|
14463 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
|
|
14464 | |
|
|
14465 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
14466 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
|
|
14467 | |
|
|
14468 | # Whether or not to optimize for fast installation. |
|
|
14469 | fast_install=$enable_fast_install |
|
|
14470 | |
|
|
14471 | # The host system. |
|
|
14472 | host_alias=$host_alias |
|
|
14473 | host=$host |
|
|
14474 | host_os=$host_os |
|
|
14475 | |
|
|
14476 | # The build system. |
|
|
14477 | build_alias=$build_alias |
|
|
14478 | build=$build |
|
|
14479 | build_os=$build_os |
|
|
14480 | |
|
|
14481 | # An echo program that does not interpret backslashes. |
|
|
14482 | echo=$lt_echo |
|
|
14483 | |
|
|
14484 | # The archiver. |
|
|
14485 | AR=$lt_AR |
|
|
14486 | AR_FLAGS=$lt_AR_FLAGS |
|
|
14487 | |
|
|
14488 | # A C compiler. |
|
|
14489 | LTCC=$lt_LTCC |
|
|
14490 | |
|
|
14491 | # LTCC compiler flags. |
|
|
14492 | LTCFLAGS=$lt_LTCFLAGS |
|
|
14493 | |
|
|
14494 | # A language-specific compiler. |
|
|
14495 | CC=$lt_compiler_F77 |
|
|
14496 | |
|
|
14497 | # Is the compiler the GNU C compiler? |
|
|
14498 | with_gcc=$GCC_F77 |
|
|
14499 | |
|
|
14500 | # An ERE matcher. |
|
|
14501 | EGREP=$lt_EGREP |
|
|
14502 | |
|
|
14503 | # The linker used to build libraries. |
|
|
14504 | LD=$lt_LD_F77 |
|
|
14505 | |
|
|
14506 | # Whether we need hard or soft links. |
|
|
14507 | LN_S=$lt_LN_S |
|
|
14508 | |
|
|
14509 | # A BSD-compatible nm program. |
|
|
14510 | NM=$lt_NM |
|
|
14511 | |
|
|
14512 | # A symbol stripping program |
|
|
14513 | STRIP=$lt_STRIP |
|
|
14514 | |
|
|
14515 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
14516 | MAGIC_CMD=$MAGIC_CMD |
|
|
14517 | |
|
|
14518 | # Used on cygwin: DLL creation program. |
|
|
14519 | DLLTOOL="$DLLTOOL" |
|
|
14520 | |
|
|
14521 | # Used on cygwin: object dumper. |
|
|
14522 | OBJDUMP="$OBJDUMP" |
|
|
14523 | |
|
|
14524 | # Used on cygwin: assembler. |
|
|
14525 | AS="$AS" |
|
|
14526 | |
|
|
14527 | # The name of the directory that contains temporary libtool files. |
|
|
14528 | objdir=$objdir |
|
|
14529 | |
|
|
14530 | # How to create reloadable object files. |
|
|
14531 | reload_flag=$lt_reload_flag |
|
|
14532 | reload_cmds=$lt_reload_cmds |
|
|
14533 | |
|
|
14534 | # How to pass a linker flag through the compiler. |
|
|
14535 | wl=$lt_lt_prog_compiler_wl_F77 |
|
|
14536 | |
|
|
14537 | # Object file suffix (normally "o"). |
|
|
14538 | objext="$ac_objext" |
|
|
14539 | |
|
|
14540 | # Old archive suffix (normally "a"). |
|
|
14541 | libext="$libext" |
|
|
14542 | |
|
|
14543 | # Shared library suffix (normally ".so"). |
|
|
14544 | shrext_cmds='$shrext_cmds' |
|
|
14545 | |
|
|
14546 | # Executable file suffix (normally ""). |
|
|
14547 | exeext="$exeext" |
|
|
14548 | |
|
|
14549 | # Additional compiler flags for building library objects. |
|
|
14550 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
|
|
14551 | pic_mode=$pic_mode |
|
|
14552 | |
|
|
14553 | # What is the maximum length of a command? |
|
|
14554 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
14555 | |
|
|
14556 | # Does compiler simultaneously support -c and -o options? |
|
|
14557 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
|
|
14558 | |
|
|
14559 | # Must we lock files when doing compilation? |
|
|
14560 | need_locks=$lt_need_locks |
|
|
14561 | |
|
|
14562 | # Do we need the lib prefix for modules? |
|
|
14563 | need_lib_prefix=$need_lib_prefix |
|
|
14564 | |
|
|
14565 | # Do we need a version for libraries? |
|
|
14566 | need_version=$need_version |
|
|
14567 | |
|
|
14568 | # Whether dlopen is supported. |
|
|
14569 | dlopen_support=$enable_dlopen |
|
|
14570 | |
|
|
14571 | # Whether dlopen of programs is supported. |
|
|
14572 | dlopen_self=$enable_dlopen_self |
|
|
14573 | |
|
|
14574 | # Whether dlopen of statically linked programs is supported. |
|
|
14575 | dlopen_self_static=$enable_dlopen_self_static |
|
|
14576 | |
|
|
14577 | # Compiler flag to prevent dynamic linking. |
|
|
14578 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
|
|
14579 | |
|
|
14580 | # Compiler flag to turn off builtin functions. |
|
|
14581 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
|
|
14582 | |
|
|
14583 | # Compiler flag to allow reflexive dlopens. |
|
|
14584 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
|
|
14585 | |
|
|
14586 | # Compiler flag to generate shared objects directly from archives. |
|
|
14587 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
|
|
14588 | |
|
|
14589 | # Compiler flag to generate thread-safe objects. |
|
|
14590 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
|
|
14591 | |
|
|
14592 | # Library versioning type. |
|
|
14593 | version_type=$version_type |
|
|
14594 | |
|
|
14595 | # Format of library name prefix. |
|
|
14596 | libname_spec=$lt_libname_spec |
|
|
14597 | |
|
|
14598 | # List of archive names. First name is the real one, the rest are links. |
|
|
14599 | # The last name is the one that the linker finds with -lNAME. |
|
|
14600 | library_names_spec=$lt_library_names_spec |
|
|
14601 | |
|
|
14602 | # The coded name of the library, if different from the real name. |
|
|
14603 | soname_spec=$lt_soname_spec |
|
|
14604 | |
|
|
14605 | # Commands used to build and install an old-style archive. |
|
|
14606 | RANLIB=$lt_RANLIB |
|
|
14607 | old_archive_cmds=$lt_old_archive_cmds_F77 |
|
|
14608 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
14609 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
14610 | |
|
|
14611 | # Create an old-style archive from a shared archive. |
|
|
14612 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
|
|
14613 | |
|
|
14614 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
14615 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
|
|
14616 | |
|
|
14617 | # Commands used to build and install a shared archive. |
|
|
14618 | archive_cmds=$lt_archive_cmds_F77 |
|
|
14619 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
|
|
14620 | postinstall_cmds=$lt_postinstall_cmds |
|
|
14621 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
14622 | |
|
|
14623 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
14624 | module_cmds=$lt_module_cmds_F77 |
|
|
14625 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
|
|
14626 | |
|
|
14627 | # Commands to strip libraries. |
|
|
14628 | old_striplib=$lt_old_striplib |
|
|
14629 | striplib=$lt_striplib |
|
|
14630 | |
|
|
14631 | # Dependencies to place before the objects being linked to create a |
|
|
14632 | # shared library. |
|
|
14633 | predep_objects=$lt_predep_objects_F77 |
|
|
14634 | |
|
|
14635 | # Dependencies to place after the objects being linked to create a |
|
|
14636 | # shared library. |
|
|
14637 | postdep_objects=$lt_postdep_objects_F77 |
|
|
14638 | |
|
|
14639 | # Dependencies to place before the objects being linked to create a |
|
|
14640 | # shared library. |
|
|
14641 | predeps=$lt_predeps_F77 |
|
|
14642 | |
|
|
14643 | # Dependencies to place after the objects being linked to create a |
|
|
14644 | # shared library. |
|
|
14645 | postdeps=$lt_postdeps_F77 |
|
|
14646 | |
|
|
14647 | # The library search path used internally by the compiler when linking |
|
|
14648 | # a shared library. |
|
|
14649 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
|
|
14650 | |
|
|
14651 | # Method to check whether dependent libraries are shared objects. |
|
|
14652 | deplibs_check_method=$lt_deplibs_check_method |
|
|
14653 | |
|
|
14654 | # Command to use when deplibs_check_method == file_magic. |
|
|
14655 | file_magic_cmd=$lt_file_magic_cmd |
|
|
14656 | |
|
|
14657 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
14658 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
|
|
14659 | |
|
|
14660 | # Flag that forces no undefined symbols. |
|
|
14661 | no_undefined_flag=$lt_no_undefined_flag_F77 |
|
|
14662 | |
|
|
14663 | # Commands used to finish a libtool library installation in a directory. |
|
|
14664 | finish_cmds=$lt_finish_cmds |
|
|
14665 | |
|
|
14666 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
14667 | finish_eval=$lt_finish_eval |
|
|
14668 | |
|
|
14669 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
14670 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
14671 | |
|
|
14672 | # Transform the output of nm in a proper C declaration |
|
|
14673 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
14674 | |
|
|
14675 | # Transform the output of nm in a C name address pair |
|
|
14676 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
14677 | |
|
|
14678 | # This is the shared library runtime path variable. |
|
|
14679 | runpath_var=$runpath_var |
|
|
14680 | |
|
|
14681 | # This is the shared library path variable. |
|
|
14682 | shlibpath_var=$shlibpath_var |
|
|
14683 | |
|
|
14684 | # Is shlibpath searched before the hard-coded library search path? |
|
|
14685 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
14686 | |
|
|
14687 | # How to hardcode a shared library path into an executable. |
|
|
14688 | hardcode_action=$hardcode_action_F77 |
|
|
14689 | |
|
|
14690 | # Whether we should hardcode library paths into libraries. |
|
|
14691 | hardcode_into_libs=$hardcode_into_libs |
|
|
14692 | |
|
|
14693 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
14694 | # This must work even if \$libdir does not exist. |
|
|
14695 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
|
|
14696 | |
|
|
14697 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
14698 | # a binary during linking. This must work even if \$libdir does |
|
|
14699 | # not exist. |
|
|
14700 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
|
|
14701 | |
|
|
14702 | # Whether we need a single -rpath flag with a separated argument. |
|
|
14703 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
|
|
14704 | |
|
|
14705 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
14706 | # resulting binary. |
|
|
14707 | hardcode_direct=$hardcode_direct_F77 |
|
|
14708 | |
|
|
14709 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
14710 | # resulting binary. |
|
|
14711 | hardcode_minus_L=$hardcode_minus_L_F77 |
|
|
14712 | |
|
|
14713 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
14714 | # the resulting binary. |
|
|
14715 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
|
|
14716 | |
|
|
14717 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
14718 | # and all subsequent libraries and executables linked against it. |
|
|
14719 | hardcode_automatic=$hardcode_automatic_F77 |
|
|
14720 | |
|
|
14721 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
14722 | # restored at relink time. |
|
|
14723 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
14724 | |
|
|
14725 | # Whether libtool must link a program against all its dependency libraries. |
|
|
14726 | link_all_deplibs=$link_all_deplibs_F77 |
|
|
14727 | |
|
|
14728 | # Compile-time system search path for libraries |
|
|
14729 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
14730 | |
|
|
14731 | # Run-time system search path for libraries |
|
|
14732 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
14733 | |
|
|
14734 | # Fix the shell variable \$srcfile for the compiler. |
|
|
14735 | fix_srcfile_path="$fix_srcfile_path_F77" |
|
|
14736 | |
|
|
14737 | # Set to yes if exported symbols are required. |
|
|
14738 | always_export_symbols=$always_export_symbols_F77 |
|
|
14739 | |
|
|
14740 | # The commands to list exported symbols. |
|
|
14741 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
|
|
14742 | |
|
|
14743 | # The commands to extract the exported symbol list from a shared archive. |
|
|
14744 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
14745 | |
|
|
14746 | # Symbols that should not be listed in the preloaded symbols. |
|
|
14747 | exclude_expsyms=$lt_exclude_expsyms_F77 |
|
|
14748 | |
|
|
14749 | # Symbols that must always be exported. |
|
|
14750 | include_expsyms=$lt_include_expsyms_F77 |
|
|
14751 | |
|
|
14752 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
14753 | |
|
|
14754 | __EOF__ |
|
|
14755 | |
|
|
14756 | |
|
|
14757 | else |
|
|
14758 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
14759 | # `config.status --recheck' to rerun these tests and create the |
|
|
14760 | # libtool script then. |
|
|
14761 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
14762 | if test -f "$ltmain_in"; then |
|
|
14763 | test -f Makefile && make "$ltmain" |
|
|
14764 | fi |
|
|
14765 | fi |
|
|
14766 | |
|
|
14767 | |
|
|
14768 | ac_ext=c |
|
|
14769 | ac_cpp='$CPP $CPPFLAGS' |
|
|
14770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
14771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
14772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
14773 | |
|
|
14774 | CC="$lt_save_CC" |
|
|
14775 | |
|
|
14776 | else |
|
|
14777 | tagname="" |
|
|
14778 | fi |
|
|
14779 | ;; |
|
|
14780 | |
|
|
14781 | GCJ) |
|
|
14782 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
|
|
14783 | |
|
|
14784 | |
|
|
14785 | |
|
|
14786 | # Source file extension for Java test sources. |
|
|
14787 | ac_ext=java |
|
|
14788 | |
|
|
14789 | # Object file extension for compiled Java test sources. |
|
|
14790 | objext=o |
|
|
14791 | objext_GCJ=$objext |
|
|
14792 | |
|
|
14793 | # Code to be used in simple compile tests |
|
|
14794 | lt_simple_compile_test_code="class foo {}\n" |
|
|
14795 | |
|
|
14796 | # Code to be used in simple link tests |
|
|
14797 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
|
|
14798 | |
|
|
14799 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
14800 | |
|
|
14801 | # If no C compiler was specified, use CC. |
|
|
14802 | LTCC=${LTCC-"$CC"} |
|
|
14803 | |
|
|
14804 | # If no C compiler flags were specified, use CFLAGS. |
|
|
14805 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
14806 | |
|
|
14807 | # Allow CC to be a program name with arguments. |
|
|
14808 | compiler=$CC |
|
|
14809 | |
|
|
14810 | |
|
|
14811 | # save warnings/boilerplate of simple test code |
|
|
14812 | ac_outfile=conftest.$ac_objext |
|
|
14813 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
14814 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
14815 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
14816 | $rm conftest* |
|
|
14817 | |
|
|
14818 | ac_outfile=conftest.$ac_objext |
|
|
14819 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
14820 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
14821 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
14822 | $rm conftest* |
|
|
14823 | |
|
|
14824 | |
|
|
14825 | # Allow CC to be a program name with arguments. |
|
|
14826 | lt_save_CC="$CC" |
|
|
14827 | CC=${GCJ-"gcj"} |
|
|
14828 | compiler=$CC |
|
|
14829 | compiler_GCJ=$CC |
|
|
14830 | for cc_temp in $compiler""; do |
|
|
14831 | case $cc_temp in |
|
|
14832 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
14833 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
14834 | \-*) ;; |
|
|
14835 | *) break;; |
|
|
14836 | esac |
2535 | done |
14837 | done |
|
|
14838 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
14839 | |
|
|
14840 | |
|
|
14841 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
|
|
14842 | archive_cmds_need_lc_GCJ=no |
|
|
14843 | |
|
|
14844 | old_archive_cmds_GCJ=$old_archive_cmds |
|
|
14845 | |
|
|
14846 | |
|
|
14847 | lt_prog_compiler_no_builtin_flag_GCJ= |
|
|
14848 | |
|
|
14849 | if test "$GCC" = yes; then |
|
|
14850 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
|
|
14851 | |
|
|
14852 | |
|
|
14853 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
14854 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
14855 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
|
|
14856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
14857 | else |
|
|
14858 | lt_cv_prog_compiler_rtti_exceptions=no |
|
|
14859 | ac_outfile=conftest.$ac_objext |
|
|
14860 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
14861 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
|
14862 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
14863 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
14864 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
14865 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
14866 | # The option is referenced via a variable to avoid confusing sed. |
|
|
14867 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
14868 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
14869 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
14870 | -e 's:$: $lt_compiler_flag:'` |
|
|
14871 | (eval echo "\"\$as_me:14871: $lt_compile\"" >&5) |
|
|
14872 | (eval "$lt_compile" 2>conftest.err) |
|
|
14873 | ac_status=$? |
|
|
14874 | cat conftest.err >&5 |
|
|
14875 | echo "$as_me:14875: \$? = $ac_status" >&5 |
|
|
14876 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
14877 | # The compiler can only warn and ignore the option if not recognized |
|
|
14878 | # So say no if there are warnings other than the usual output. |
|
|
14879 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
14880 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
14881 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
14882 | lt_cv_prog_compiler_rtti_exceptions=yes |
|
|
14883 | fi |
|
|
14884 | fi |
|
|
14885 | $rm conftest* |
|
|
14886 | |
|
|
14887 | fi |
|
|
14888 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
|
14889 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 |
|
|
14890 | |
|
|
14891 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
|
14892 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
|
|
14893 | else |
|
|
14894 | : |
|
|
14895 | fi |
|
|
14896 | |
|
|
14897 | fi |
|
|
14898 | |
|
|
14899 | lt_prog_compiler_wl_GCJ= |
|
|
14900 | lt_prog_compiler_pic_GCJ= |
|
|
14901 | lt_prog_compiler_static_GCJ= |
|
|
14902 | |
|
|
14903 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
14904 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
14905 | |
|
|
14906 | if test "$GCC" = yes; then |
|
|
14907 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14908 | lt_prog_compiler_static_GCJ='-static' |
|
|
14909 | |
|
|
14910 | case $host_os in |
|
|
14911 | aix*) |
|
|
14912 | # All AIX code is PIC. |
|
|
14913 | if test "$host_cpu" = ia64; then |
|
|
14914 | # AIX 5 now supports IA64 processor |
|
|
14915 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
14916 | fi |
|
|
14917 | ;; |
|
|
14918 | |
|
|
14919 | amigaos*) |
|
|
14920 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
14921 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
14922 | # like `-m68040'. |
|
|
14923 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
|
|
14924 | ;; |
|
|
14925 | |
|
|
14926 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
|
14927 | # PIC is the default for these OSes. |
|
|
14928 | ;; |
|
|
14929 | |
|
|
14930 | mingw* | pw32* | os2*) |
|
|
14931 | # This hack is so that the source file can tell whether it is being |
|
|
14932 | # built for inclusion in a dll (and should export symbols for example). |
|
|
14933 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
14934 | ;; |
|
|
14935 | |
|
|
14936 | darwin* | rhapsody*) |
|
|
14937 | # PIC is the default on this platform |
|
|
14938 | # Common symbols not allowed in MH_DYLIB files |
|
|
14939 | lt_prog_compiler_pic_GCJ='-fno-common' |
|
|
14940 | ;; |
|
|
14941 | |
|
|
14942 | interix3*) |
|
|
14943 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
|
14944 | # Instead, we relocate shared libraries at runtime. |
|
|
14945 | ;; |
|
|
14946 | |
|
|
14947 | msdosdjgpp*) |
|
|
14948 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
|
|
14949 | # on systems that don't support them. |
|
|
14950 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
14951 | enable_shared=no |
|
|
14952 | ;; |
|
|
14953 | |
|
|
14954 | sysv4*MP*) |
|
|
14955 | if test -d /usr/nec; then |
|
|
14956 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
|
|
14957 | fi |
|
|
14958 | ;; |
|
|
14959 | |
|
|
14960 | hpux*) |
|
|
14961 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
14962 | # not for PA HP-UX. |
|
|
14963 | case $host_cpu in |
|
|
14964 | hppa*64*|ia64*) |
|
|
14965 | # +Z the default |
|
|
14966 | ;; |
|
|
14967 | *) |
|
|
14968 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
14969 | ;; |
|
|
14970 | esac |
|
|
14971 | ;; |
|
|
14972 | |
|
|
14973 | *) |
|
|
14974 | lt_prog_compiler_pic_GCJ='-fPIC' |
|
|
14975 | ;; |
|
|
14976 | esac |
|
|
14977 | else |
|
|
14978 | # PORTME Check for flag to pass linker flags through the system compiler. |
|
|
14979 | case $host_os in |
|
|
14980 | aix*) |
|
|
14981 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14982 | if test "$host_cpu" = ia64; then |
|
|
14983 | # AIX 5 now supports IA64 processor |
|
|
14984 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
14985 | else |
|
|
14986 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
|
|
14987 | fi |
|
|
14988 | ;; |
|
|
14989 | darwin*) |
|
|
14990 | # PIC is the default on this platform |
|
|
14991 | # Common symbols not allowed in MH_DYLIB files |
|
|
14992 | case $cc_basename in |
|
|
14993 | xlc*) |
|
|
14994 | lt_prog_compiler_pic_GCJ='-qnocommon' |
|
|
14995 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
14996 | ;; |
|
|
14997 | esac |
|
|
14998 | ;; |
|
|
14999 | |
|
|
15000 | mingw* | pw32* | os2*) |
|
|
15001 | # This hack is so that the source file can tell whether it is being |
|
|
15002 | # built for inclusion in a dll (and should export symbols for example). |
|
|
15003 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
|
|
15004 | ;; |
|
|
15005 | |
|
|
15006 | hpux9* | hpux10* | hpux11*) |
|
|
15007 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15008 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
|
15009 | # not for PA HP-UX. |
|
|
15010 | case $host_cpu in |
|
|
15011 | hppa*64*|ia64*) |
|
|
15012 | # +Z the default |
|
|
15013 | ;; |
|
|
15014 | *) |
|
|
15015 | lt_prog_compiler_pic_GCJ='+Z' |
|
|
15016 | ;; |
|
|
15017 | esac |
|
|
15018 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
|
15019 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
|
|
15020 | ;; |
|
|
15021 | |
|
|
15022 | irix5* | irix6* | nonstopux*) |
|
|
15023 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15024 | # PIC (with -KPIC) is the default. |
|
|
15025 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15026 | ;; |
|
|
15027 | |
|
|
15028 | newsos6) |
|
|
15029 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15030 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15031 | ;; |
|
|
15032 | |
|
|
15033 | linux*) |
|
|
15034 | case $cc_basename in |
|
|
15035 | icc* | ecc*) |
|
|
15036 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15037 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15038 | lt_prog_compiler_static_GCJ='-static' |
|
|
15039 | ;; |
|
|
15040 | pgcc* | pgf77* | pgf90* | pgf95*) |
|
|
15041 | # Portland Group compilers (*not* the Pentium gcc compiler, |
|
|
15042 | # which looks to be a dead project) |
|
|
15043 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15044 | lt_prog_compiler_pic_GCJ='-fpic' |
|
|
15045 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15046 | ;; |
|
|
15047 | ccc*) |
|
|
15048 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15049 | # All Alpha code is PIC. |
|
|
15050 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15051 | ;; |
|
|
15052 | esac |
|
|
15053 | ;; |
|
|
15054 | |
|
|
15055 | osf3* | osf4* | osf5*) |
|
|
15056 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15057 | # All OSF/1 code is PIC. |
|
|
15058 | lt_prog_compiler_static_GCJ='-non_shared' |
|
|
15059 | ;; |
|
|
15060 | |
|
|
15061 | solaris*) |
|
|
15062 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15063 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15064 | case $cc_basename in |
|
|
15065 | f77* | f90* | f95*) |
|
|
15066 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
|
|
15067 | *) |
|
|
15068 | lt_prog_compiler_wl_GCJ='-Wl,';; |
|
|
15069 | esac |
|
|
15070 | ;; |
|
|
15071 | |
|
|
15072 | sunos4*) |
|
|
15073 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
|
|
15074 | lt_prog_compiler_pic_GCJ='-PIC' |
|
|
15075 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15076 | ;; |
|
|
15077 | |
|
|
15078 | sysv4 | sysv4.2uw2* | sysv4.3*) |
|
|
15079 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15080 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15081 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15082 | ;; |
|
|
15083 | |
|
|
15084 | sysv4*MP*) |
|
|
15085 | if test -d /usr/nec ;then |
|
|
15086 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
|
|
15087 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15088 | fi |
|
|
15089 | ;; |
|
|
15090 | |
|
|
15091 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
|
15092 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15093 | lt_prog_compiler_pic_GCJ='-KPIC' |
|
|
15094 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15095 | ;; |
|
|
15096 | |
|
|
15097 | unicos*) |
|
|
15098 | lt_prog_compiler_wl_GCJ='-Wl,' |
|
|
15099 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15100 | ;; |
|
|
15101 | |
|
|
15102 | uts4*) |
|
|
15103 | lt_prog_compiler_pic_GCJ='-pic' |
|
|
15104 | lt_prog_compiler_static_GCJ='-Bstatic' |
|
|
15105 | ;; |
|
|
15106 | |
|
|
15107 | *) |
|
|
15108 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15109 | ;; |
|
|
15110 | esac |
|
|
15111 | fi |
|
|
15112 | |
|
|
15113 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
|
|
15114 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 |
|
|
15115 | |
|
|
15116 | # |
|
|
15117 | # Check to make sure the PIC flag actually works. |
|
|
15118 | # |
|
|
15119 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
|
|
15120 | |
|
|
15121 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
|
|
15122 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 |
|
|
15123 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
|
|
15124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15125 | else |
|
|
15126 | lt_prog_compiler_pic_works_GCJ=no |
|
|
15127 | ac_outfile=conftest.$ac_objext |
|
|
15128 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15129 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
|
|
15130 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15131 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15132 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15133 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15134 | # The option is referenced via a variable to avoid confusing sed. |
|
|
15135 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15136 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
15137 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15138 | -e 's:$: $lt_compiler_flag:'` |
|
|
15139 | (eval echo "\"\$as_me:15139: $lt_compile\"" >&5) |
|
|
15140 | (eval "$lt_compile" 2>conftest.err) |
|
|
15141 | ac_status=$? |
|
|
15142 | cat conftest.err >&5 |
|
|
15143 | echo "$as_me:15143: \$? = $ac_status" >&5 |
|
|
15144 | if (exit $ac_status) && test -s "$ac_outfile"; then |
|
|
15145 | # The compiler can only warn and ignore the option if not recognized |
|
|
15146 | # So say no if there are warnings other than the usual output. |
|
|
15147 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
|
15148 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
15149 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
|
15150 | lt_prog_compiler_pic_works_GCJ=yes |
|
|
15151 | fi |
|
|
15152 | fi |
|
|
15153 | $rm conftest* |
|
|
15154 | |
|
|
15155 | fi |
|
|
15156 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
|
|
15157 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 |
|
|
15158 | |
|
|
15159 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
|
|
15160 | case $lt_prog_compiler_pic_GCJ in |
|
|
15161 | "" | " "*) ;; |
|
|
15162 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
|
|
15163 | esac |
|
|
15164 | else |
|
|
15165 | lt_prog_compiler_pic_GCJ= |
|
|
15166 | lt_prog_compiler_can_build_shared_GCJ=no |
|
|
15167 | fi |
|
|
15168 | |
|
|
15169 | fi |
|
|
15170 | case $host_os in |
|
|
15171 | # For platforms which do not support PIC, -DPIC is meaningless: |
|
|
15172 | *djgpp*) |
|
|
15173 | lt_prog_compiler_pic_GCJ= |
|
|
15174 | ;; |
|
|
15175 | *) |
|
|
15176 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
|
|
15177 | ;; |
|
|
15178 | esac |
|
|
15179 | |
|
|
15180 | # |
|
|
15181 | # Check to make sure the static flag actually works. |
|
|
15182 | # |
|
|
15183 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
|
|
15184 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
|
15185 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 |
|
|
15186 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
|
|
15187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15188 | else |
|
|
15189 | lt_prog_compiler_static_works_GCJ=no |
|
|
15190 | save_LDFLAGS="$LDFLAGS" |
|
|
15191 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
|
15192 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
|
|
15193 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
|
15194 | # The linker can only warn and ignore the option if not recognized |
|
|
15195 | # So say no if there are warnings |
|
|
15196 | if test -s conftest.err; then |
|
|
15197 | # Append any errors to the config.log. |
|
|
15198 | cat conftest.err 1>&5 |
|
|
15199 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
|
15200 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
|
15201 | if diff conftest.exp conftest.er2 >/dev/null; then |
|
|
15202 | lt_prog_compiler_static_works_GCJ=yes |
|
|
15203 | fi |
|
|
15204 | else |
|
|
15205 | lt_prog_compiler_static_works_GCJ=yes |
|
|
15206 | fi |
|
|
15207 | fi |
|
|
15208 | $rm conftest* |
|
|
15209 | LDFLAGS="$save_LDFLAGS" |
|
|
15210 | |
|
|
15211 | fi |
|
|
15212 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
|
|
15213 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 |
|
|
15214 | |
|
|
15215 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
|
|
15216 | : |
|
|
15217 | else |
|
|
15218 | lt_prog_compiler_static_GCJ= |
|
|
15219 | fi |
|
|
15220 | |
|
|
15221 | |
|
|
15222 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
15223 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
15224 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
|
|
15225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
15226 | else |
|
|
15227 | lt_cv_prog_compiler_c_o_GCJ=no |
|
|
15228 | $rm -r conftest 2>/dev/null |
|
|
15229 | mkdir conftest |
|
|
15230 | cd conftest |
|
|
15231 | mkdir out |
|
|
15232 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
15233 | |
|
|
15234 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
|
15235 | # Insert the option either (1) after the last *FLAGS variable, or |
|
|
15236 | # (2) before a word containing "conftest.", or (3) at the end. |
|
|
15237 | # Note that $ac_compile itself does not contain backslashes and begins |
|
|
15238 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
|
|
15239 | lt_compile=`echo "$ac_compile" | $SED \ |
|
|
15240 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
|
15241 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
|
15242 | -e 's:$: $lt_compiler_flag:'` |
|
|
15243 | (eval echo "\"\$as_me:15243: $lt_compile\"" >&5) |
|
|
15244 | (eval "$lt_compile" 2>out/conftest.err) |
|
|
15245 | ac_status=$? |
|
|
15246 | cat out/conftest.err >&5 |
|
|
15247 | echo "$as_me:15247: \$? = $ac_status" >&5 |
|
|
15248 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
|
15249 | then |
|
|
15250 | # The compiler can only warn and ignore the option if not recognized |
|
|
15251 | # So say no if there are warnings |
|
|
15252 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
|
15253 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
|
15254 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
|
15255 | lt_cv_prog_compiler_c_o_GCJ=yes |
|
|
15256 | fi |
|
|
15257 | fi |
|
|
15258 | chmod u+w . 2>&5 |
|
|
15259 | $rm conftest* |
|
|
15260 | # SGI C++ compiler will create directory out/ii_files/ for |
|
|
15261 | # template instantiation |
|
|
15262 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
|
|
15263 | $rm out/* && rmdir out |
|
|
15264 | cd .. |
|
|
15265 | rmdir conftest |
|
|
15266 | $rm conftest* |
|
|
15267 | |
|
|
15268 | fi |
|
|
15269 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
|
|
15270 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 |
|
|
15271 | |
|
|
15272 | |
|
|
15273 | hard_links="nottested" |
|
|
15274 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
|
|
15275 | # do not overwrite the value of need_locks provided by the user |
|
|
15276 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
15277 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
15278 | hard_links=yes |
|
|
15279 | $rm conftest* |
|
|
15280 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15281 | touch conftest.a |
|
|
15282 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
15283 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
15284 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
15285 | echo "${ECHO_T}$hard_links" >&6 |
|
|
15286 | if test "$hard_links" = no; then |
|
|
15287 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
15288 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
15289 | need_locks=warn |
|
|
15290 | fi |
|
|
15291 | else |
|
|
15292 | need_locks=no |
|
|
15293 | fi |
|
|
15294 | |
|
|
15295 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
|
15296 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
15297 | |
|
|
15298 | runpath_var= |
|
|
15299 | allow_undefined_flag_GCJ= |
|
|
15300 | enable_shared_with_static_runtimes_GCJ=no |
|
|
15301 | archive_cmds_GCJ= |
|
|
15302 | archive_expsym_cmds_GCJ= |
|
|
15303 | old_archive_From_new_cmds_GCJ= |
|
|
15304 | old_archive_from_expsyms_cmds_GCJ= |
|
|
15305 | export_dynamic_flag_spec_GCJ= |
|
|
15306 | whole_archive_flag_spec_GCJ= |
|
|
15307 | thread_safe_flag_spec_GCJ= |
|
|
15308 | hardcode_libdir_flag_spec_GCJ= |
|
|
15309 | hardcode_libdir_flag_spec_ld_GCJ= |
|
|
15310 | hardcode_libdir_separator_GCJ= |
|
|
15311 | hardcode_direct_GCJ=no |
|
|
15312 | hardcode_minus_L_GCJ=no |
|
|
15313 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15314 | link_all_deplibs_GCJ=unknown |
|
|
15315 | hardcode_automatic_GCJ=no |
|
|
15316 | module_cmds_GCJ= |
|
|
15317 | module_expsym_cmds_GCJ= |
|
|
15318 | always_export_symbols_GCJ=no |
|
|
15319 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15320 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
15321 | # included in the symbol list |
|
|
15322 | include_expsyms_GCJ= |
|
|
15323 | # exclude_expsyms can be an extended regexp of symbols to exclude |
|
|
15324 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
15325 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
15326 | # as well as any symbol that contains `d'. |
|
|
15327 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
|
|
15328 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
15329 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
15330 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
15331 | # rely on this symbol name, it's probably fine to never include it in |
|
|
15332 | # preloaded symbol tables. |
|
|
15333 | extract_expsyms_cmds= |
|
|
15334 | # Just being paranoid about ensuring that cc_basename is set. |
|
|
15335 | for cc_temp in $compiler""; do |
|
|
15336 | case $cc_temp in |
|
|
15337 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
15338 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
15339 | \-*) ;; |
|
|
15340 | *) break;; |
|
|
15341 | esac |
|
|
15342 | done |
|
|
15343 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
15344 | |
|
|
15345 | case $host_os in |
|
|
15346 | cygwin* | mingw* | pw32*) |
|
|
15347 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
15348 | # When not using gcc, we currently assume that we are using |
|
|
15349 | # Microsoft Visual C++. |
|
|
15350 | if test "$GCC" != yes; then |
|
|
15351 | with_gnu_ld=no |
|
|
15352 | fi |
|
|
15353 | ;; |
|
|
15354 | interix*) |
|
|
15355 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
|
|
15356 | with_gnu_ld=yes |
|
|
15357 | ;; |
|
|
15358 | openbsd*) |
|
|
15359 | with_gnu_ld=no |
|
|
15360 | ;; |
|
|
15361 | esac |
|
|
15362 | |
|
|
15363 | ld_shlibs_GCJ=yes |
|
|
15364 | if test "$with_gnu_ld" = yes; then |
|
|
15365 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
15366 | wlarc='${wl}' |
|
|
15367 | |
|
|
15368 | # Set some defaults for GNU ld with shared library support. These |
|
|
15369 | # are reset later if shared libraries are not supported. Putting them |
|
|
15370 | # here allows them to be overridden if necessary. |
|
|
15371 | runpath_var=LD_RUN_PATH |
|
|
15372 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
|
|
15373 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
|
|
15374 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
15375 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
|
|
15376 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
15377 | else |
|
|
15378 | whole_archive_flag_spec_GCJ= |
|
|
15379 | fi |
|
|
15380 | supports_anon_versioning=no |
|
|
15381 | case `$LD -v 2>/dev/null` in |
|
|
15382 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
|
15383 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
|
15384 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
|
15385 | *\ 2.11.*) ;; # other 2.11 versions |
|
|
15386 | *) supports_anon_versioning=yes ;; |
|
|
15387 | esac |
|
|
15388 | |
|
|
15389 | # See if GNU ld supports shared libraries. |
|
|
15390 | case $host_os in |
|
|
15391 | aix3* | aix4* | aix5*) |
|
|
15392 | # On AIX/PPC, the GNU linker is very broken |
|
|
15393 | if test "$host_cpu" != ia64; then |
|
|
15394 | ld_shlibs_GCJ=no |
|
|
15395 | cat <<EOF 1>&2 |
|
|
15396 | |
|
|
15397 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
15398 | *** to be unable to reliably create shared libraries on AIX. |
|
|
15399 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
15400 | *** really care for shared libraries, you may want to modify your PATH |
|
|
15401 | *** so that a non-GNU linker is found, and then restart. |
|
|
15402 | |
|
|
15403 | EOF |
|
|
15404 | fi |
|
|
15405 | ;; |
|
|
15406 | |
|
|
15407 | amigaos*) |
|
|
15408 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
15409 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15410 | hardcode_minus_L_GCJ=yes |
|
|
15411 | |
|
|
15412 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
15413 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
15414 | # to version 4, is to share data among multiple programs linked |
|
|
15415 | # with the same dynamic library. Since this doesn't match the |
|
|
15416 | # behavior of shared libraries on other platforms, we can't use |
|
|
15417 | # them. |
|
|
15418 | ld_shlibs_GCJ=no |
|
|
15419 | ;; |
|
|
15420 | |
|
|
15421 | beos*) |
|
|
15422 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15423 | allow_undefined_flag_GCJ=unsupported |
|
|
15424 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
15425 | # support --undefined. This deserves some investigation. FIXME |
|
|
15426 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15427 | else |
|
|
15428 | ld_shlibs_GCJ=no |
|
|
15429 | fi |
|
|
15430 | ;; |
|
|
15431 | |
|
|
15432 | cygwin* | mingw* | pw32*) |
|
|
15433 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
|
|
15434 | # as there is no search path for DLLs. |
|
|
15435 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15436 | allow_undefined_flag_GCJ=unsupported |
|
|
15437 | always_export_symbols_GCJ=no |
|
|
15438 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15439 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
15440 | |
|
|
15441 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
|
|
15442 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
15443 | # If the export-symbols file already is a .def file (1st line |
|
|
15444 | # is EXPORTS), use it as is; otherwise, prepend... |
|
|
15445 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
|
15446 | cp $export_symbols $output_objdir/$soname.def; |
|
|
15447 | else |
|
|
15448 | echo EXPORTS > $output_objdir/$soname.def; |
|
|
15449 | cat $export_symbols >> $output_objdir/$soname.def; |
|
|
15450 | fi~ |
|
|
15451 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
|
15452 | else |
|
|
15453 | ld_shlibs_GCJ=no |
|
|
15454 | fi |
|
|
15455 | ;; |
|
|
15456 | |
|
|
15457 | interix3*) |
|
|
15458 | hardcode_direct_GCJ=no |
|
|
15459 | hardcode_shlibpath_var_GCJ=no |
|
|
15460 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
15461 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15462 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
|
15463 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
|
|
15464 | # default) and relocated if they conflict, which is a slow very memory |
|
|
15465 | # consuming and fragmenting process. To avoid this, we pick a random, |
|
|
15466 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
|
15467 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
|
15468 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
15469 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
|
15470 | ;; |
|
|
15471 | |
|
|
15472 | linux*) |
|
|
15473 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15474 | tmp_addflag= |
|
|
15475 | case $cc_basename,$host_cpu in |
|
|
15476 | pgcc*) # Portland Group C compiler |
|
|
15477 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
15478 | tmp_addflag=' $pic_flag' |
|
|
15479 | ;; |
|
|
15480 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
|
15481 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
|
|
15482 | tmp_addflag=' $pic_flag -Mnomain' ;; |
|
|
15483 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
|
15484 | tmp_addflag=' -i_dynamic' ;; |
|
|
15485 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
|
15486 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
|
15487 | ifc* | ifort*) # Intel Fortran compiler |
|
|
15488 | tmp_addflag=' -nofor_main' ;; |
|
|
15489 | esac |
|
|
15490 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15491 | |
|
|
15492 | if test $supports_anon_versioning = yes; then |
|
|
15493 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
|
|
15494 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
|
15495 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
|
15496 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
|
15497 | fi |
|
|
15498 | link_all_deplibs_GCJ=no |
|
|
15499 | else |
|
|
15500 | ld_shlibs_GCJ=no |
|
|
15501 | fi |
|
|
15502 | ;; |
|
|
15503 | |
|
|
15504 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
15505 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
15506 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
15507 | wlarc= |
|
|
15508 | else |
|
|
15509 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15510 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15511 | fi |
|
|
15512 | ;; |
|
|
15513 | |
|
|
15514 | solaris*) |
|
|
15515 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
|
|
15516 | ld_shlibs_GCJ=no |
|
|
15517 | cat <<EOF 1>&2 |
|
|
15518 | |
|
|
15519 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
15520 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
15521 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
15522 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
15523 | *** your PATH or compiler configuration so that the native linker is |
|
|
15524 | *** used, and then restart. |
|
|
15525 | |
|
|
15526 | EOF |
|
|
15527 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15528 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15529 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15530 | else |
|
|
15531 | ld_shlibs_GCJ=no |
|
|
15532 | fi |
|
|
15533 | ;; |
|
|
15534 | |
|
|
15535 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
|
15536 | case `$LD -v 2>&1` in |
|
|
15537 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
|
15538 | ld_shlibs_GCJ=no |
|
|
15539 | cat <<_LT_EOF 1>&2 |
|
|
15540 | |
|
|
15541 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
|
15542 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
|
|
15543 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
15544 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
|
15545 | *** your PATH or compiler configuration so that the native linker is |
|
|
15546 | *** used, and then restart. |
|
|
15547 | |
|
|
15548 | _LT_EOF |
|
|
15549 | ;; |
|
|
15550 | *) |
|
|
15551 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15552 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
|
|
15553 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
|
|
15554 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
|
|
15555 | else |
|
|
15556 | ld_shlibs_GCJ=no |
|
|
15557 | fi |
|
|
15558 | ;; |
|
|
15559 | esac |
|
|
15560 | ;; |
|
|
15561 | |
|
|
15562 | sunos4*) |
|
|
15563 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15564 | wlarc= |
|
|
15565 | hardcode_direct_GCJ=yes |
|
|
15566 | hardcode_shlibpath_var_GCJ=no |
|
|
15567 | ;; |
|
|
15568 | |
|
|
15569 | *) |
|
|
15570 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
|
|
15571 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
15572 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
15573 | else |
|
|
15574 | ld_shlibs_GCJ=no |
|
|
15575 | fi |
|
|
15576 | ;; |
|
|
15577 | esac |
|
|
15578 | |
|
|
15579 | if test "$ld_shlibs_GCJ" = no; then |
|
|
15580 | runpath_var= |
|
|
15581 | hardcode_libdir_flag_spec_GCJ= |
|
|
15582 | export_dynamic_flag_spec_GCJ= |
|
|
15583 | whole_archive_flag_spec_GCJ= |
|
|
15584 | fi |
|
|
15585 | else |
|
|
15586 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
15587 | case $host_os in |
|
|
15588 | aix3*) |
|
|
15589 | allow_undefined_flag_GCJ=unsupported |
|
|
15590 | always_export_symbols_GCJ=yes |
|
|
15591 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
|
|
15592 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
15593 | # are no directories specified by -L. |
|
|
15594 | hardcode_minus_L_GCJ=yes |
|
|
15595 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
|
15596 | # Neither direct hardcoding nor static linking is supported with a |
|
|
15597 | # broken collect2. |
|
|
15598 | hardcode_direct_GCJ=unsupported |
|
|
15599 | fi |
|
|
15600 | ;; |
|
|
15601 | |
|
|
15602 | aix4* | aix5*) |
|
|
15603 | if test "$host_cpu" = ia64; then |
|
|
15604 | # On IA64, the linker does run time linking by default, so we don't |
|
|
15605 | # have to do anything special. |
|
|
15606 | aix_use_runtimelinking=no |
|
|
15607 | exp_sym_flag='-Bexport' |
|
|
15608 | no_entry_flag="" |
|
|
15609 | else |
|
|
15610 | # If we're using GNU nm, then we don't want the "-C" option. |
|
|
15611 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
|
15612 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
|
|
15613 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
15614 | else |
|
|
15615 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' |
|
|
15616 | fi |
|
|
15617 | aix_use_runtimelinking=no |
|
|
15618 | |
|
|
15619 | # Test if we are trying to use run time linking or normal |
|
|
15620 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
|
15621 | # need to do runtime linking. |
|
|
15622 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
|
|
15623 | for ld_flag in $LDFLAGS; do |
|
|
15624 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
|
15625 | aix_use_runtimelinking=yes |
|
|
15626 | break |
|
|
15627 | fi |
|
|
15628 | done |
|
|
15629 | ;; |
|
|
15630 | esac |
|
|
15631 | |
|
|
15632 | exp_sym_flag='-bexport' |
|
|
15633 | no_entry_flag='-bnoentry' |
|
|
15634 | fi |
|
|
15635 | |
|
|
15636 | # When large executables or shared objects are built, AIX ld can |
|
|
15637 | # have problems creating the table of contents. If linking a library |
|
|
15638 | # or program results in "error TOC overflow" add -mminimal-toc to |
|
|
15639 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
|
15640 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
|
15641 | |
|
|
15642 | archive_cmds_GCJ='' |
|
|
15643 | hardcode_direct_GCJ=yes |
|
|
15644 | hardcode_libdir_separator_GCJ=':' |
|
|
15645 | link_all_deplibs_GCJ=yes |
|
|
15646 | |
|
|
15647 | if test "$GCC" = yes; then |
|
|
15648 | case $host_os in aix4.[012]|aix4.[012].*) |
|
|
15649 | # We only want to do this on AIX 4.2 and lower, the check |
|
|
15650 | # below for broken collect2 doesn't work under 4.3+ |
|
|
15651 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
15652 | if test -f "$collect2name" && \ |
|
|
15653 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
15654 | then |
|
|
15655 | # We have reworked collect2 |
|
|
15656 | hardcode_direct_GCJ=yes |
|
|
15657 | else |
|
|
15658 | # We have old collect2 |
|
|
15659 | hardcode_direct_GCJ=unsupported |
|
|
15660 | # It fails to find uninstalled libraries when the uninstalled |
|
|
15661 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
15662 | # to unsupported forces relinking |
|
|
15663 | hardcode_minus_L_GCJ=yes |
|
|
15664 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15665 | hardcode_libdir_separator_GCJ= |
|
|
15666 | fi |
|
|
15667 | ;; |
|
|
15668 | esac |
|
|
15669 | shared_flag='-shared' |
|
|
15670 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15671 | shared_flag="$shared_flag "'${wl}-G' |
|
|
15672 | fi |
|
|
15673 | else |
|
|
15674 | # not using gcc |
|
|
15675 | if test "$host_cpu" = ia64; then |
|
|
15676 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
|
15677 | # chokes on -Wl,-G. The following line is correct: |
|
|
15678 | shared_flag='-G' |
|
|
15679 | else |
|
|
15680 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15681 | shared_flag='${wl}-G' |
|
|
15682 | else |
|
|
15683 | shared_flag='${wl}-bM:SRE' |
|
|
15684 | fi |
|
|
15685 | fi |
|
|
15686 | fi |
|
|
15687 | |
|
|
15688 | # It seems that -bexpall does not export symbols beginning with |
|
|
15689 | # underscore (_), so it is better to generate a list of symbols to export. |
|
|
15690 | always_export_symbols_GCJ=yes |
|
|
15691 | if test "$aix_use_runtimelinking" = yes; then |
|
|
15692 | # Warning - without using the other runtime loading flags (-brtl), |
|
|
15693 | # -berok will link without error, but may produce a broken library. |
|
|
15694 | allow_undefined_flag_GCJ='-berok' |
|
|
15695 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15696 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15697 | /* confdefs.h. */ |
|
|
15698 | _ACEOF |
|
|
15699 | cat confdefs.h >>conftest.$ac_ext |
|
|
15700 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15701 | /* end confdefs.h. */ |
|
|
15702 | |
|
|
15703 | int |
|
|
15704 | main () |
|
|
15705 | { |
|
|
15706 | |
|
|
15707 | ; |
|
|
15708 | return 0; |
|
|
15709 | } |
|
|
15710 | _ACEOF |
|
|
15711 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15713 | (eval $ac_link) 2>conftest.er1 |
|
|
15714 | ac_status=$? |
|
|
15715 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15716 | rm -f conftest.er1 |
|
|
15717 | cat conftest.err >&5 |
|
|
15718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15719 | (exit $ac_status); } && |
|
|
15720 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15722 | (eval $ac_try) 2>&5 |
|
|
15723 | ac_status=$? |
|
|
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15725 | (exit $ac_status); }; } && |
|
|
15726 | { ac_try='test -s conftest$ac_exeext' |
|
|
15727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15728 | (eval $ac_try) 2>&5 |
|
|
15729 | ac_status=$? |
|
|
15730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15731 | (exit $ac_status); }; }; then |
|
|
15732 | |
|
|
15733 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15734 | }'` |
|
|
15735 | # Check for a 64-bit object if we didn't find anything. |
|
|
15736 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15737 | }'`; fi |
|
|
15738 | else |
|
|
15739 | echo "$as_me: failed program was:" >&5 |
|
|
15740 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15741 | |
|
|
15742 | fi |
|
|
15743 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15744 | conftest$ac_exeext conftest.$ac_ext |
|
|
15745 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15746 | |
|
|
15747 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15748 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
|
15749 | else |
|
|
15750 | if test "$host_cpu" = ia64; then |
|
|
15751 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
|
|
15752 | allow_undefined_flag_GCJ="-z nodefs" |
|
|
15753 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
|
|
15754 | else |
|
|
15755 | # Determine the default libpath from the value encoded in an empty executable. |
|
|
15756 | cat >conftest.$ac_ext <<_ACEOF |
|
|
15757 | /* confdefs.h. */ |
|
|
15758 | _ACEOF |
|
|
15759 | cat confdefs.h >>conftest.$ac_ext |
|
|
15760 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
15761 | /* end confdefs.h. */ |
|
|
15762 | |
|
|
15763 | int |
|
|
15764 | main () |
|
|
15765 | { |
|
|
15766 | |
|
|
15767 | ; |
|
|
15768 | return 0; |
|
|
15769 | } |
|
|
15770 | _ACEOF |
|
|
15771 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
15772 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
15773 | (eval $ac_link) 2>conftest.er1 |
|
|
15774 | ac_status=$? |
|
|
15775 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
15776 | rm -f conftest.er1 |
|
|
15777 | cat conftest.err >&5 |
|
|
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15779 | (exit $ac_status); } && |
|
|
15780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
15781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15782 | (eval $ac_try) 2>&5 |
|
|
15783 | ac_status=$? |
|
|
15784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15785 | (exit $ac_status); }; } && |
|
|
15786 | { ac_try='test -s conftest$ac_exeext' |
|
|
15787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
15788 | (eval $ac_try) 2>&5 |
|
|
15789 | ac_status=$? |
|
|
15790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
15791 | (exit $ac_status); }; }; then |
|
|
15792 | |
|
|
15793 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15794 | }'` |
|
|
15795 | # Check for a 64-bit object if we didn't find anything. |
|
|
15796 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
|
|
15797 | }'`; fi |
|
|
15798 | else |
|
|
15799 | echo "$as_me: failed program was:" >&5 |
|
|
15800 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
15801 | |
|
|
15802 | fi |
|
|
15803 | rm -f conftest.err conftest.$ac_objext \ |
|
|
15804 | conftest$ac_exeext conftest.$ac_ext |
|
|
15805 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
|
15806 | |
|
|
15807 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
|
15808 | # Warning - without using the other run time loading flags, |
|
|
15809 | # -berok will link without error, but may produce a broken library. |
|
|
15810 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
|
|
15811 | allow_undefined_flag_GCJ=' ${wl}-berok' |
|
|
15812 | # Exported symbols can be pulled into shared objects from archives |
|
|
15813 | whole_archive_flag_spec_GCJ='$convenience' |
|
|
15814 | archive_cmds_need_lc_GCJ=yes |
|
|
15815 | # This is similar to how AIX traditionally builds its shared libraries. |
|
|
15816 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
|
15817 | fi |
|
|
15818 | fi |
|
|
15819 | ;; |
|
|
15820 | |
|
|
15821 | amigaos*) |
|
|
15822 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
|
|
15823 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15824 | hardcode_minus_L_GCJ=yes |
|
|
15825 | # see comment about different semantics on the GNU ld section |
|
|
15826 | ld_shlibs_GCJ=no |
|
|
15827 | ;; |
|
|
15828 | |
|
|
15829 | bsdi[45]*) |
|
|
15830 | export_dynamic_flag_spec_GCJ=-rdynamic |
|
|
15831 | ;; |
|
|
15832 | |
|
|
15833 | cygwin* | mingw* | pw32*) |
|
|
15834 | # When not using gcc, we currently assume that we are using |
|
|
15835 | # Microsoft Visual C++. |
|
|
15836 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
15837 | # no search path for DLLs. |
|
|
15838 | hardcode_libdir_flag_spec_GCJ=' ' |
|
|
15839 | allow_undefined_flag_GCJ=unsupported |
|
|
15840 | # Tell ltmain to make .lib files, not .a files. |
|
|
15841 | libext=lib |
|
|
15842 | # Tell ltmain to make .dll files, not .so files. |
|
|
15843 | shrext_cmds=".dll" |
|
|
15844 | # FIXME: Setting linknames here is a bad hack. |
|
|
15845 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
15846 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
15847 | old_archive_From_new_cmds_GCJ='true' |
|
|
15848 | # FIXME: Should let the user specify the lib program. |
|
|
15849 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
15850 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
|
|
15851 | enable_shared_with_static_runtimes_GCJ=yes |
|
|
15852 | ;; |
|
|
15853 | |
|
|
15854 | darwin* | rhapsody*) |
|
|
15855 | case $host_os in |
|
|
15856 | rhapsody* | darwin1.[012]) |
|
|
15857 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
|
|
15858 | ;; |
|
|
15859 | *) # Darwin 1.3 on |
|
|
15860 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
|
|
15861 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
15862 | else |
|
|
15863 | case ${MACOSX_DEPLOYMENT_TARGET} in |
|
|
15864 | 10.[012]) |
|
|
15865 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
|
|
15866 | ;; |
|
|
15867 | 10.*) |
|
|
15868 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
|
|
15869 | ;; |
|
|
15870 | esac |
|
|
15871 | fi |
|
|
15872 | ;; |
|
|
15873 | esac |
|
|
15874 | archive_cmds_need_lc_GCJ=no |
|
|
15875 | hardcode_direct_GCJ=no |
|
|
15876 | hardcode_automatic_GCJ=yes |
|
|
15877 | hardcode_shlibpath_var_GCJ=unsupported |
|
|
15878 | whole_archive_flag_spec_GCJ='' |
|
|
15879 | link_all_deplibs_GCJ=yes |
|
|
15880 | if test "$GCC" = yes ; then |
|
|
15881 | output_verbose_link_cmd='echo' |
|
|
15882 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
|
|
15883 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
15884 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
15885 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15886 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15887 | else |
|
|
15888 | case $cc_basename in |
|
|
15889 | xlc*) |
|
|
15890 | output_verbose_link_cmd='echo' |
|
|
15891 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
|
|
15892 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
|
|
15893 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
|
|
15894 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15895 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
|
15896 | ;; |
|
|
15897 | *) |
|
|
15898 | ld_shlibs_GCJ=no |
|
|
15899 | ;; |
|
|
15900 | esac |
|
|
15901 | fi |
|
|
15902 | ;; |
|
|
15903 | |
|
|
15904 | dgux*) |
|
|
15905 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
15906 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
15907 | hardcode_shlibpath_var_GCJ=no |
|
|
15908 | ;; |
|
|
15909 | |
|
|
15910 | freebsd1*) |
|
|
15911 | ld_shlibs_GCJ=no |
|
|
15912 | ;; |
|
|
15913 | |
|
|
15914 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
15915 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
15916 | # does not break anything, and helps significantly (at the cost of a little |
|
|
15917 | # extra space). |
|
|
15918 | freebsd2.2*) |
|
|
15919 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
15920 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15921 | hardcode_direct_GCJ=yes |
|
|
15922 | hardcode_shlibpath_var_GCJ=no |
|
|
15923 | ;; |
|
|
15924 | |
|
|
15925 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
15926 | freebsd2*) |
|
|
15927 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
15928 | hardcode_direct_GCJ=yes |
|
|
15929 | hardcode_minus_L_GCJ=yes |
|
|
15930 | hardcode_shlibpath_var_GCJ=no |
|
|
15931 | ;; |
|
|
15932 | |
|
|
15933 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
15934 | freebsd* | dragonfly*) |
|
|
15935 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15936 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15937 | hardcode_direct_GCJ=yes |
|
|
15938 | hardcode_shlibpath_var_GCJ=no |
|
|
15939 | ;; |
|
|
15940 | |
|
|
15941 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. |
|
|
15942 | kfreebsd*-gnu) |
|
|
15943 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15944 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
15945 | hardcode_direct_GCJ=yes |
|
|
15946 | hardcode_shlibpath_var_GCJ=no |
|
|
15947 | link_all_deplibs_GCJ=no |
|
|
15948 | ;; |
|
|
15949 | |
|
|
15950 | hpux9*) |
|
|
15951 | if test "$GCC" = yes; then |
|
|
15952 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
15953 | else |
|
|
15954 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
|
15955 | fi |
|
|
15956 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
15957 | hardcode_libdir_separator_GCJ=: |
|
|
15958 | hardcode_direct_GCJ=yes |
|
|
15959 | |
|
|
15960 | # hardcode_minus_L: Not really in the search PATH, |
|
|
15961 | # but as the default location of the library. |
|
|
15962 | hardcode_minus_L_GCJ=yes |
|
|
15963 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15964 | ;; |
|
|
15965 | |
|
|
15966 | hpux10*) |
|
|
15967 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
15968 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15969 | else |
|
|
15970 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
|
15971 | fi |
|
|
15972 | if test "$with_gnu_ld" = no; then |
|
|
15973 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
15974 | hardcode_libdir_separator_GCJ=: |
|
|
15975 | |
|
|
15976 | hardcode_direct_GCJ=yes |
|
|
15977 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
15978 | |
|
|
15979 | # hardcode_minus_L: Not really in the search PATH, |
|
|
15980 | # but as the default location of the library. |
|
|
15981 | hardcode_minus_L_GCJ=yes |
|
|
15982 | fi |
|
|
15983 | ;; |
|
|
15984 | |
|
|
15985 | hpux11*) |
|
|
15986 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
|
15987 | case $host_cpu in |
|
|
15988 | hppa*64*) |
|
|
15989 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15990 | ;; |
|
|
15991 | ia64*) |
|
|
15992 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15993 | ;; |
|
|
15994 | *) |
|
|
15995 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
15996 | ;; |
|
|
15997 | esac |
|
|
15998 | else |
|
|
15999 | case $host_cpu in |
|
|
16000 | hppa*64*) |
|
|
16001 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16002 | ;; |
|
|
16003 | ia64*) |
|
|
16004 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16005 | ;; |
|
|
16006 | *) |
|
|
16007 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16008 | ;; |
|
|
16009 | esac |
|
|
16010 | fi |
|
|
16011 | if test "$with_gnu_ld" = no; then |
|
|
16012 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
|
|
16013 | hardcode_libdir_separator_GCJ=: |
|
|
16014 | |
|
|
16015 | case $host_cpu in |
|
|
16016 | hppa*64*|ia64*) |
|
|
16017 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
|
|
16018 | hardcode_direct_GCJ=no |
|
|
16019 | hardcode_shlibpath_var_GCJ=no |
|
|
16020 | ;; |
|
|
16021 | *) |
|
|
16022 | hardcode_direct_GCJ=yes |
|
|
16023 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16024 | |
|
|
16025 | # hardcode_minus_L: Not really in the search PATH, |
|
|
16026 | # but as the default location of the library. |
|
|
16027 | hardcode_minus_L_GCJ=yes |
|
|
16028 | ;; |
|
|
16029 | esac |
|
|
16030 | fi |
|
|
16031 | ;; |
|
|
16032 | |
|
|
16033 | irix5* | irix6* | nonstopux*) |
|
|
16034 | if test "$GCC" = yes; then |
|
|
16035 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16036 | else |
|
|
16037 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16038 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
|
|
16039 | fi |
|
|
16040 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16041 | hardcode_libdir_separator_GCJ=: |
|
|
16042 | link_all_deplibs_GCJ=yes |
|
|
16043 | ;; |
|
|
16044 | |
|
|
16045 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) |
|
|
16046 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16047 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
16048 | else |
|
|
16049 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
16050 | fi |
|
|
16051 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16052 | hardcode_direct_GCJ=yes |
|
|
16053 | hardcode_shlibpath_var_GCJ=no |
|
|
16054 | ;; |
|
|
16055 | |
|
|
16056 | newsos6) |
|
|
16057 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16058 | hardcode_direct_GCJ=yes |
|
|
16059 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16060 | hardcode_libdir_separator_GCJ=: |
|
|
16061 | hardcode_shlibpath_var_GCJ=no |
|
|
16062 | ;; |
|
|
16063 | |
|
|
16064 | openbsd*) |
|
|
16065 | hardcode_direct_GCJ=yes |
|
|
16066 | hardcode_shlibpath_var_GCJ=no |
|
|
16067 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16068 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16069 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
|
16070 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16071 | export_dynamic_flag_spec_GCJ='${wl}-E' |
|
|
16072 | else |
|
|
16073 | case $host_os in |
|
|
16074 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
|
16075 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
16076 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16077 | ;; |
|
|
16078 | *) |
|
|
16079 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16080 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
|
|
16081 | ;; |
|
|
16082 | esac |
|
|
16083 | fi |
|
|
16084 | ;; |
|
|
16085 | |
|
|
16086 | os2*) |
|
|
16087 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16088 | hardcode_minus_L_GCJ=yes |
|
|
16089 | allow_undefined_flag_GCJ=unsupported |
|
|
16090 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
|
|
16091 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
16092 | ;; |
|
|
16093 | |
|
|
16094 | osf3*) |
|
|
16095 | if test "$GCC" = yes; then |
|
|
16096 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16097 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16098 | else |
|
|
16099 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16100 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16101 | fi |
|
|
16102 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16103 | hardcode_libdir_separator_GCJ=: |
|
|
16104 | ;; |
|
|
16105 | |
|
|
16106 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
16107 | if test "$GCC" = yes; then |
|
|
16108 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
|
|
16109 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
|
16110 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
|
|
16111 | else |
|
|
16112 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
|
|
16113 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
|
|
16114 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
16115 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
|
|
16116 | |
|
|
16117 | # Both c and cxx compiler support -rpath directly |
|
|
16118 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
|
|
16119 | fi |
|
|
16120 | hardcode_libdir_separator_GCJ=: |
|
|
16121 | ;; |
|
|
16122 | |
|
|
16123 | solaris*) |
|
|
16124 | no_undefined_flag_GCJ=' -z text' |
|
|
16125 | if test "$GCC" = yes; then |
|
|
16126 | wlarc='${wl}' |
|
|
16127 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16128 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16129 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
|
|
16130 | else |
|
|
16131 | wlarc='' |
|
|
16132 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16133 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
16134 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
16135 | fi |
|
|
16136 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
|
|
16137 | hardcode_shlibpath_var_GCJ=no |
|
|
16138 | case $host_os in |
|
|
16139 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
16140 | *) |
|
|
16141 | # The compiler driver will combine linker options so we |
|
|
16142 | # cannot just pass the convience library names through |
|
|
16143 | # without $wl, iff we do not link with $LD. |
|
|
16144 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
|
|
16145 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
16146 | case $wlarc in |
|
|
16147 | '') |
|
|
16148 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
|
|
16149 | *) |
|
|
16150 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
|
|
16151 | esac ;; |
|
|
16152 | esac |
|
|
16153 | link_all_deplibs_GCJ=yes |
|
|
16154 | ;; |
|
|
16155 | |
|
|
16156 | sunos4*) |
|
|
16157 | if test "x$host_vendor" = xsequent; then |
|
|
16158 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
16159 | # files that make .init and .fini sections work. |
|
|
16160 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16161 | else |
|
|
16162 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
16163 | fi |
|
|
16164 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16165 | hardcode_direct_GCJ=yes |
|
|
16166 | hardcode_minus_L_GCJ=yes |
|
|
16167 | hardcode_shlibpath_var_GCJ=no |
|
|
16168 | ;; |
|
|
16169 | |
|
|
16170 | sysv4) |
|
|
16171 | case $host_vendor in |
|
|
16172 | sni) |
|
|
16173 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16174 | hardcode_direct_GCJ=yes # is this really true??? |
|
|
16175 | ;; |
|
|
16176 | siemens) |
|
|
16177 | ## LD is ld it makes a PLAMLIB |
|
|
16178 | ## CC just makes a GrossModule. |
|
|
16179 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
16180 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
|
|
16181 | hardcode_direct_GCJ=no |
|
|
16182 | ;; |
|
|
16183 | motorola) |
|
|
16184 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16185 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
|
|
16186 | ;; |
|
|
16187 | esac |
|
|
16188 | runpath_var='LD_RUN_PATH' |
|
|
16189 | hardcode_shlibpath_var_GCJ=no |
|
|
16190 | ;; |
|
|
16191 | |
|
|
16192 | sysv4.3*) |
|
|
16193 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16194 | hardcode_shlibpath_var_GCJ=no |
|
|
16195 | export_dynamic_flag_spec_GCJ='-Bexport' |
|
|
16196 | ;; |
|
|
16197 | |
|
|
16198 | sysv4*MP*) |
|
|
16199 | if test -d /usr/nec; then |
|
|
16200 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16201 | hardcode_shlibpath_var_GCJ=no |
|
|
16202 | runpath_var=LD_RUN_PATH |
|
|
16203 | hardcode_runpath_var=yes |
|
|
16204 | ld_shlibs_GCJ=yes |
|
|
16205 | fi |
|
|
16206 | ;; |
|
|
16207 | |
|
|
16208 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
|
|
16209 | no_undefined_flag_GCJ='${wl}-z,text' |
|
|
16210 | archive_cmds_need_lc_GCJ=no |
|
|
16211 | hardcode_shlibpath_var_GCJ=no |
|
|
16212 | runpath_var='LD_RUN_PATH' |
|
|
16213 | |
|
|
16214 | if test "$GCC" = yes; then |
|
|
16215 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16216 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16217 | else |
|
|
16218 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16219 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16220 | fi |
|
|
16221 | ;; |
|
|
16222 | |
|
|
16223 | sysv5* | sco3.2v5* | sco5v6*) |
|
|
16224 | # Note: We can NOT use -z defs as we might desire, because we do not |
|
|
16225 | # link with -lc, and that would cause any symbols used from libc to |
|
|
16226 | # always be unresolved, which means just about no library would |
|
|
16227 | # ever link correctly. If we're not using GNU ld we use -z text |
|
|
16228 | # though, which does catch some bad symbols but isn't as heavy-handed |
|
|
16229 | # as -z defs. |
|
|
16230 | no_undefined_flag_GCJ='${wl}-z,text' |
|
|
16231 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
|
|
16232 | archive_cmds_need_lc_GCJ=no |
|
|
16233 | hardcode_shlibpath_var_GCJ=no |
|
|
16234 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
|
|
16235 | hardcode_libdir_separator_GCJ=':' |
|
|
16236 | link_all_deplibs_GCJ=yes |
|
|
16237 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
|
|
16238 | runpath_var='LD_RUN_PATH' |
|
|
16239 | |
|
|
16240 | if test "$GCC" = yes; then |
|
|
16241 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16242 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16243 | else |
|
|
16244 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16245 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
16246 | fi |
|
|
16247 | ;; |
|
|
16248 | |
|
|
16249 | uts4*) |
|
|
16250 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
16251 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
|
|
16252 | hardcode_shlibpath_var_GCJ=no |
|
|
16253 | ;; |
|
|
16254 | |
|
|
16255 | *) |
|
|
16256 | ld_shlibs_GCJ=no |
|
|
16257 | ;; |
|
|
16258 | esac |
|
|
16259 | fi |
|
|
16260 | |
|
|
16261 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
|
|
16262 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
|
|
16263 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
|
|
16264 | |
|
|
16265 | # |
|
|
16266 | # Do we need to explicitly link libc? |
|
|
16267 | # |
|
|
16268 | case "x$archive_cmds_need_lc_GCJ" in |
|
|
16269 | x|xyes) |
|
|
16270 | # Assume -lc should be added |
|
|
16271 | archive_cmds_need_lc_GCJ=yes |
|
|
16272 | |
|
|
16273 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
16274 | case $archive_cmds_GCJ in |
|
|
16275 | *'~'*) |
|
|
16276 | # FIXME: we may have to deal with multi-command sequences. |
|
|
16277 | ;; |
|
|
16278 | '$CC '*) |
|
|
16279 | # Test whether the compiler implicitly links with -lc since on some |
|
|
16280 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
16281 | # to ld, don't add -lc before -lgcc. |
|
|
16282 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
16283 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
16284 | $rm conftest* |
|
|
16285 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
|
16286 | |
|
|
16287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
16288 | (eval $ac_compile) 2>&5 |
|
|
16289 | ac_status=$? |
|
|
16290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16291 | (exit $ac_status); } 2>conftest.err; then |
|
|
16292 | soname=conftest |
|
|
16293 | lib=conftest |
|
|
16294 | libobjs=conftest.$ac_objext |
|
|
16295 | deplibs= |
|
|
16296 | wl=$lt_prog_compiler_wl_GCJ |
|
|
16297 | pic_flag=$lt_prog_compiler_pic_GCJ |
|
|
16298 | compiler_flags=-v |
|
|
16299 | linker_flags=-v |
|
|
16300 | verstring= |
|
|
16301 | output_objdir=. |
|
|
16302 | libname=conftest |
|
|
16303 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
|
|
16304 | allow_undefined_flag_GCJ= |
|
|
16305 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
16306 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
16307 | ac_status=$? |
|
|
16308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
16309 | (exit $ac_status); } |
|
|
16310 | then |
|
|
16311 | archive_cmds_need_lc_GCJ=no |
|
|
16312 | else |
|
|
16313 | archive_cmds_need_lc_GCJ=yes |
|
|
16314 | fi |
|
|
16315 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
|
|
16316 | else |
|
|
16317 | cat conftest.err 1>&5 |
|
|
16318 | fi |
|
|
16319 | $rm conftest* |
|
|
16320 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
|
|
16321 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 |
|
|
16322 | ;; |
|
|
16323 | esac |
|
|
16324 | fi |
|
|
16325 | ;; |
|
|
16326 | esac |
|
|
16327 | |
|
|
16328 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
16329 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
16330 | library_names_spec= |
|
|
16331 | libname_spec='lib$name' |
|
|
16332 | soname_spec= |
|
|
16333 | shrext_cmds=".so" |
|
|
16334 | postinstall_cmds= |
|
|
16335 | postuninstall_cmds= |
|
|
16336 | finish_cmds= |
|
|
16337 | finish_eval= |
|
|
16338 | shlibpath_var= |
|
|
16339 | shlibpath_overrides_runpath=unknown |
|
|
16340 | version_type=none |
|
|
16341 | dynamic_linker="$host_os ld.so" |
|
|
16342 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
16343 | if test "$GCC" = yes; then |
|
|
16344 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16345 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
|
|
16346 | # if the path contains ";" then we assume it to be the separator |
|
|
16347 | # otherwise default to the standard path separator (i.e. ":") - it is |
|
|
16348 | # assumed that no part of a normal pathname contains ";" but that should |
|
|
16349 | # okay in the real world where ";" in dirpaths is itself problematic. |
|
|
16350 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16351 | else |
|
|
16352 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16353 | fi |
|
|
16354 | else |
|
|
16355 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
16356 | fi |
|
|
16357 | need_lib_prefix=unknown |
|
|
16358 | hardcode_into_libs=no |
|
|
16359 | |
|
|
16360 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
16361 | # flags to be left without arguments |
|
|
16362 | need_version=unknown |
|
|
16363 | |
|
|
16364 | case $host_os in |
|
|
16365 | aix3*) |
|
|
16366 | version_type=linux |
|
|
16367 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
|
16368 | shlibpath_var=LIBPATH |
|
|
16369 | |
|
|
16370 | # AIX 3 has no versioning support, so we append a major version to the name. |
|
|
16371 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16372 | ;; |
|
|
16373 | |
|
|
16374 | aix4* | aix5*) |
|
|
16375 | version_type=linux |
|
|
16376 | need_lib_prefix=no |
|
|
16377 | need_version=no |
|
|
16378 | hardcode_into_libs=yes |
|
|
16379 | if test "$host_cpu" = ia64; then |
|
|
16380 | # AIX 5 supports IA64 |
|
|
16381 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
|
16382 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16383 | else |
|
|
16384 | # With GCC up to 2.95.x, collect2 would create an import file |
|
|
16385 | # for dependence libraries. The import file would start with |
|
|
16386 | # the line `#! .'. This would cause the generated library to |
|
|
16387 | # depend on `.', always an invalid library. This was fixed in |
|
|
16388 | # development snapshots of GCC prior to 3.0. |
|
|
16389 | case $host_os in |
|
|
16390 | aix4 | aix4.[01] | aix4.[01].*) |
|
|
16391 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
|
16392 | echo ' yes ' |
|
|
16393 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
|
|
16394 | : |
|
|
16395 | else |
|
|
16396 | can_build_shared=no |
|
|
16397 | fi |
|
|
16398 | ;; |
|
|
16399 | esac |
|
|
16400 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
|
16401 | # soname into executable. Probably we can add versioning support to |
|
|
16402 | # collect2, so additional links can be useful in future. |
|
|
16403 | if test "$aix_use_runtimelinking" = yes; then |
|
|
16404 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
|
16405 | # instead of lib<name>.a to let people know that these are not |
|
|
16406 | # typical AIX shared libraries. |
|
|
16407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16408 | else |
|
|
16409 | # We preserve .a as extension for shared libraries through AIX4.2 |
|
|
16410 | # and later when we are not doing run time linking. |
|
|
16411 | library_names_spec='${libname}${release}.a $libname.a' |
|
|
16412 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16413 | fi |
|
|
16414 | shlibpath_var=LIBPATH |
|
|
16415 | fi |
|
|
16416 | ;; |
|
|
16417 | |
|
|
16418 | amigaos*) |
|
|
16419 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
16420 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
16421 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
|
16422 | ;; |
|
|
16423 | |
|
|
16424 | beos*) |
|
|
16425 | library_names_spec='${libname}${shared_ext}' |
|
|
16426 | dynamic_linker="$host_os ld.so" |
|
|
16427 | shlibpath_var=LIBRARY_PATH |
|
|
16428 | ;; |
|
|
16429 | |
|
|
16430 | bsdi[45]*) |
|
|
16431 | version_type=linux |
|
|
16432 | need_version=no |
|
|
16433 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16434 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16435 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
16436 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16437 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
16438 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
16439 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
16440 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
16441 | # libtool to hard-code these into programs |
|
|
16442 | ;; |
|
|
16443 | |
|
|
16444 | cygwin* | mingw* | pw32*) |
|
|
16445 | version_type=windows |
|
|
16446 | shrext_cmds=".dll" |
|
|
16447 | need_version=no |
|
|
16448 | need_lib_prefix=no |
|
|
16449 | |
|
|
16450 | case $GCC,$host_os in |
|
|
16451 | yes,cygwin* | yes,mingw* | yes,pw32*) |
|
|
16452 | library_names_spec='$libname.dll.a' |
|
|
16453 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
|
16454 | postinstall_cmds='base_file=`basename \${file}`~ |
|
|
16455 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
|
|
16456 | dldir=$destdir/`dirname \$dlpath`~ |
|
|
16457 | test -d \$dldir || mkdir -p \$dldir~ |
|
|
16458 | $install_prog $dir/$dlname \$dldir/$dlname~ |
|
|
16459 | chmod a+x \$dldir/$dlname' |
|
|
16460 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
|
16461 | dlpath=$dir/\$dldll~ |
|
|
16462 | $rm \$dlpath' |
|
|
16463 | shlibpath_overrides_runpath=yes |
|
|
16464 | |
|
|
16465 | case $host_os in |
|
|
16466 | cygwin*) |
|
|
16467 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
|
16468 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16469 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
|
16470 | ;; |
|
|
16471 | mingw*) |
|
|
16472 | # MinGW DLLs use traditional 'lib' prefix |
|
|
16473 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16474 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
|
16475 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
|
|
16476 | # It is most probably a Windows format PATH printed by |
|
|
16477 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
|
16478 | # path with ; separators, and with drive letters. We can handle the |
|
|
16479 | # drive letters (cygwin fileutils understands them), so leave them, |
|
|
16480 | # especially as we might pass files found there to a mingw objdump, |
|
|
16481 | # which wouldn't understand a cygwinified path. Ahh. |
|
|
16482 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
|
16483 | else |
|
|
16484 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
|
16485 | fi |
|
|
16486 | ;; |
|
|
16487 | pw32*) |
|
|
16488 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
|
|
16489 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
|
16490 | ;; |
|
|
16491 | esac |
|
|
16492 | ;; |
|
|
16493 | |
|
|
16494 | *) |
|
|
16495 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
|
16496 | ;; |
|
|
16497 | esac |
|
|
16498 | dynamic_linker='Win32 ld.exe' |
|
|
16499 | # FIXME: first we should search . and the directory the executable is in |
|
|
16500 | shlibpath_var=PATH |
|
|
16501 | ;; |
|
|
16502 | |
|
|
16503 | darwin* | rhapsody*) |
|
|
16504 | dynamic_linker="$host_os dyld" |
|
|
16505 | version_type=darwin |
|
|
16506 | need_lib_prefix=no |
|
|
16507 | need_version=no |
|
|
16508 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
|
16509 | soname_spec='${libname}${release}${major}$shared_ext' |
|
|
16510 | shlibpath_overrides_runpath=yes |
|
|
16511 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
16512 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
|
16513 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
|
|
16514 | if test "$GCC" = yes; then |
|
|
16515 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
|
|
16516 | else |
|
|
16517 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
|
|
16518 | fi |
|
|
16519 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
|
16520 | ;; |
|
|
16521 | |
|
|
16522 | dgux*) |
|
|
16523 | version_type=linux |
|
|
16524 | need_lib_prefix=no |
|
|
16525 | need_version=no |
|
|
16526 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
|
16527 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16528 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16529 | ;; |
|
|
16530 | |
|
|
16531 | freebsd1*) |
|
|
16532 | dynamic_linker=no |
|
|
16533 | ;; |
|
|
16534 | |
|
|
16535 | kfreebsd*-gnu) |
|
|
16536 | version_type=linux |
|
|
16537 | need_lib_prefix=no |
|
|
16538 | need_version=no |
|
|
16539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16540 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16541 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16542 | shlibpath_overrides_runpath=no |
|
|
16543 | hardcode_into_libs=yes |
|
|
16544 | dynamic_linker='GNU ld.so' |
|
|
16545 | ;; |
|
|
16546 | |
|
|
16547 | freebsd* | dragonfly*) |
|
|
16548 | # DragonFly does not have aout. When/if they implement a new |
|
|
16549 | # versioning mechanism, adjust this. |
|
|
16550 | if test -x /usr/bin/objformat; then |
|
|
16551 | objformat=`/usr/bin/objformat` |
|
|
16552 | else |
|
|
16553 | case $host_os in |
|
|
16554 | freebsd[123]*) objformat=aout ;; |
|
|
16555 | *) objformat=elf ;; |
|
|
16556 | esac |
|
|
16557 | fi |
|
|
16558 | version_type=freebsd-$objformat |
|
|
16559 | case $version_type in |
|
|
16560 | freebsd-elf*) |
|
|
16561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16562 | need_version=no |
|
|
16563 | need_lib_prefix=no |
|
|
16564 | ;; |
|
|
16565 | freebsd-*) |
|
|
16566 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
|
16567 | need_version=yes |
|
|
16568 | ;; |
|
|
16569 | esac |
|
|
16570 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16571 | case $host_os in |
|
|
16572 | freebsd2*) |
|
|
16573 | shlibpath_overrides_runpath=yes |
|
|
16574 | ;; |
|
|
16575 | freebsd3.[01]* | freebsdelf3.[01]*) |
|
|
16576 | shlibpath_overrides_runpath=yes |
|
|
16577 | hardcode_into_libs=yes |
|
|
16578 | ;; |
|
|
16579 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
|
16580 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
|
16581 | shlibpath_overrides_runpath=no |
|
|
16582 | hardcode_into_libs=yes |
|
|
16583 | ;; |
|
|
16584 | freebsd*) # from 4.6 on |
|
|
16585 | shlibpath_overrides_runpath=yes |
|
|
16586 | hardcode_into_libs=yes |
|
|
16587 | ;; |
|
|
16588 | esac |
|
|
16589 | ;; |
|
|
16590 | |
|
|
16591 | gnu*) |
|
|
16592 | version_type=linux |
|
|
16593 | need_lib_prefix=no |
|
|
16594 | need_version=no |
|
|
16595 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
|
16596 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16597 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16598 | hardcode_into_libs=yes |
|
|
16599 | ;; |
|
|
16600 | |
|
|
16601 | hpux9* | hpux10* | hpux11*) |
|
|
16602 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
16603 | # link against other versions. |
|
|
16604 | version_type=sunos |
|
|
16605 | need_lib_prefix=no |
|
|
16606 | need_version=no |
|
|
16607 | case $host_cpu in |
|
|
16608 | ia64*) |
|
|
16609 | shrext_cmds='.so' |
|
|
16610 | hardcode_into_libs=yes |
|
|
16611 | dynamic_linker="$host_os dld.so" |
|
|
16612 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16613 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16615 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16616 | if test "X$HPUX_IA64_MODE" = X32; then |
|
|
16617 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
|
16618 | else |
|
|
16619 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
|
16620 | fi |
|
|
16621 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16622 | ;; |
|
|
16623 | hppa*64*) |
|
|
16624 | shrext_cmds='.sl' |
|
|
16625 | hardcode_into_libs=yes |
|
|
16626 | dynamic_linker="$host_os dld.sl" |
|
|
16627 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
|
16628 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
|
16629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16630 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16631 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
|
16632 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
|
16633 | ;; |
|
|
16634 | *) |
|
|
16635 | shrext_cmds='.sl' |
|
|
16636 | dynamic_linker="$host_os dld.sl" |
|
|
16637 | shlibpath_var=SHLIB_PATH |
|
|
16638 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
16639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16640 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16641 | ;; |
|
|
16642 | esac |
|
|
16643 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
16644 | postinstall_cmds='chmod 555 $lib' |
|
|
16645 | ;; |
|
|
16646 | |
|
|
16647 | interix3*) |
|
|
16648 | version_type=linux |
|
|
16649 | need_lib_prefix=no |
|
|
16650 | need_version=no |
|
|
16651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16652 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16653 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
|
16654 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16655 | shlibpath_overrides_runpath=no |
|
|
16656 | hardcode_into_libs=yes |
|
|
16657 | ;; |
|
|
16658 | |
|
|
16659 | irix5* | irix6* | nonstopux*) |
|
|
16660 | case $host_os in |
|
|
16661 | nonstopux*) version_type=nonstopux ;; |
|
|
16662 | *) |
|
|
16663 | if test "$lt_cv_prog_gnu_ld" = yes; then |
|
|
16664 | version_type=linux |
|
|
16665 | else |
|
|
16666 | version_type=irix |
|
|
16667 | fi ;; |
|
|
16668 | esac |
|
|
16669 | need_lib_prefix=no |
|
|
16670 | need_version=no |
|
|
16671 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16673 | case $host_os in |
|
|
16674 | irix5* | nonstopux*) |
|
|
16675 | libsuff= shlibsuff= |
|
|
16676 | ;; |
|
|
16677 | *) |
|
|
16678 | case $LD in # libtool.m4 will add one of these switches to LD |
|
|
16679 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
|
16680 | libsuff= shlibsuff= libmagic=32-bit;; |
|
|
16681 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
|
16682 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
16683 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
|
16684 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
16685 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
16686 | esac |
|
|
16687 | ;; |
|
|
16688 | esac |
|
|
16689 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
16690 | shlibpath_overrides_runpath=no |
|
|
16691 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
16692 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
16693 | hardcode_into_libs=yes |
|
|
16694 | ;; |
|
|
16695 | |
|
|
16696 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
16697 | linux*oldld* | linux*aout* | linux*coff*) |
|
|
16698 | dynamic_linker=no |
|
|
16699 | ;; |
|
|
16700 | |
|
|
16701 | # This must be Linux ELF. |
|
|
16702 | linux*) |
|
|
16703 | version_type=linux |
|
|
16704 | need_lib_prefix=no |
|
|
16705 | need_version=no |
|
|
16706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16707 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16708 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
16709 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16710 | shlibpath_overrides_runpath=no |
|
|
16711 | # This implies no fast_install, which is unacceptable. |
|
|
16712 | # Some rework will be needed to allow for fast_install |
|
|
16713 | # before this can be enabled. |
|
|
16714 | hardcode_into_libs=yes |
|
|
16715 | |
|
|
16716 | # Append ld.so.conf contents to the search path |
|
|
16717 | if test -f /etc/ld.so.conf; then |
|
|
16718 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
|
16719 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
|
16720 | fi |
|
|
16721 | |
|
|
16722 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
16723 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
16724 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
16725 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
16726 | # people can always --disable-shared, the test was removed, and we |
|
|
16727 | # assume the GNU/Linux dynamic linker is in use. |
|
|
16728 | dynamic_linker='GNU/Linux ld.so' |
|
|
16729 | ;; |
|
|
16730 | |
|
|
16731 | netbsdelf*-gnu) |
|
|
16732 | version_type=linux |
|
|
16733 | need_lib_prefix=no |
|
|
16734 | need_version=no |
|
|
16735 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16736 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16737 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16738 | shlibpath_overrides_runpath=no |
|
|
16739 | hardcode_into_libs=yes |
|
|
16740 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16741 | ;; |
|
|
16742 | |
|
|
16743 | knetbsd*-gnu) |
|
|
16744 | version_type=linux |
|
|
16745 | need_lib_prefix=no |
|
|
16746 | need_version=no |
|
|
16747 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16748 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16749 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16750 | shlibpath_overrides_runpath=no |
|
|
16751 | hardcode_into_libs=yes |
|
|
16752 | dynamic_linker='GNU ld.so' |
|
|
16753 | ;; |
|
|
16754 | |
|
|
16755 | netbsd*) |
|
|
16756 | version_type=sunos |
|
|
16757 | need_lib_prefix=no |
|
|
16758 | need_version=no |
|
|
16759 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
16760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16761 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16762 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
16763 | else |
|
|
16764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
|
16765 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16766 | dynamic_linker='NetBSD ld.elf_so' |
|
|
16767 | fi |
|
|
16768 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16769 | shlibpath_overrides_runpath=yes |
|
|
16770 | hardcode_into_libs=yes |
|
|
16771 | ;; |
|
|
16772 | |
|
|
16773 | newsos6) |
|
|
16774 | version_type=linux |
|
|
16775 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16776 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16777 | shlibpath_overrides_runpath=yes |
|
|
16778 | ;; |
|
|
16779 | |
|
|
16780 | nto-qnx*) |
|
|
16781 | version_type=linux |
|
|
16782 | need_lib_prefix=no |
|
|
16783 | need_version=no |
|
|
16784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16785 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16786 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16787 | shlibpath_overrides_runpath=yes |
|
|
16788 | ;; |
|
|
16789 | |
|
|
16790 | openbsd*) |
|
|
16791 | version_type=sunos |
|
|
16792 | sys_lib_dlsearch_path_spec="/usr/lib" |
|
|
16793 | need_lib_prefix=no |
|
|
16794 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
|
16795 | case $host_os in |
|
|
16796 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
|
16797 | *) need_version=no ;; |
|
|
16798 | esac |
|
|
16799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16800 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
16801 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16802 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
|
16803 | case $host_os in |
|
|
16804 | openbsd2.[89] | openbsd2.[89].*) |
|
|
16805 | shlibpath_overrides_runpath=no |
|
|
16806 | ;; |
|
|
16807 | *) |
|
|
16808 | shlibpath_overrides_runpath=yes |
|
|
16809 | ;; |
|
|
16810 | esac |
|
|
16811 | else |
|
|
16812 | shlibpath_overrides_runpath=yes |
|
|
16813 | fi |
|
|
16814 | ;; |
|
|
16815 | |
|
|
16816 | os2*) |
|
|
16817 | libname_spec='$name' |
|
|
16818 | shrext_cmds=".dll" |
|
|
16819 | need_lib_prefix=no |
|
|
16820 | library_names_spec='$libname${shared_ext} $libname.a' |
|
|
16821 | dynamic_linker='OS/2 ld.exe' |
|
|
16822 | shlibpath_var=LIBPATH |
|
|
16823 | ;; |
|
|
16824 | |
|
|
16825 | osf3* | osf4* | osf5*) |
|
|
16826 | version_type=osf |
|
|
16827 | need_lib_prefix=no |
|
|
16828 | need_version=no |
|
|
16829 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16830 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16831 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16832 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
16833 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
16834 | ;; |
|
|
16835 | |
|
|
16836 | solaris*) |
|
|
16837 | version_type=linux |
|
|
16838 | need_lib_prefix=no |
|
|
16839 | need_version=no |
|
|
16840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16841 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16842 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16843 | shlibpath_overrides_runpath=yes |
|
|
16844 | hardcode_into_libs=yes |
|
|
16845 | # ldd complains unless libraries are executable |
|
|
16846 | postinstall_cmds='chmod +x $lib' |
|
|
16847 | ;; |
|
|
16848 | |
|
|
16849 | sunos4*) |
|
|
16850 | version_type=sunos |
|
|
16851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
|
16852 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
16853 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16854 | shlibpath_overrides_runpath=yes |
|
|
16855 | if test "$with_gnu_ld" = yes; then |
|
|
16856 | need_lib_prefix=no |
|
|
16857 | fi |
|
|
16858 | need_version=yes |
|
|
16859 | ;; |
|
|
16860 | |
|
|
16861 | sysv4 | sysv4.3*) |
|
|
16862 | version_type=linux |
|
|
16863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16864 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16865 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16866 | case $host_vendor in |
|
|
16867 | sni) |
|
|
16868 | shlibpath_overrides_runpath=no |
|
|
16869 | need_lib_prefix=no |
|
|
16870 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
|
16871 | runpath_var=LD_RUN_PATH |
|
|
16872 | ;; |
|
|
16873 | siemens) |
|
|
16874 | need_lib_prefix=no |
|
|
16875 | ;; |
|
|
16876 | motorola) |
|
|
16877 | need_lib_prefix=no |
|
|
16878 | need_version=no |
|
|
16879 | shlibpath_overrides_runpath=no |
|
|
16880 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
16881 | ;; |
|
|
16882 | esac |
|
|
16883 | ;; |
|
|
16884 | |
|
|
16885 | sysv4*MP*) |
|
|
16886 | if test -d /usr/nec ;then |
|
|
16887 | version_type=linux |
|
|
16888 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
|
16889 | soname_spec='$libname${shared_ext}.$major' |
|
|
16890 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16891 | fi |
|
|
16892 | ;; |
|
|
16893 | |
|
|
16894 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
|
16895 | version_type=freebsd-elf |
|
|
16896 | need_lib_prefix=no |
|
|
16897 | need_version=no |
|
|
16898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
|
16899 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16900 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16901 | hardcode_into_libs=yes |
|
|
16902 | if test "$with_gnu_ld" = yes; then |
|
|
16903 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
|
16904 | shlibpath_overrides_runpath=no |
|
|
16905 | else |
|
|
16906 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
|
16907 | shlibpath_overrides_runpath=yes |
|
|
16908 | case $host_os in |
|
|
16909 | sco3.2v5*) |
|
|
16910 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
|
16911 | ;; |
|
|
16912 | esac |
|
|
16913 | fi |
|
|
16914 | sys_lib_dlsearch_path_spec='/usr/lib' |
|
|
16915 | ;; |
|
|
16916 | |
|
|
16917 | uts4*) |
|
|
16918 | version_type=linux |
|
|
16919 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
|
16920 | soname_spec='${libname}${release}${shared_ext}$major' |
|
|
16921 | shlibpath_var=LD_LIBRARY_PATH |
|
|
16922 | ;; |
|
|
16923 | |
|
|
16924 | *) |
|
|
16925 | dynamic_linker=no |
|
|
16926 | ;; |
|
|
16927 | esac |
|
|
16928 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
16929 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
16930 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
16931 | |
|
|
16932 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
16933 | if test "$GCC" = yes; then |
|
|
16934 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
16935 | fi |
|
|
16936 | |
|
|
16937 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
16938 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
16939 | hardcode_action_GCJ= |
|
|
16940 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
|
|
16941 | test -n "$runpath_var_GCJ" || \ |
|
|
16942 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
|
|
16943 | |
|
|
16944 | # We can hardcode non-existant directories. |
|
|
16945 | if test "$hardcode_direct_GCJ" != no && |
|
|
16946 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
16947 | # have to relink, otherwise we might link with an installed library |
|
|
16948 | # when we should be linking with a yet-to-be-installed one |
|
|
16949 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
|
|
16950 | test "$hardcode_minus_L_GCJ" != no; then |
|
|
16951 | # Linking always hardcodes the temporary library directory. |
|
|
16952 | hardcode_action_GCJ=relink |
|
|
16953 | else |
|
|
16954 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
16955 | hardcode_action_GCJ=immediate |
|
|
16956 | fi |
|
|
16957 | else |
|
|
16958 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
16959 | # directories. |
|
|
16960 | hardcode_action_GCJ=unsupported |
|
|
16961 | fi |
|
|
16962 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
|
|
16963 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 |
|
|
16964 | |
|
|
16965 | if test "$hardcode_action_GCJ" = relink; then |
|
|
16966 | # Fast installation is not supported |
|
|
16967 | enable_fast_install=no |
|
|
16968 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
16969 | test "$enable_shared" = no; then |
|
|
16970 | # Fast installation is not necessary |
|
|
16971 | enable_fast_install=needless |
|
|
16972 | fi |
|
|
16973 | |
|
|
16974 | |
|
|
16975 | # The else clause should only fire when bootstrapping the |
|
|
16976 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
16977 | # with your package, and you will get complaints that there are |
|
|
16978 | # no rules to generate ltmain.sh. |
|
|
16979 | if test -f "$ltmain"; then |
|
|
16980 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
16981 | # without removal of \ escapes. |
|
|
16982 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
16983 | setopt NO_GLOB_SUBST |
|
|
16984 | fi |
|
|
16985 | # Now quote all the things that may contain metacharacters while being |
|
|
16986 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
16987 | # variables and quote the copies for generation of the libtool script. |
|
|
16988 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
16989 | SED SHELL STRIP \ |
|
|
16990 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
16991 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
16992 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
16993 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
16994 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
16995 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
16996 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
16997 | compiler_GCJ \ |
|
|
16998 | CC_GCJ \ |
|
|
16999 | LD_GCJ \ |
|
|
17000 | lt_prog_compiler_wl_GCJ \ |
|
|
17001 | lt_prog_compiler_pic_GCJ \ |
|
|
17002 | lt_prog_compiler_static_GCJ \ |
|
|
17003 | lt_prog_compiler_no_builtin_flag_GCJ \ |
|
|
17004 | export_dynamic_flag_spec_GCJ \ |
|
|
17005 | thread_safe_flag_spec_GCJ \ |
|
|
17006 | whole_archive_flag_spec_GCJ \ |
|
|
17007 | enable_shared_with_static_runtimes_GCJ \ |
|
|
17008 | old_archive_cmds_GCJ \ |
|
|
17009 | old_archive_from_new_cmds_GCJ \ |
|
|
17010 | predep_objects_GCJ \ |
|
|
17011 | postdep_objects_GCJ \ |
|
|
17012 | predeps_GCJ \ |
|
|
17013 | postdeps_GCJ \ |
|
|
17014 | compiler_lib_search_path_GCJ \ |
|
|
17015 | archive_cmds_GCJ \ |
|
|
17016 | archive_expsym_cmds_GCJ \ |
|
|
17017 | postinstall_cmds_GCJ \ |
|
|
17018 | postuninstall_cmds_GCJ \ |
|
|
17019 | old_archive_from_expsyms_cmds_GCJ \ |
|
|
17020 | allow_undefined_flag_GCJ \ |
|
|
17021 | no_undefined_flag_GCJ \ |
|
|
17022 | export_symbols_cmds_GCJ \ |
|
|
17023 | hardcode_libdir_flag_spec_GCJ \ |
|
|
17024 | hardcode_libdir_flag_spec_ld_GCJ \ |
|
|
17025 | hardcode_libdir_separator_GCJ \ |
|
|
17026 | hardcode_automatic_GCJ \ |
|
|
17027 | module_cmds_GCJ \ |
|
|
17028 | module_expsym_cmds_GCJ \ |
|
|
17029 | lt_cv_prog_compiler_c_o_GCJ \ |
|
|
17030 | exclude_expsyms_GCJ \ |
|
|
17031 | include_expsyms_GCJ; do |
|
|
17032 | |
|
|
17033 | case $var in |
|
|
17034 | old_archive_cmds_GCJ | \ |
|
|
17035 | old_archive_from_new_cmds_GCJ | \ |
|
|
17036 | archive_cmds_GCJ | \ |
|
|
17037 | archive_expsym_cmds_GCJ | \ |
|
|
17038 | module_cmds_GCJ | \ |
|
|
17039 | module_expsym_cmds_GCJ | \ |
|
|
17040 | old_archive_from_expsyms_cmds_GCJ | \ |
|
|
17041 | export_symbols_cmds_GCJ | \ |
|
|
17042 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
17043 | postinstall_cmds | postuninstall_cmds | \ |
|
|
17044 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
17045 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
17046 | # Double-quote double-evaled strings. |
|
|
17047 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
17048 | ;; |
|
|
17049 | *) |
|
|
17050 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
17051 | ;; |
|
|
17052 | esac |
|
|
17053 | done |
|
|
17054 | |
|
|
17055 | case $lt_echo in |
|
|
17056 | *'\$0 --fallback-echo"') |
|
|
17057 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
17058 | ;; |
|
|
17059 | esac |
|
|
17060 | |
|
|
17061 | cfgfile="$ofile" |
|
|
17062 | |
|
|
17063 | cat <<__EOF__ >> "$cfgfile" |
|
|
17064 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
17065 | |
|
|
17066 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
17067 | |
|
|
17068 | # Shell to use when invoking shell scripts. |
|
|
17069 | SHELL=$lt_SHELL |
|
|
17070 | |
|
|
17071 | # Whether or not to build shared libraries. |
|
|
17072 | build_libtool_libs=$enable_shared |
|
|
17073 | |
|
|
17074 | # Whether or not to build static libraries. |
|
|
17075 | build_old_libs=$enable_static |
|
|
17076 | |
|
|
17077 | # Whether or not to add -lc for building shared libraries. |
|
|
17078 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
|
|
17079 | |
|
|
17080 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
17081 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
|
|
17082 | |
|
|
17083 | # Whether or not to optimize for fast installation. |
|
|
17084 | fast_install=$enable_fast_install |
|
|
17085 | |
|
|
17086 | # The host system. |
|
|
17087 | host_alias=$host_alias |
|
|
17088 | host=$host |
|
|
17089 | host_os=$host_os |
|
|
17090 | |
|
|
17091 | # The build system. |
|
|
17092 | build_alias=$build_alias |
|
|
17093 | build=$build |
|
|
17094 | build_os=$build_os |
|
|
17095 | |
|
|
17096 | # An echo program that does not interpret backslashes. |
|
|
17097 | echo=$lt_echo |
|
|
17098 | |
|
|
17099 | # The archiver. |
|
|
17100 | AR=$lt_AR |
|
|
17101 | AR_FLAGS=$lt_AR_FLAGS |
|
|
17102 | |
|
|
17103 | # A C compiler. |
|
|
17104 | LTCC=$lt_LTCC |
|
|
17105 | |
|
|
17106 | # LTCC compiler flags. |
|
|
17107 | LTCFLAGS=$lt_LTCFLAGS |
|
|
17108 | |
|
|
17109 | # A language-specific compiler. |
|
|
17110 | CC=$lt_compiler_GCJ |
|
|
17111 | |
|
|
17112 | # Is the compiler the GNU C compiler? |
|
|
17113 | with_gcc=$GCC_GCJ |
|
|
17114 | |
|
|
17115 | # An ERE matcher. |
|
|
17116 | EGREP=$lt_EGREP |
|
|
17117 | |
|
|
17118 | # The linker used to build libraries. |
|
|
17119 | LD=$lt_LD_GCJ |
|
|
17120 | |
|
|
17121 | # Whether we need hard or soft links. |
|
|
17122 | LN_S=$lt_LN_S |
|
|
17123 | |
|
|
17124 | # A BSD-compatible nm program. |
|
|
17125 | NM=$lt_NM |
|
|
17126 | |
|
|
17127 | # A symbol stripping program |
|
|
17128 | STRIP=$lt_STRIP |
|
|
17129 | |
|
|
17130 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
17131 | MAGIC_CMD=$MAGIC_CMD |
|
|
17132 | |
|
|
17133 | # Used on cygwin: DLL creation program. |
|
|
17134 | DLLTOOL="$DLLTOOL" |
|
|
17135 | |
|
|
17136 | # Used on cygwin: object dumper. |
|
|
17137 | OBJDUMP="$OBJDUMP" |
|
|
17138 | |
|
|
17139 | # Used on cygwin: assembler. |
|
|
17140 | AS="$AS" |
|
|
17141 | |
|
|
17142 | # The name of the directory that contains temporary libtool files. |
|
|
17143 | objdir=$objdir |
|
|
17144 | |
|
|
17145 | # How to create reloadable object files. |
|
|
17146 | reload_flag=$lt_reload_flag |
|
|
17147 | reload_cmds=$lt_reload_cmds |
|
|
17148 | |
|
|
17149 | # How to pass a linker flag through the compiler. |
|
|
17150 | wl=$lt_lt_prog_compiler_wl_GCJ |
|
|
17151 | |
|
|
17152 | # Object file suffix (normally "o"). |
|
|
17153 | objext="$ac_objext" |
|
|
17154 | |
|
|
17155 | # Old archive suffix (normally "a"). |
|
|
17156 | libext="$libext" |
|
|
17157 | |
|
|
17158 | # Shared library suffix (normally ".so"). |
|
|
17159 | shrext_cmds='$shrext_cmds' |
|
|
17160 | |
|
|
17161 | # Executable file suffix (normally ""). |
|
|
17162 | exeext="$exeext" |
|
|
17163 | |
|
|
17164 | # Additional compiler flags for building library objects. |
|
|
17165 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
|
|
17166 | pic_mode=$pic_mode |
|
|
17167 | |
|
|
17168 | # What is the maximum length of a command? |
|
|
17169 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
17170 | |
|
|
17171 | # Does compiler simultaneously support -c and -o options? |
|
|
17172 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
|
|
17173 | |
|
|
17174 | # Must we lock files when doing compilation? |
|
|
17175 | need_locks=$lt_need_locks |
|
|
17176 | |
|
|
17177 | # Do we need the lib prefix for modules? |
|
|
17178 | need_lib_prefix=$need_lib_prefix |
|
|
17179 | |
|
|
17180 | # Do we need a version for libraries? |
|
|
17181 | need_version=$need_version |
|
|
17182 | |
|
|
17183 | # Whether dlopen is supported. |
|
|
17184 | dlopen_support=$enable_dlopen |
|
|
17185 | |
|
|
17186 | # Whether dlopen of programs is supported. |
|
|
17187 | dlopen_self=$enable_dlopen_self |
|
|
17188 | |
|
|
17189 | # Whether dlopen of statically linked programs is supported. |
|
|
17190 | dlopen_self_static=$enable_dlopen_self_static |
|
|
17191 | |
|
|
17192 | # Compiler flag to prevent dynamic linking. |
|
|
17193 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
|
|
17194 | |
|
|
17195 | # Compiler flag to turn off builtin functions. |
|
|
17196 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
|
|
17197 | |
|
|
17198 | # Compiler flag to allow reflexive dlopens. |
|
|
17199 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
|
|
17200 | |
|
|
17201 | # Compiler flag to generate shared objects directly from archives. |
|
|
17202 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
|
|
17203 | |
|
|
17204 | # Compiler flag to generate thread-safe objects. |
|
|
17205 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
|
|
17206 | |
|
|
17207 | # Library versioning type. |
|
|
17208 | version_type=$version_type |
|
|
17209 | |
|
|
17210 | # Format of library name prefix. |
|
|
17211 | libname_spec=$lt_libname_spec |
|
|
17212 | |
|
|
17213 | # List of archive names. First name is the real one, the rest are links. |
|
|
17214 | # The last name is the one that the linker finds with -lNAME. |
|
|
17215 | library_names_spec=$lt_library_names_spec |
|
|
17216 | |
|
|
17217 | # The coded name of the library, if different from the real name. |
|
|
17218 | soname_spec=$lt_soname_spec |
|
|
17219 | |
|
|
17220 | # Commands used to build and install an old-style archive. |
|
|
17221 | RANLIB=$lt_RANLIB |
|
|
17222 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
|
|
17223 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
17224 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
17225 | |
|
|
17226 | # Create an old-style archive from a shared archive. |
|
|
17227 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
|
|
17228 | |
|
|
17229 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
17230 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
|
|
17231 | |
|
|
17232 | # Commands used to build and install a shared archive. |
|
|
17233 | archive_cmds=$lt_archive_cmds_GCJ |
|
|
17234 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
|
|
17235 | postinstall_cmds=$lt_postinstall_cmds |
|
|
17236 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
17237 | |
|
|
17238 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
17239 | module_cmds=$lt_module_cmds_GCJ |
|
|
17240 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
|
|
17241 | |
|
|
17242 | # Commands to strip libraries. |
|
|
17243 | old_striplib=$lt_old_striplib |
|
|
17244 | striplib=$lt_striplib |
|
|
17245 | |
|
|
17246 | # Dependencies to place before the objects being linked to create a |
|
|
17247 | # shared library. |
|
|
17248 | predep_objects=$lt_predep_objects_GCJ |
|
|
17249 | |
|
|
17250 | # Dependencies to place after the objects being linked to create a |
|
|
17251 | # shared library. |
|
|
17252 | postdep_objects=$lt_postdep_objects_GCJ |
|
|
17253 | |
|
|
17254 | # Dependencies to place before the objects being linked to create a |
|
|
17255 | # shared library. |
|
|
17256 | predeps=$lt_predeps_GCJ |
|
|
17257 | |
|
|
17258 | # Dependencies to place after the objects being linked to create a |
|
|
17259 | # shared library. |
|
|
17260 | postdeps=$lt_postdeps_GCJ |
|
|
17261 | |
|
|
17262 | # The library search path used internally by the compiler when linking |
|
|
17263 | # a shared library. |
|
|
17264 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
|
|
17265 | |
|
|
17266 | # Method to check whether dependent libraries are shared objects. |
|
|
17267 | deplibs_check_method=$lt_deplibs_check_method |
|
|
17268 | |
|
|
17269 | # Command to use when deplibs_check_method == file_magic. |
|
|
17270 | file_magic_cmd=$lt_file_magic_cmd |
|
|
17271 | |
|
|
17272 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
17273 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
|
|
17274 | |
|
|
17275 | # Flag that forces no undefined symbols. |
|
|
17276 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
|
|
17277 | |
|
|
17278 | # Commands used to finish a libtool library installation in a directory. |
|
|
17279 | finish_cmds=$lt_finish_cmds |
|
|
17280 | |
|
|
17281 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
17282 | finish_eval=$lt_finish_eval |
|
|
17283 | |
|
|
17284 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
17285 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
17286 | |
|
|
17287 | # Transform the output of nm in a proper C declaration |
|
|
17288 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
17289 | |
|
|
17290 | # Transform the output of nm in a C name address pair |
|
|
17291 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
17292 | |
|
|
17293 | # This is the shared library runtime path variable. |
|
|
17294 | runpath_var=$runpath_var |
|
|
17295 | |
|
|
17296 | # This is the shared library path variable. |
|
|
17297 | shlibpath_var=$shlibpath_var |
|
|
17298 | |
|
|
17299 | # Is shlibpath searched before the hard-coded library search path? |
|
|
17300 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
17301 | |
|
|
17302 | # How to hardcode a shared library path into an executable. |
|
|
17303 | hardcode_action=$hardcode_action_GCJ |
|
|
17304 | |
|
|
17305 | # Whether we should hardcode library paths into libraries. |
|
|
17306 | hardcode_into_libs=$hardcode_into_libs |
|
|
17307 | |
|
|
17308 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
17309 | # This must work even if \$libdir does not exist. |
|
|
17310 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
|
|
17311 | |
|
|
17312 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
17313 | # a binary during linking. This must work even if \$libdir does |
|
|
17314 | # not exist. |
|
|
17315 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
|
|
17316 | |
|
|
17317 | # Whether we need a single -rpath flag with a separated argument. |
|
|
17318 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
|
|
17319 | |
|
|
17320 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
17321 | # resulting binary. |
|
|
17322 | hardcode_direct=$hardcode_direct_GCJ |
|
|
17323 | |
|
|
17324 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
17325 | # resulting binary. |
|
|
17326 | hardcode_minus_L=$hardcode_minus_L_GCJ |
|
|
17327 | |
|
|
17328 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
17329 | # the resulting binary. |
|
|
17330 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
|
|
17331 | |
|
|
17332 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
17333 | # and all subsequent libraries and executables linked against it. |
|
|
17334 | hardcode_automatic=$hardcode_automatic_GCJ |
|
|
17335 | |
|
|
17336 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
17337 | # restored at relink time. |
|
|
17338 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
17339 | |
|
|
17340 | # Whether libtool must link a program against all its dependency libraries. |
|
|
17341 | link_all_deplibs=$link_all_deplibs_GCJ |
|
|
17342 | |
|
|
17343 | # Compile-time system search path for libraries |
|
|
17344 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
17345 | |
|
|
17346 | # Run-time system search path for libraries |
|
|
17347 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
17348 | |
|
|
17349 | # Fix the shell variable \$srcfile for the compiler. |
|
|
17350 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
|
|
17351 | |
|
|
17352 | # Set to yes if exported symbols are required. |
|
|
17353 | always_export_symbols=$always_export_symbols_GCJ |
|
|
17354 | |
|
|
17355 | # The commands to list exported symbols. |
|
|
17356 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
|
|
17357 | |
|
|
17358 | # The commands to extract the exported symbol list from a shared archive. |
|
|
17359 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
17360 | |
|
|
17361 | # Symbols that should not be listed in the preloaded symbols. |
|
|
17362 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
|
|
17363 | |
|
|
17364 | # Symbols that must always be exported. |
|
|
17365 | include_expsyms=$lt_include_expsyms_GCJ |
|
|
17366 | |
|
|
17367 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
17368 | |
|
|
17369 | __EOF__ |
|
|
17370 | |
|
|
17371 | |
|
|
17372 | else |
|
|
17373 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
17374 | # `config.status --recheck' to rerun these tests and create the |
|
|
17375 | # libtool script then. |
|
|
17376 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
17377 | if test -f "$ltmain_in"; then |
|
|
17378 | test -f Makefile && make "$ltmain" |
|
|
17379 | fi |
|
|
17380 | fi |
|
|
17381 | |
|
|
17382 | |
|
|
17383 | ac_ext=c |
|
|
17384 | ac_cpp='$CPP $CPPFLAGS' |
|
|
17385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
17388 | |
|
|
17389 | CC="$lt_save_CC" |
|
|
17390 | |
|
|
17391 | else |
|
|
17392 | tagname="" |
|
|
17393 | fi |
|
|
17394 | ;; |
|
|
17395 | |
|
|
17396 | RC) |
|
|
17397 | |
|
|
17398 | |
|
|
17399 | |
|
|
17400 | # Source file extension for RC test sources. |
|
|
17401 | ac_ext=rc |
|
|
17402 | |
|
|
17403 | # Object file extension for compiled RC test sources. |
|
|
17404 | objext=o |
|
|
17405 | objext_RC=$objext |
|
|
17406 | |
|
|
17407 | # Code to be used in simple compile tests |
|
|
17408 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
|
|
17409 | |
|
|
17410 | # Code to be used in simple link tests |
|
|
17411 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
|
|
17412 | |
|
|
17413 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
|
17414 | |
|
|
17415 | # If no C compiler was specified, use CC. |
|
|
17416 | LTCC=${LTCC-"$CC"} |
|
|
17417 | |
|
|
17418 | # If no C compiler flags were specified, use CFLAGS. |
|
|
17419 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
|
17420 | |
|
|
17421 | # Allow CC to be a program name with arguments. |
|
|
17422 | compiler=$CC |
|
|
17423 | |
|
|
17424 | |
|
|
17425 | # save warnings/boilerplate of simple test code |
|
|
17426 | ac_outfile=conftest.$ac_objext |
|
|
17427 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
|
17428 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
17429 | _lt_compiler_boilerplate=`cat conftest.err` |
|
|
17430 | $rm conftest* |
|
|
17431 | |
|
|
17432 | ac_outfile=conftest.$ac_objext |
|
|
17433 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
|
|
17434 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
|
17435 | _lt_linker_boilerplate=`cat conftest.err` |
|
|
17436 | $rm conftest* |
|
|
17437 | |
|
|
17438 | |
|
|
17439 | # Allow CC to be a program name with arguments. |
|
|
17440 | lt_save_CC="$CC" |
|
|
17441 | CC=${RC-"windres"} |
|
|
17442 | compiler=$CC |
|
|
17443 | compiler_RC=$CC |
|
|
17444 | for cc_temp in $compiler""; do |
|
|
17445 | case $cc_temp in |
|
|
17446 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
|
17447 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
|
17448 | \-*) ;; |
|
|
17449 | *) break;; |
|
|
17450 | esac |
|
|
17451 | done |
|
|
17452 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
|
17453 | |
|
|
17454 | lt_cv_prog_compiler_c_o_RC=yes |
|
|
17455 | |
|
|
17456 | # The else clause should only fire when bootstrapping the |
|
|
17457 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
17458 | # with your package, and you will get complaints that there are |
|
|
17459 | # no rules to generate ltmain.sh. |
|
|
17460 | if test -f "$ltmain"; then |
|
|
17461 | # See if we are running on zsh, and set the options which allow our commands through |
|
|
17462 | # without removal of \ escapes. |
|
|
17463 | if test -n "${ZSH_VERSION+set}" ; then |
|
|
17464 | setopt NO_GLOB_SUBST |
|
|
17465 | fi |
|
|
17466 | # Now quote all the things that may contain metacharacters while being |
|
|
17467 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
17468 | # variables and quote the copies for generation of the libtool script. |
|
|
17469 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
|
|
17470 | SED SHELL STRIP \ |
|
|
17471 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
|
|
17472 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
|
|
17473 | deplibs_check_method reload_flag reload_cmds need_locks \ |
|
|
17474 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
|
|
17475 | lt_cv_sys_global_symbol_to_c_name_address \ |
|
|
17476 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
17477 | old_postinstall_cmds old_postuninstall_cmds \ |
|
|
17478 | compiler_RC \ |
|
|
17479 | CC_RC \ |
|
|
17480 | LD_RC \ |
|
|
17481 | lt_prog_compiler_wl_RC \ |
|
|
17482 | lt_prog_compiler_pic_RC \ |
|
|
17483 | lt_prog_compiler_static_RC \ |
|
|
17484 | lt_prog_compiler_no_builtin_flag_RC \ |
|
|
17485 | export_dynamic_flag_spec_RC \ |
|
|
17486 | thread_safe_flag_spec_RC \ |
|
|
17487 | whole_archive_flag_spec_RC \ |
|
|
17488 | enable_shared_with_static_runtimes_RC \ |
|
|
17489 | old_archive_cmds_RC \ |
|
|
17490 | old_archive_from_new_cmds_RC \ |
|
|
17491 | predep_objects_RC \ |
|
|
17492 | postdep_objects_RC \ |
|
|
17493 | predeps_RC \ |
|
|
17494 | postdeps_RC \ |
|
|
17495 | compiler_lib_search_path_RC \ |
|
|
17496 | archive_cmds_RC \ |
|
|
17497 | archive_expsym_cmds_RC \ |
|
|
17498 | postinstall_cmds_RC \ |
|
|
17499 | postuninstall_cmds_RC \ |
|
|
17500 | old_archive_from_expsyms_cmds_RC \ |
|
|
17501 | allow_undefined_flag_RC \ |
|
|
17502 | no_undefined_flag_RC \ |
|
|
17503 | export_symbols_cmds_RC \ |
|
|
17504 | hardcode_libdir_flag_spec_RC \ |
|
|
17505 | hardcode_libdir_flag_spec_ld_RC \ |
|
|
17506 | hardcode_libdir_separator_RC \ |
|
|
17507 | hardcode_automatic_RC \ |
|
|
17508 | module_cmds_RC \ |
|
|
17509 | module_expsym_cmds_RC \ |
|
|
17510 | lt_cv_prog_compiler_c_o_RC \ |
|
|
17511 | exclude_expsyms_RC \ |
|
|
17512 | include_expsyms_RC; do |
|
|
17513 | |
|
|
17514 | case $var in |
|
|
17515 | old_archive_cmds_RC | \ |
|
|
17516 | old_archive_from_new_cmds_RC | \ |
|
|
17517 | archive_cmds_RC | \ |
|
|
17518 | archive_expsym_cmds_RC | \ |
|
|
17519 | module_cmds_RC | \ |
|
|
17520 | module_expsym_cmds_RC | \ |
|
|
17521 | old_archive_from_expsyms_cmds_RC | \ |
|
|
17522 | export_symbols_cmds_RC | \ |
|
|
17523 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
|
|
17524 | postinstall_cmds | postuninstall_cmds | \ |
|
|
17525 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
17526 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
17527 | # Double-quote double-evaled strings. |
|
|
17528 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
17529 | ;; |
|
|
17530 | *) |
|
|
17531 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
17532 | ;; |
|
|
17533 | esac |
|
|
17534 | done |
|
|
17535 | |
|
|
17536 | case $lt_echo in |
|
|
17537 | *'\$0 --fallback-echo"') |
|
|
17538 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
|
|
17539 | ;; |
|
|
17540 | esac |
|
|
17541 | |
|
|
17542 | cfgfile="$ofile" |
|
|
17543 | |
|
|
17544 | cat <<__EOF__ >> "$cfgfile" |
|
|
17545 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
|
|
17546 | |
|
|
17547 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
17548 | |
|
|
17549 | # Shell to use when invoking shell scripts. |
|
|
17550 | SHELL=$lt_SHELL |
|
|
17551 | |
|
|
17552 | # Whether or not to build shared libraries. |
|
|
17553 | build_libtool_libs=$enable_shared |
|
|
17554 | |
|
|
17555 | # Whether or not to build static libraries. |
|
|
17556 | build_old_libs=$enable_static |
|
|
17557 | |
|
|
17558 | # Whether or not to add -lc for building shared libraries. |
|
|
17559 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
|
|
17560 | |
|
|
17561 | # Whether or not to disallow shared libs when runtime libs are static |
|
|
17562 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
|
|
17563 | |
|
|
17564 | # Whether or not to optimize for fast installation. |
|
|
17565 | fast_install=$enable_fast_install |
|
|
17566 | |
|
|
17567 | # The host system. |
|
|
17568 | host_alias=$host_alias |
|
|
17569 | host=$host |
|
|
17570 | host_os=$host_os |
|
|
17571 | |
|
|
17572 | # The build system. |
|
|
17573 | build_alias=$build_alias |
|
|
17574 | build=$build |
|
|
17575 | build_os=$build_os |
|
|
17576 | |
|
|
17577 | # An echo program that does not interpret backslashes. |
|
|
17578 | echo=$lt_echo |
|
|
17579 | |
|
|
17580 | # The archiver. |
|
|
17581 | AR=$lt_AR |
|
|
17582 | AR_FLAGS=$lt_AR_FLAGS |
|
|
17583 | |
|
|
17584 | # A C compiler. |
|
|
17585 | LTCC=$lt_LTCC |
|
|
17586 | |
|
|
17587 | # LTCC compiler flags. |
|
|
17588 | LTCFLAGS=$lt_LTCFLAGS |
|
|
17589 | |
|
|
17590 | # A language-specific compiler. |
|
|
17591 | CC=$lt_compiler_RC |
|
|
17592 | |
|
|
17593 | # Is the compiler the GNU C compiler? |
|
|
17594 | with_gcc=$GCC_RC |
|
|
17595 | |
|
|
17596 | # An ERE matcher. |
|
|
17597 | EGREP=$lt_EGREP |
|
|
17598 | |
|
|
17599 | # The linker used to build libraries. |
|
|
17600 | LD=$lt_LD_RC |
|
|
17601 | |
|
|
17602 | # Whether we need hard or soft links. |
|
|
17603 | LN_S=$lt_LN_S |
|
|
17604 | |
|
|
17605 | # A BSD-compatible nm program. |
|
|
17606 | NM=$lt_NM |
|
|
17607 | |
|
|
17608 | # A symbol stripping program |
|
|
17609 | STRIP=$lt_STRIP |
|
|
17610 | |
|
|
17611 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
17612 | MAGIC_CMD=$MAGIC_CMD |
|
|
17613 | |
|
|
17614 | # Used on cygwin: DLL creation program. |
|
|
17615 | DLLTOOL="$DLLTOOL" |
|
|
17616 | |
|
|
17617 | # Used on cygwin: object dumper. |
|
|
17618 | OBJDUMP="$OBJDUMP" |
|
|
17619 | |
|
|
17620 | # Used on cygwin: assembler. |
|
|
17621 | AS="$AS" |
|
|
17622 | |
|
|
17623 | # The name of the directory that contains temporary libtool files. |
|
|
17624 | objdir=$objdir |
|
|
17625 | |
|
|
17626 | # How to create reloadable object files. |
|
|
17627 | reload_flag=$lt_reload_flag |
|
|
17628 | reload_cmds=$lt_reload_cmds |
|
|
17629 | |
|
|
17630 | # How to pass a linker flag through the compiler. |
|
|
17631 | wl=$lt_lt_prog_compiler_wl_RC |
|
|
17632 | |
|
|
17633 | # Object file suffix (normally "o"). |
|
|
17634 | objext="$ac_objext" |
|
|
17635 | |
|
|
17636 | # Old archive suffix (normally "a"). |
|
|
17637 | libext="$libext" |
|
|
17638 | |
|
|
17639 | # Shared library suffix (normally ".so"). |
|
|
17640 | shrext_cmds='$shrext_cmds' |
|
|
17641 | |
|
|
17642 | # Executable file suffix (normally ""). |
|
|
17643 | exeext="$exeext" |
|
|
17644 | |
|
|
17645 | # Additional compiler flags for building library objects. |
|
|
17646 | pic_flag=$lt_lt_prog_compiler_pic_RC |
|
|
17647 | pic_mode=$pic_mode |
|
|
17648 | |
|
|
17649 | # What is the maximum length of a command? |
|
|
17650 | max_cmd_len=$lt_cv_sys_max_cmd_len |
|
|
17651 | |
|
|
17652 | # Does compiler simultaneously support -c and -o options? |
|
|
17653 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
|
|
17654 | |
|
|
17655 | # Must we lock files when doing compilation? |
|
|
17656 | need_locks=$lt_need_locks |
|
|
17657 | |
|
|
17658 | # Do we need the lib prefix for modules? |
|
|
17659 | need_lib_prefix=$need_lib_prefix |
|
|
17660 | |
|
|
17661 | # Do we need a version for libraries? |
|
|
17662 | need_version=$need_version |
|
|
17663 | |
|
|
17664 | # Whether dlopen is supported. |
|
|
17665 | dlopen_support=$enable_dlopen |
|
|
17666 | |
|
|
17667 | # Whether dlopen of programs is supported. |
|
|
17668 | dlopen_self=$enable_dlopen_self |
|
|
17669 | |
|
|
17670 | # Whether dlopen of statically linked programs is supported. |
|
|
17671 | dlopen_self_static=$enable_dlopen_self_static |
|
|
17672 | |
|
|
17673 | # Compiler flag to prevent dynamic linking. |
|
|
17674 | link_static_flag=$lt_lt_prog_compiler_static_RC |
|
|
17675 | |
|
|
17676 | # Compiler flag to turn off builtin functions. |
|
|
17677 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
|
|
17678 | |
|
|
17679 | # Compiler flag to allow reflexive dlopens. |
|
|
17680 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
|
|
17681 | |
|
|
17682 | # Compiler flag to generate shared objects directly from archives. |
|
|
17683 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
|
|
17684 | |
|
|
17685 | # Compiler flag to generate thread-safe objects. |
|
|
17686 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
|
|
17687 | |
|
|
17688 | # Library versioning type. |
|
|
17689 | version_type=$version_type |
|
|
17690 | |
|
|
17691 | # Format of library name prefix. |
|
|
17692 | libname_spec=$lt_libname_spec |
|
|
17693 | |
|
|
17694 | # List of archive names. First name is the real one, the rest are links. |
|
|
17695 | # The last name is the one that the linker finds with -lNAME. |
|
|
17696 | library_names_spec=$lt_library_names_spec |
|
|
17697 | |
|
|
17698 | # The coded name of the library, if different from the real name. |
|
|
17699 | soname_spec=$lt_soname_spec |
|
|
17700 | |
|
|
17701 | # Commands used to build and install an old-style archive. |
|
|
17702 | RANLIB=$lt_RANLIB |
|
|
17703 | old_archive_cmds=$lt_old_archive_cmds_RC |
|
|
17704 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
17705 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
17706 | |
|
|
17707 | # Create an old-style archive from a shared archive. |
|
|
17708 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
|
|
17709 | |
|
|
17710 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
17711 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
|
|
17712 | |
|
|
17713 | # Commands used to build and install a shared archive. |
|
|
17714 | archive_cmds=$lt_archive_cmds_RC |
|
|
17715 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
|
|
17716 | postinstall_cmds=$lt_postinstall_cmds |
|
|
17717 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
17718 | |
|
|
17719 | # Commands used to build a loadable module (assumed same as above if empty) |
|
|
17720 | module_cmds=$lt_module_cmds_RC |
|
|
17721 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
|
|
17722 | |
|
|
17723 | # Commands to strip libraries. |
|
|
17724 | old_striplib=$lt_old_striplib |
|
|
17725 | striplib=$lt_striplib |
|
|
17726 | |
|
|
17727 | # Dependencies to place before the objects being linked to create a |
|
|
17728 | # shared library. |
|
|
17729 | predep_objects=$lt_predep_objects_RC |
|
|
17730 | |
|
|
17731 | # Dependencies to place after the objects being linked to create a |
|
|
17732 | # shared library. |
|
|
17733 | postdep_objects=$lt_postdep_objects_RC |
|
|
17734 | |
|
|
17735 | # Dependencies to place before the objects being linked to create a |
|
|
17736 | # shared library. |
|
|
17737 | predeps=$lt_predeps_RC |
|
|
17738 | |
|
|
17739 | # Dependencies to place after the objects being linked to create a |
|
|
17740 | # shared library. |
|
|
17741 | postdeps=$lt_postdeps_RC |
|
|
17742 | |
|
|
17743 | # The library search path used internally by the compiler when linking |
|
|
17744 | # a shared library. |
|
|
17745 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
|
|
17746 | |
|
|
17747 | # Method to check whether dependent libraries are shared objects. |
|
|
17748 | deplibs_check_method=$lt_deplibs_check_method |
|
|
17749 | |
|
|
17750 | # Command to use when deplibs_check_method == file_magic. |
|
|
17751 | file_magic_cmd=$lt_file_magic_cmd |
|
|
17752 | |
|
|
17753 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
17754 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
|
|
17755 | |
|
|
17756 | # Flag that forces no undefined symbols. |
|
|
17757 | no_undefined_flag=$lt_no_undefined_flag_RC |
|
|
17758 | |
|
|
17759 | # Commands used to finish a libtool library installation in a directory. |
|
|
17760 | finish_cmds=$lt_finish_cmds |
|
|
17761 | |
|
|
17762 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
17763 | finish_eval=$lt_finish_eval |
|
|
17764 | |
|
|
17765 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
17766 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
|
17767 | |
|
|
17768 | # Transform the output of nm in a proper C declaration |
|
|
17769 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
|
17770 | |
|
|
17771 | # Transform the output of nm in a C name address pair |
|
|
17772 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
|
17773 | |
|
|
17774 | # This is the shared library runtime path variable. |
|
|
17775 | runpath_var=$runpath_var |
|
|
17776 | |
|
|
17777 | # This is the shared library path variable. |
|
|
17778 | shlibpath_var=$shlibpath_var |
|
|
17779 | |
|
|
17780 | # Is shlibpath searched before the hard-coded library search path? |
|
|
17781 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
17782 | |
|
|
17783 | # How to hardcode a shared library path into an executable. |
|
|
17784 | hardcode_action=$hardcode_action_RC |
|
|
17785 | |
|
|
17786 | # Whether we should hardcode library paths into libraries. |
|
|
17787 | hardcode_into_libs=$hardcode_into_libs |
|
|
17788 | |
|
|
17789 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
17790 | # This must work even if \$libdir does not exist. |
|
|
17791 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
|
|
17792 | |
|
|
17793 | # If ld is used when linking, flag to hardcode \$libdir into |
|
|
17794 | # a binary during linking. This must work even if \$libdir does |
|
|
17795 | # not exist. |
|
|
17796 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
|
|
17797 | |
|
|
17798 | # Whether we need a single -rpath flag with a separated argument. |
|
|
17799 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
|
|
17800 | |
|
|
17801 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
|
|
17802 | # resulting binary. |
|
|
17803 | hardcode_direct=$hardcode_direct_RC |
|
|
17804 | |
|
|
17805 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
17806 | # resulting binary. |
|
|
17807 | hardcode_minus_L=$hardcode_minus_L_RC |
|
|
17808 | |
|
|
17809 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
17810 | # the resulting binary. |
|
|
17811 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
|
|
17812 | |
|
|
17813 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
|
|
17814 | # and all subsequent libraries and executables linked against it. |
|
|
17815 | hardcode_automatic=$hardcode_automatic_RC |
|
|
17816 | |
|
|
17817 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
17818 | # restored at relink time. |
|
|
17819 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
17820 | |
|
|
17821 | # Whether libtool must link a program against all its dependency libraries. |
|
|
17822 | link_all_deplibs=$link_all_deplibs_RC |
|
|
17823 | |
|
|
17824 | # Compile-time system search path for libraries |
|
|
17825 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
17826 | |
|
|
17827 | # Run-time system search path for libraries |
|
|
17828 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
17829 | |
|
|
17830 | # Fix the shell variable \$srcfile for the compiler. |
|
|
17831 | fix_srcfile_path="$fix_srcfile_path_RC" |
|
|
17832 | |
|
|
17833 | # Set to yes if exported symbols are required. |
|
|
17834 | always_export_symbols=$always_export_symbols_RC |
|
|
17835 | |
|
|
17836 | # The commands to list exported symbols. |
|
|
17837 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
|
|
17838 | |
|
|
17839 | # The commands to extract the exported symbol list from a shared archive. |
|
|
17840 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
17841 | |
|
|
17842 | # Symbols that should not be listed in the preloaded symbols. |
|
|
17843 | exclude_expsyms=$lt_exclude_expsyms_RC |
|
|
17844 | |
|
|
17845 | # Symbols that must always be exported. |
|
|
17846 | include_expsyms=$lt_include_expsyms_RC |
|
|
17847 | |
|
|
17848 | # ### END LIBTOOL TAG CONFIG: $tagname |
|
|
17849 | |
|
|
17850 | __EOF__ |
|
|
17851 | |
|
|
17852 | |
|
|
17853 | else |
|
|
17854 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
17855 | # `config.status --recheck' to rerun these tests and create the |
|
|
17856 | # libtool script then. |
|
|
17857 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
|
|
17858 | if test -f "$ltmain_in"; then |
|
|
17859 | test -f Makefile && make "$ltmain" |
|
|
17860 | fi |
|
|
17861 | fi |
|
|
17862 | |
|
|
17863 | |
|
|
17864 | ac_ext=c |
|
|
17865 | ac_cpp='$CPP $CPPFLAGS' |
|
|
17866 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17867 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17868 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
17869 | |
|
|
17870 | CC="$lt_save_CC" |
|
|
17871 | |
|
|
17872 | ;; |
|
|
17873 | |
|
|
17874 | *) |
|
|
17875 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
|
|
17876 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
|
|
17877 | { (exit 1); exit 1; }; } |
|
|
17878 | ;; |
|
|
17879 | esac |
|
|
17880 | |
|
|
17881 | # Append the new tag name to the list of available tags. |
|
|
17882 | if test -n "$tagname" ; then |
|
|
17883 | available_tags="$available_tags $tagname" |
|
|
17884 | fi |
|
|
17885 | fi |
|
|
17886 | done |
|
|
17887 | IFS="$lt_save_ifs" |
|
|
17888 | |
|
|
17889 | # Now substitute the updated list of available tags. |
|
|
17890 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
|
|
17891 | mv "${ofile}T" "$ofile" |
|
|
17892 | chmod +x "$ofile" |
|
|
17893 | else |
|
|
17894 | rm -f "${ofile}T" |
|
|
17895 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
|
|
17896 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
|
|
17897 | { (exit 1); exit 1; }; } |
|
|
17898 | fi |
|
|
17899 | fi |
|
|
17900 | |
|
|
17901 | |
|
|
17902 | |
|
|
17903 | # This can be used to rebuild libtool when needed |
|
|
17904 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
17905 | |
|
|
17906 | # Always use our own libtool. |
|
|
17907 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
17908 | |
|
|
17909 | # Prevent multiple expansion |
|
|
17910 | |
|
|
17911 | |
|
|
17912 | |
|
|
17913 | |
|
|
17914 | |
|
|
17915 | |
|
|
17916 | |
|
|
17917 | |
|
|
17918 | |
|
|
17919 | |
|
|
17920 | |
|
|
17921 | |
|
|
17922 | |
|
|
17923 | |
|
|
17924 | |
|
|
17925 | |
|
|
17926 | |
|
|
17927 | |
|
|
17928 | |
|
|
17929 | |
|
|
17930 | |
|
|
17931 | ac_ext=cc |
|
|
17932 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
17933 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
17934 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
17935 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
17936 | |
2536 | |
17937 | |
2537 | |
17938 | |
2538 | |
17939 | |
2539 | |
17940 | |
2540 | |
17941 | |
… | |
… | |
4178 | /* confdefs.h. */ |
19579 | /* confdefs.h. */ |
4179 | _ACEOF |
19580 | _ACEOF |
4180 | cat confdefs.h >>conftest.$ac_ext |
19581 | cat confdefs.h >>conftest.$ac_ext |
4181 | cat >>conftest.$ac_ext <<_ACEOF |
19582 | cat >>conftest.$ac_ext <<_ACEOF |
4182 | /* end confdefs.h. */ |
19583 | /* end confdefs.h. */ |
|
|
19584 | |
4183 | #include <stdio.h> |
19585 | #include <stdio.h> |
4184 | #include <sys/types.h> |
19586 | #include <sys/types.h> |
4185 | #include <utmp.h> |
19587 | #include <utmp.h> |
4186 | #include <errno.h> |
19588 | #include <errno.h> |
4187 | main() |
19589 | main() |
… | |
… | |
4254 | /* confdefs.h. */ |
19656 | /* confdefs.h. */ |
4255 | _ACEOF |
19657 | _ACEOF |
4256 | cat confdefs.h >>conftest.$ac_ext |
19658 | cat confdefs.h >>conftest.$ac_ext |
4257 | cat >>conftest.$ac_ext <<_ACEOF |
19659 | cat >>conftest.$ac_ext <<_ACEOF |
4258 | /* end confdefs.h. */ |
19660 | /* end confdefs.h. */ |
|
|
19661 | |
4259 | #include <stdio.h> |
19662 | #include <stdio.h> |
4260 | #include <sys/types.h> |
19663 | #include <sys/types.h> |
4261 | #include <utmpx.h> |
19664 | #include <utmpx.h> |
4262 | #include <errno.h> |
19665 | #include <errno.h> |
4263 | #include <sys/stat.h> |
19666 | #include <sys/stat.h> |
… | |
… | |
4340 | /* confdefs.h. */ |
19743 | /* confdefs.h. */ |
4341 | _ACEOF |
19744 | _ACEOF |
4342 | cat confdefs.h >>conftest.$ac_ext |
19745 | cat confdefs.h >>conftest.$ac_ext |
4343 | cat >>conftest.$ac_ext <<_ACEOF |
19746 | cat >>conftest.$ac_ext <<_ACEOF |
4344 | /* end confdefs.h. */ |
19747 | /* end confdefs.h. */ |
|
|
19748 | |
4345 | #include <stdio.h> |
19749 | #include <stdio.h> |
4346 | #include <sys/types.h> |
19750 | #include <sys/types.h> |
4347 | #ifdef HAVE_UTMP_H |
19751 | #ifdef HAVE_UTMP_H |
4348 | #include <utmp.h> |
19752 | #include <utmp.h> |
4349 | #endif |
19753 | #endif |
… | |
… | |
4417 | /* confdefs.h. */ |
19821 | /* confdefs.h. */ |
4418 | _ACEOF |
19822 | _ACEOF |
4419 | cat confdefs.h >>conftest.$ac_ext |
19823 | cat confdefs.h >>conftest.$ac_ext |
4420 | cat >>conftest.$ac_ext <<_ACEOF |
19824 | cat >>conftest.$ac_ext <<_ACEOF |
4421 | /* end confdefs.h. */ |
19825 | /* end confdefs.h. */ |
|
|
19826 | |
4422 | #include <stdio.h> |
19827 | #include <stdio.h> |
4423 | #ifdef HAVE_UTMPX_H |
19828 | #ifdef HAVE_UTMPX_H |
4424 | #include <utmpx.h> |
19829 | #include <utmpx.h> |
4425 | #endif |
19830 | #endif |
4426 | #include <errno.h> |
19831 | #include <errno.h> |
… | |
… | |
4493 | /* confdefs.h. */ |
19898 | /* confdefs.h. */ |
4494 | _ACEOF |
19899 | _ACEOF |
4495 | cat confdefs.h >>conftest.$ac_ext |
19900 | cat confdefs.h >>conftest.$ac_ext |
4496 | cat >>conftest.$ac_ext <<_ACEOF |
19901 | cat >>conftest.$ac_ext <<_ACEOF |
4497 | /* end confdefs.h. */ |
19902 | /* end confdefs.h. */ |
|
|
19903 | |
4498 | #include <stdio.h> |
19904 | #include <stdio.h> |
4499 | #include <sys/types.h> |
19905 | #include <sys/types.h> |
4500 | #ifdef HAVE_UTMPX_H |
19906 | #ifdef HAVE_UTMPX_H |
4501 | #include <utmpx.h> |
19907 | #include <utmpx.h> |
4502 | #elif defined(HAVE_UTMP_H) |
19908 | #elif defined(HAVE_UTMP_H) |
… | |
… | |
4581 | /* confdefs.h. */ |
19987 | /* confdefs.h. */ |
4582 | _ACEOF |
19988 | _ACEOF |
4583 | cat confdefs.h >>conftest.$ac_ext |
19989 | cat confdefs.h >>conftest.$ac_ext |
4584 | cat >>conftest.$ac_ext <<_ACEOF |
19990 | cat >>conftest.$ac_ext <<_ACEOF |
4585 | /* end confdefs.h. */ |
19991 | /* end confdefs.h. */ |
|
|
19992 | |
4586 | #include <stdio.h> |
19993 | #include <stdio.h> |
4587 | #ifdef HAVE_UTMPX_H |
19994 | #ifdef HAVE_UTMPX_H |
4588 | #include <utmpx.h> |
19995 | #include <utmpx.h> |
4589 | #endif |
19996 | #endif |
4590 | #include <errno.h> |
19997 | #include <errno.h> |
… | |
… | |
4739 | { (exit 1); exit 1; }; } |
20146 | { (exit 1); exit 1; }; } |
4740 | fi |
20147 | fi |
4741 | |
20148 | |
4742 | |
20149 | |
4743 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
20150 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile" |
4744 | |
|
|
4745 | cat >confcache <<\_ACEOF |
20151 | cat >confcache <<\_ACEOF |
4746 | # This file is a shell script that caches the results of configure |
20152 | # This file is a shell script that caches the results of configure |
4747 | # tests run on this system so they can be shared between configure |
20153 | # tests run on this system so they can be shared between configure |
4748 | # scripts and configure runs, see configure's option --config-cache. |
20154 | # scripts and configure runs, see configure's option --config-cache. |
4749 | # It is not useful on other systems. If it contains results you don't |
20155 | # It is not useful on other systems. If it contains results you don't |
… | |
… | |
5371 | s,@EXEEXT@,$EXEEXT,;t t |
20777 | s,@EXEEXT@,$EXEEXT,;t t |
5372 | s,@OBJEXT@,$OBJEXT,;t t |
20778 | s,@OBJEXT@,$OBJEXT,;t t |
5373 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
20779 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
5374 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
20780 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
5375 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
20781 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
|
|
20782 | s,@CC@,$CC,;t t |
|
|
20783 | s,@CFLAGS@,$CFLAGS,;t t |
|
|
20784 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
|
|
20785 | s,@EGREP@,$EGREP,;t t |
|
|
20786 | s,@LN_S@,$LN_S,;t t |
|
|
20787 | s,@ECHO@,$ECHO,;t t |
5376 | s,@RM@,$RM,;t t |
20788 | s,@AR@,$AR,;t t |
|
|
20789 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
|
|
20790 | s,@RANLIB@,$RANLIB,;t t |
|
|
20791 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
20792 | s,@STRIP@,$STRIP,;t t |
|
|
20793 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
20794 | s,@CPP@,$CPP,;t t |
5377 | s,@CXXCPP@,$CXXCPP,;t t |
20795 | s,@CXXCPP@,$CXXCPP,;t t |
5378 | s,@EGREP@,$EGREP,;t t |
20796 | s,@F77@,$F77,;t t |
|
|
20797 | s,@FFLAGS@,$FFLAGS,;t t |
|
|
20798 | s,@ac_ct_F77@,$ac_ct_F77,;t t |
|
|
20799 | s,@LIBTOOL@,$LIBTOOL,;t t |
5379 | s,@LIBOBJS@,$LIBOBJS,;t t |
20800 | s,@LIBOBJS@,$LIBOBJS,;t t |
5380 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
20801 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
5381 | CEOF |
20802 | CEOF |
5382 | |
20803 | |
5383 | _ACEOF |
20804 | _ACEOF |