bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arg-nonnull.h & warn-on-use.h in build-aux


From: Bruno Haible
Subject: Re: arg-nonnull.h & warn-on-use.h in build-aux
Date: Wed, 24 Feb 2010 00:58:24 +0100
User-agent: KMail/1.9.9

Sam Steingold wrote:
> I want to be able to add build_aux=.... to the $(MAKE) invocation
> so that the file arg-nonnull.h & warn-on-use.h are found in the right place.

build_aux is not something that you can change via an environment variable.
Autoconf requires it to be constant. You specify it through the
AC_CONFIG_AUX_DIR macro. In other words, if you add to
  clisp/modules/syscalls/configure.ac
the line
  AC_CONFIG_AUX_DIR([../../src/build-aux])
then you need only one copy of arg-nonnull.h, at
  clisp/src/build-aux/arg-nonnull.h

The gnulib-tool generated Makefile.am will adapt to this definition:
When you see in the module description

        sed -n -e '/GL_ARG_NONNULL/,$$p' \
          < $(top_srcdir)/build-aux/arg-nonnull.h \

then it the Makefile.am it will read

        sed -n -e '/GL_ARG_NONNULL/,$$p' \
          < $(top_srcdir)/../../src/build-aux/arg-nonnull.h \

- exactly what you need. (This is done in gnulib-tool line 4116.)

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]