bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils 6.3 on Tru64 - just plain broken, or...?


From: Paul Eggert
Subject: Re: coreutils 6.3 on Tru64 - just plain broken, or...?
Date: Wed, 04 Oct 2006 12:12:09 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

mwoehlke <address@hidden> writes:

> shuf builds, but the linker complains about 'ftello unresolved', and
> then *produces a file* (but without +x), with the result that 'make'
> then thinks it has nothing to do to for target 'shuf' and continues on
> to "success" if re-run.

I installed this patch to Autoconf to try to address this problem.

2006-10-04  Paul Eggert  <address@hidden>

        * lib/autoconf/general.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE):
        Use a single call to AC_DO_TOKENS rather than multiple, for
        efficiency.
        (_AC_LINK_IFELSE): Test that resulting file is executable.
        Problem reported by mwoehlke in
        <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00048.html>.

--- lib/autoconf/general.m4     26 Sep 2006 20:43:43 -0000      1.931
+++ lib/autoconf/general.m4     4 Oct 2006 19:07:02 -0000
@@ -2358,8 +2358,10 @@ m4_define([_AC_COMPILE_IFELSE],
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
 rm -f conftest.$ac_objext
 AS_IF([_AC_DO_STDERR($ac_compile) &&
-        _AC_DO_TOKENS([test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" || test ! 
-s conftest.err]) &&
-        _AC_DO_TOKENS([test -s conftest.$ac_objext])],
+        _AC_DO_TOKENS([{
+             test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
+             test ! -s conftest.err
+           } && test -s conftest.$ac_objext])],
       [$2],
       [_AC_MSG_LOG_CONFTEST
        $3])
@@ -2398,8 +2400,12 @@ m4_define([_AC_LINK_IFELSE],
 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
 rm -f conftest.$ac_objext conftest$ac_exeext
 AS_IF([_AC_DO_STDERR($ac_link) &&
-        _AC_DO_TOKENS([test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" || test ! 
-s conftest.err]) &&
-        _AC_DO_TOKENS([test -s conftest$ac_exeext])],
+       _AC_DO_TOKENS([{
+          test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
+          test ! -s conftest.err
+        } &&
+        test -s conftest$ac_exeext &&
+        AS_EXECUTABLE_P([conftest$ac_exeext])])],
       [$2],
       [_AC_MSG_LOG_CONFTEST
        $3])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]