[darcs-users] darcs patch: Obviate Autoconf.have_libcurl.

Petr Rockai me at mornfall.net
Thu Feb 19 07:01:39 UTC 2009


Hi,

trentbuck at gmail.com (Trent W. Buck) writes:
> Trent W.Buck <trentbuck at gmail.com> writes:
>
>> +#ifdef HAVE_LIBWWW || HAVE_LIBCURL || HAVE_HTTP
>> +         Nothing -> copyUrl u v Cachable
>> +#else
>> +         Nothing -> return ()
>> +#endif
>
> I really ought to test shit before I send it.  Apparently this is not
> how you use CPP at all...
Try

    #if defined(HAVE_LIBWWW) || defined(...)

that could possibly work (no guarantees)

Incidentally, this more or less what I have originally done on one of the first
cabalisation branches.

Yours,
   Petr.

-- 
Peter Rockai | me()mornfall!net | prockai()redhat!com
 http://blog.mornfall.net | http://web.mornfall.net

"In My Egotistical Opinion, most people's C programs should be
 indented six feet downward and covered with dirt."
     -- Blair P. Houghton on the subject of C program indentation


More information about the darcs-users mailing list