]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
authorAlexandre Duret-Lutz <adl@gnu.org>
Sat, 14 May 2005 18:33:30 +0000 (18:33 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sat, 14 May 2005 18:33:30 +0000 (18:33 +0000)
as on 2005-05-02.
* doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
Mention LIBOBJDIR.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/functions.m4

index 0c7c01595a5d28d61c2c775f3b4acf7161fea70d..c6b256644624d2008860e55e3cfba0ae650c274f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-14  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * lib/autoconf/functions.m4 (_AC_LIBOBJ_ALLOCA): Prepend ${LIBOBJDIR},
+       as on 2005-05-02.
+       * doc/autoconf.texi (Particular Functions) <AC_FUNC_ALLOCA>:
+       Mention LIBOBJDIR.
+
 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * AUTHORS, BUGS, COPYING, ChangeLog, ChangeLog.0, ChangeLog.1,
diff --git a/NEWS b/NEWS
index da98a55ce43ed5578c0c3230f0c0a927833a1ddf..6f7e9ac53a39cebb8c1b0b674a5e8ac655b36f41 100644 (file)
--- a/NEWS
+++ b/NEWS
     infodir       info documentation [DATAROOTDIR/info]
     mandir        man documentation [DATAROOTDIR/man]
 
+  This means that if you use any of `@datadir@', `@infodir@', or
+  `@mandir@' in a file, you will have to ensure `${datarootdir}' is
+  defined in this file.
+
 ** AC_PROG_CC_C89, AC_PROG_CC_C99
   New macros for ISO C99 support.  AC_PROG_CC_C89 and AC_PROG_CC_C99
   check for ANSI C89 and ISO C99 support respectively.
 ** AT_COPYRIGHT
   New macro for copyright notices in testsuite files.
 
+** ALLOCA, LIBOBJS, LTLIBOBJS
+  Object names added to these variables are now prefixed with `${LIBOBJDIR}',
+  as in `${LIBOBJDIR}alloca.o'.  LIBOBJDIR is meant to be defined from
+  `Makefile.in' in case the object files lie in a different directory.
+
 * Major changes in Autoconf 2.59b
 
   Released 2004-08-20, by Paul Eggert.
index aaf5a40814ae244d285a37e66a958b77bc6654d5..7b5f12b163384a3ce20818260c2c0283913a5d02 100644 (file)
@@ -3989,11 +3989,13 @@ it defines @code{HAVE_ALLOCA_H}.
 If those attempts fail, it looks for the function in the standard C
 library.  If any of those methods succeed, it defines
 @code{HAVE_ALLOCA}.  Otherwise, it sets the output variable
-@code{ALLOCA} to @samp{alloca.o} and defines @code{C_ALLOCA} (so
-programs can periodically call @samp{alloca(0)} to garbage collect).
-This variable is separate from @code{LIBOBJS} so multiple programs can
-share the value of @code{ALLOCA} without needing to create an actual
-library, in case only some of them use the code in @code{LIBOBJS}.
+@code{ALLOCA} to @samp{$@{LIBOBJDIR@}alloca.o} and defines
+@code{C_ALLOCA} (so programs can periodically call @samp{alloca(0)} to
+garbage collect).  This variable is separate from @code{LIBOBJS} so
+multiple programs can share the value of @code{ALLOCA} without needing
+to create an actual library, in case only some of them use the code in
+@code{LIBOBJS}.  The @samp{$@{LIBOBJDIR@}} prefix serves the same
+purpose as in @code{LIBOBJS} (@pxref{AC_LIBOBJ vs LIBOBJS}).
 
 This macro does not try to get @code{alloca} from the System V R3
 @file{libPW} or the System V R4 @file{libucb} because those libraries
index 57fb458522e8be1747db43ee485814c37a94e173..40e0f7c986d4236e15f490b5fc23efbddf47aa61 100644 (file)
@@ -254,7 +254,7 @@ m4_define([_AC_LIBOBJ_ALLOCA],
 # contain a buggy version.  If you still want to use their alloca,
 # use ar to extract alloca.o from them instead of compiling alloca.c.
 AC_LIBSOURCES(alloca.c)
-AC_SUBST(ALLOCA, alloca.$ac_objext)dnl
+AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.$ac_objext])dnl
 AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using `alloca.c'.])
 
 AC_CACHE_CHECK(whether `alloca.c' needs Cray hooks, ac_cv_os_cray,