[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.
From: |
Bruno Haible |
Subject: |
Re: [PATCH] lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.h> unless HAVE_CONFIG_H is defined |
Date: |
Mon, 1 Mar 2010 23:17:08 +0100 |
User-agent: |
KMail/1.9.9 |
Peter Simons wrote:
> I completely agree that Gnulib shouldn't try to support
> non-config.h builds in general. It's not worth the effort, really. Yet,
> at the same time it would feel like prudent software engineering if
> Gnulib would avoid creating unnecessary obstacles for those projects
> that work fine without config.h.
gnulib-tool offers you a way to adapt the Gnulib source to your wishes:
If you store a file lib/md5.c.diff in a subdirectory 'gnulib-local' of
your package and pass the option --local-dir=gnulib-local to the gnulib-tool
invocation, gnulib-tool will apply this diff when pulling lib/md5.c from
the Gnulib repository.
lib/md5.c.diff can look like this:
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -20,7 +20,9 @@
/* Written by Ulrich Drepper <address@hidden>, 1995. */
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include "md5.h"
Bruno
- Re: [PATCH] lib/malloca.c, lib/md5.c, lib/sha1.c: don't include <config.h> unless HAVE_CONFIG_H is defined,
Bruno Haible <=