bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: bug-gnulib@gnu.org
Subject: Re: dynarray, scratch_buffer: Avoid conflict with preprocessor macros owned by the system
Date: Tue, 08 Jun 2021 02:41:23 +0200	[thread overview]
Message-ID: <3531661.KS18vJa9Ur@omega> (raw)
In-Reply-To: <5090997.gcfE4oZm11@omega>

Oops, I forgot to 'mkdir -p malloc' in the build directory. In some
environments, the Makefile's 'dirstamp' handling does it automatically;
in others, it doesn't.


2021-06-07  Bruno Haible  <bruno@clisp.org>

	dynarray, scratch_buffer: Fix VPATH builds (regression from yesterday).
	* modules/dynarray (configure.ac): Invoke AC_PROG_MKDIR_P.
	(Makefile.am): Create malloc/ directory before creating
	malloc/dynarray.gl.h and malloc/dynarray-skeleton.gl.h.
	* modules/scratch_buffer (configure.ac): Invoke AC_PROG_MKDIR_P.
	(Makefile.am): Create malloc/ directory before creating
	malloc/scratch_buffer.gl.h.

diff --git a/modules/dynarray b/modules/dynarray
index 7fd444f..fa608de 100644
--- a/modules/dynarray
+++ b/modules/dynarray
@@ -20,11 +20,13 @@ stddef
 intprops
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += malloc/dynarray.gl.h malloc/dynarray-skeleton.gl.h
 
 malloc/dynarray.gl.h: malloc/dynarray.h
+	$(AM_V_at)$(MKDIR_P) malloc
 	$(AM_V_GEN)rm -f $@-t $@ && \
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  sed -e '/libc_hidden_proto/d' < $(srcdir)/malloc/dynarray.h; \
@@ -33,6 +35,7 @@ malloc/dynarray.gl.h: malloc/dynarray.h
 MOSTLYCLEANFILES += malloc/dynarray.gl.h malloc/dynarray.gl.h-t
 
 malloc/dynarray-skeleton.gl.h: malloc/dynarray-skeleton.c
+	$(AM_V_at)$(MKDIR_P) malloc
 	$(AM_V_GEN)rm -f $@-t $@ && \
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  sed -e 's|<malloc/dynarray\.h>|<malloc/dynarray.gl.h>|g' \
diff --git a/modules/scratch_buffer b/modules/scratch_buffer
index ede77a9..184f0b6 100644
--- a/modules/scratch_buffer
+++ b/modules/scratch_buffer
@@ -20,11 +20,13 @@ realloc-posix
 free-posix
 
 configure.ac:
+AC_PROG_MKDIR_P
 
 Makefile.am:
 BUILT_SOURCES += malloc/scratch_buffer.gl.h
 
 malloc/scratch_buffer.gl.h: malloc/scratch_buffer.h
+	$(AM_V_at)$(MKDIR_P) malloc
 	$(AM_V_GEN)rm -f $@-t $@ && \
 	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 	  sed -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \



      reply	other threads:[~2021-06-08  0:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-06 22:50 glob-h: Avoid conflict with preprocessor macros owned by the system Bruno Haible
2021-06-06 23:22 ` dynarray, scratch_buffer: " Bruno Haible
2021-06-08  0:41   ` Bruno Haible [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3531661.KS18vJa9Ur@omega \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).