I am trying to compile libgnupdf in Mac OS X 10.5, and found some porting issues that I don't really know how to handle (first time trying to port something to this OS). I found at least three issues:
(1) libtoolize --> glibtoolize (in Darwin) --> So bootstrap needs to be modified. New bootstrap for Mac OS X? (2) malloc.h
--> stdlib.h (in Darwin) --> So source files will need an
explicit #ifdef _DARWIN_OS or something like that (a more explicit
#ifdef HAVE_MALLOC_H maybe) for a correct compilation. Configure script
will need to be run with the specific definition (-D_DARWIN_OS) as
well. Is this the best approach? (3) The function 'getline' used in utils/pdf_filter is not included in my default system libraries. Is there any workaround to this?
I successfully compiled the library after making changes (1) and (2), but failed when compiling the pdf_filter utility due to (3).