bug-gzip
[Top][All Lists]
Advanced

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

Re: Can not build gzip-1.4: bugs around match.S


From: Petr Pisar
Subject: Re: Can not build gzip-1.4: bugs around match.S
Date: Thu, 18 Feb 2010 15:54:30 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

I wrote a patch that allows me to compile gzip-1.4.

But I'm not sure whether the assembler check in configure works correctly.
I think the assembler implementation is not used anymore and it's triggered on
my system just because config.h exists in /usr/include. (On other systems this
check failes because lib/config.h does not exist at configure time.

-- Petr


commit e81c4fc9c88487c0ab4a3327875f1b15926a67a0
Author: Petr Písař <address@hidden>
Date:   Thu Feb 18 13:06:32 2010 +0100

    Include config.h from current directory

diff --git a/configure.ac b/configure.ac
index 1715eab..ad630e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -138,9 +138,9 @@ AC_CACHE_CHECK([for underline in external names], 
[gzip_cv_underline],
    AC_TRY_COMPILE([int foo() {return 0;}], [],
      [$NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
        gzip_cv_underline=no])])
-ASCPPFLAGS=
+ASCPPFLAGS="-I."
 if test $gzip_cv_underline = no; then
-  ASCPPFLAGS='-DNO_UNDERLINE'
+  ASCPPFLAGS="${ASCPPFLAGS} -DNO_UNDERLINE"
 fi
 AC_SUBST([ASCPPFLAGS])
 AC_OBJEXT

commit 751ed3055686a84882f53695a47153a12e10d130
Author: Petr Písař <address@hidden>
Date:   Thu Feb 18 11:51:15 2010 +0100

    Escape hash sign in sed script

diff --git a/configure.ac b/configure.ac
index 818dbd9..1715eab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -130,7 +130,7 @@ if test "$gl_gcc_warnings" = yes; then
 fi
 
 # cc -E produces incorrect asm files on SVR4, so postprocess it.
-ASCPPPOST="sed '/^ *#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
+ASCPPPOST="sed '/^ *\#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
 AC_SUBST([ASCPPPOST])
 
 AC_CACHE_CHECK([for underline in external names], [gzip_cv_underline],

Attachment: pgpSUId9Furj8.pgp
Description: PGP signature


reply via email to

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