diff --git a/m4/libtool.m4 b/m4/libtool.m4 index f2d1f398..be277243 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -7582,6 +7582,11 @@ if AC_TRY_EVAL(ac_compile); then # Internal compiler library paths should come after those # provided the user. The postdeps already come after the # user supplied libs so there is no need to process them. + if [[ $($CC -v 2>&1 > /dev/null) =~ Fujitsu ]] ; then + if [[ $p =~ /nofjobj ]] ; then + continue # Ignore Fujitsu compiler's object dir + fi + fi if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p else @@ -7605,6 +7610,11 @@ if AC_TRY_EVAL(ac_compile); then *.$objext) # This assumes that the test object file only shows up # once in the compiler output. + if [[ $($CC -v 2>&1 > /dev/null) =~ Fujitsu ]] ; then + if [[ $p =~ /fj.*\.$objext ]] ; then + continue # Ignore Fujitsu compiler's object + fi + fi if test "$p" = "conftest.$objext"; then pre_test_object_deps_done=yes continue