autoconf-patches
[Top][All Lists]
Advanced

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

Portability problem in acgeneral.m4, autoconf.m4f, autoheader.m4f


From: Glawitsch, Gregor
Subject: Portability problem in acgeneral.m4, autoconf.m4f, autoheader.m4f
Date: Fri, 25 May 2001 09:05:57 -0700

All, 

   I could track down a "configure" problem on the OS/390 platform to the
following 
line which appears in 3 autoconf utility/script files:

/usr/share/autoconf/acgeneral.m4:DEFS=`sed -f conftest.defs confdefs.h | tr
'\012' ' '`            
/usr/share/autoconf/autoconf.m4f:DEFS=`sed -f conftest.defs confdefs.h | tr
'\012' ' '`            
/usr/share/autoconf/autoheader.m4f:DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`          

This line assumes that a newline is 0x0A on all platforms.
Needless to say, a newline is *not* 0x0A on all platforms. 
On the contrary.
On the ever-popular OS/390 platform, it is 0x15.

The line should be changed to the portable 
DEFS=`sed -f conftest.defs confdefs.h | tr '\n' ' '` 
everywhere.

How do I go about that?


Regards,

Greg



reply via email to

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