bug-gzip
[Top][All Lists]
Advanced

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

Re: gzip cross-compile failure


From: Bruno Haible
Subject: Re: gzip cross-compile failure
Date: Tue, 12 Dec 2006 14:27:08 +0100
User-agent: KMail/1.9.1

Paul Eggert wrote:
> Second, I reworded the ASCPPPOST code in lib/Makefile.am to
> detect any failures anywhere in the pipeline.

Ah, right. This needs to be done also in configure.ac. (Currently we drop
the failure code of the $CPP command inside the 'eval'.) Here's a patch to
that effect. Also, since it is hard to debug such a test if it leaves no
traces in config.log, I also propose to add some traces.

2006-12-12  Bruno Haible  <address@hidden>

        * configure.ac: Test the exit code of the $CPP and $ASCPPPOST commands
        separately. Also write some traces into config.log.

*** configure.ac        12 Dec 2006 00:03:17 -0000      1.10
--- configure.ac        12 Dec 2006 13:23:36 -0000
***************
*** 55,61 ****
  AC_OBJEXT
  
  # Try to assemble match.S.
! # "gcc -E match.s" ignores -E, so we must use match_.s.
  AC_CACHE_CHECK([for an assembler syntax supported by this package],
    [gzip_cv_assembler],
    [gzip_cv_assembler=no
--- 55,61 ----
  AC_OBJEXT
  
  # Try to assemble match.S.
! # "gcc -E match.s" ignores -E, so we must use _match.S.
  AC_CACHE_CHECK([for an assembler syntax supported by this package],
    [gzip_cv_assembler],
    [gzip_cv_assembler=no
***************
*** 63,72 ****
     *' NO_ASM '*) ;;
     *)
       if cp $srcdir/lib/match.c _match.S &&
!       eval "$CPP $ASCPPFLAGS _match.S | $ASCPPPOST > match_.s 2>/dev/null"; 
then
         if test ! -s match_.s || grep error < match_.s > /dev/null; then
         :
!        elif eval "$CC -c match_.s >/dev/null 2>&1" &&
            test -f match_.$OBJEXT; then
         rm -f match_.$OBJEXT
         gzip_cv_assembler=yes
--- 63,76 ----
     *' NO_ASM '*) ;;
     *)
       if cp $srcdir/lib/match.c _match.S &&
!       echo "$as_me:__oline__: $CPP $ASCPPFLAGS _match.S > _match.i" 
>&AS_MESSAGE_LOG_FD &&
!       eval "$CPP $ASCPPFLAGS _match.S > _match.i" 2>&AS_MESSAGE_LOG_FD &&
!       echo "$as_me:__oline__: $ASCPPPOST < _match.i > match_.s" 
>&AS_MESSAGE_LOG_FD &&
!       eval "$ASCPPPOST < _match.i > match_.s" 2>&AS_MESSAGE_LOG_FD; then
         if test ! -s match_.s || grep error < match_.s > /dev/null; then
         :
!        elif echo "$as_me:__oline__: $CC -c match_.s" >&AS_MESSAGE_LOG_FD &&
!           eval "$CC -c match_.s >&AS_MESSAGE_LOG_FD 2>&1" &&
            test -f match_.$OBJEXT; then
         rm -f match_.$OBJEXT
         gzip_cv_assembler=yes





reply via email to

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