Subject: PATCH: build psiconv like other libs
From: Tom Briggs (tom@sane.com)
Date: Sat Jan 27 2001 - 09:35:47 CST
Attached is a tarball containing three files:
1. abi-psiconv.diff
This moves compilation of psiconv from XP to platform specific makefiles.
It also builds it as an Abi library (Abi_libpsiconv), using a Makefile.abi
makefile rather than the Makefile generated by configure. It does *not*
make any attempt to detect psiconv as a system lib; someone in the Unix
world is gonna have to tackle that one.
This should be applied to the abi tree.
2. Makefile.abi
This goes in psiconv/psiconv/ (yes, psiconv/psiconv/) and is used to build
psiconv as described above.
3. psiconv-psiconv.diff
This contains a few small patches that I had to make to get psiconv
compiling on Windows (and one I needed to get it to compile on Linux,
oddly enough). Though snprintf and vsnprintf exist in some MSVC header
file somewhere, they don't actually exist in the run-time libs, so I
added a quick hack to redefine their names to function names that do
exist. The addition of <strings.h> is simply there to quiet a compiler
warning. To get everything to compile on Linux I had to change a
C++-style comment to a C-style comment; there must have been some flag
being passed to the compiler before that allowed this to get through,
but simply fixing the comment style seemed like the easier way to fix it.
This fixes the Windows build! w00 h00! I can finally see Mike's Page
Numbers dialog. :)
I've tested the fixes on Linux (without Gnome), and I've made what should be
workable changes to the Makefiles for QNX and BeOS. I don't want to commit it,
however, until people on other platforms (QNX, BeOS, Gnome) have a chance to
test it. If nobody reports problems within the next couple days I'll go ahead
and commit it.
-Tom
This archive was generated by hypermail 2b25 : Sat Jan 27 2001 - 09:37:05 CST