On Wed, Oct 31, 2007 at 08:35:42AM -0700, brad clawsie wrote:
> On Wed, Oct 31, 2007 at 01:36:40PM +0000, Ian Lynagh wrote:
> > > otherwise i was wondering if people had good examples to point me to
> > > for providing the cross-platform support needed for a FFI-based module
> > > such as this. i have made the necessary changes to compile the code on
> > > freebsd, but for other platforms i am not sure at all, particularly
> > > non-unix style platforms like windows.
> > 
> > What sort of changes do you mean?
> 
> the need to locate the curl library and headers in different places on 
> different platforms. the defaults used (for linux i presume) do not
> work for freebsd for example. 
> 
> my guess is i need autotools to do this, but i am not sure

Oh, you mean adding library/include paths to the Cabal file? Right, that
will either need to use the new pkg-config support in Cabal 1.2 (if curl
uses pkg-config), or autotools (substituting into a .buildinfo file is
probably the easiest way).


Thanks
Ian

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to