Re: fix manual page building on Mac OS X

2003-12-31 Thread David Dawes
On Mon, Dec 29, 2003 at 07:13:53AM -0500, Thomas Dickey wrote:
On Mon, 29 Dec 2003, Matthieu Herrb wrote:

 Hi,

 The process that builds XFree86 manual pages needs cpp -traditional
 when GNU cpp is used.

speaking of manpages, I've been looking at updating rman - some of the
HTML which 3.0.8+patches generates is not correct, e.g., tags are not
nested.  I did a first cut of a merge for my own testing (and to persuade
Tom Phelps to own the result), but have an impression that I should wait
til after 4.4 to commit those changes.

It might be good to get that into 4.4 since it is isolated and only affects
documentation.

David
-- 
David Dawes
developer/release engineer  The XFree86 Project
www.XFree86.org/~dawes
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


fix manual page building on Mac OS X

2003-12-29 Thread Matthieu Herrb
Hi,

The process that builds XFree86 manual pages needs cpp -traditional
when GNU cpp is used. 

I'd propose to apply the following patch do darwin.cf.

Index: darwin.cf
===
RCS file: /cvs/xf86/xc/config/cf/darwin.cf,v
retrieving revision 1.46
diff -u -r1.46 darwin.cf
--- darwin.cf   18 Nov 2003 19:00:14 -  1.46
+++ darwin.cf   29 Dec 2003 09:15:28 -
@@ -153,6 +153,7 @@
  */
 #if OSMajorVersion = 7
 # define CppCmd /usr/bin/cpp3
+# define StandardCppOptions-traditional
 #else
 # define CppCmd /usr/bin/cpp
 #endif

Matthieu
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: fix manual page building on Mac OS X

2003-12-29 Thread Thomas Dickey
On Mon, 29 Dec 2003, Matthieu Herrb wrote:

 Hi,

 The process that builds XFree86 manual pages needs cpp -traditional
 when GNU cpp is used.

speaking of manpages, I've been looking at updating rman - some of the
HTML which 3.0.8+patches generates is not correct, e.g., tags are not
nested.  I did a first cut of a merge for my own testing (and to persuade
Tom Phelps to own the result), but have an impression that I should wait
til after 4.4 to commit those changes.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: fix manual page building on Mac OS X

2003-12-29 Thread Torrey Lyons
At 10:21 AM +0100 12/29/03, Matthieu Herrb wrote:
Hi,

The process that builds XFree86 manual pages needs cpp -traditional
when GNU cpp is used.
Although the man pages build correctly I suppose you are trying to 
avoid the multi-line string literals are deprecated warning. Good 
idea.

I'd propose to apply the following patch do darwin.cf.

Index: darwin.cf
===
RCS file: /cvs/xf86/xc/config/cf/darwin.cf,v
retrieving revision 1.46
diff -u -r1.46 darwin.cf
--- darwin.cf   18 Nov 2003 19:00:14 -  1.46
+++ darwin.cf   29 Dec 2003 09:15:28 -
@@ -153,6 +153,7 @@
  */
 #if OSMajorVersion = 7
 # define CppCmd /usr/bin/cpp3
+# define StandardCppOptions-traditional
 #else
 # define CppCmd /usr/bin/cpp
 #endif
This fixes the manpage warnings, but this makes __GNUC__ become 
undefined. Probably using:

#define StandardCppOptions -traditional -D__GNUC__

is the safest bet although this has the side effect that __GNUC__ is 
always defined even with RawCppCmd. To make the Panther case 
identical to previous versions you'd have to make special case for 
RawCppCmd as well, which is likely not worth the complexity.

--Torrey
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel