automake
[Top][All Lists]
Advanced

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

Re: variables containing newline characters


From: 'Ralf Wildenhues'
Subject: Re: variables containing newline characters
Date: Wed, 9 May 2007 10:25:32 +0200
User-agent: Mutt/1.5.15 (2007-04-29)

Hello James,

* James Willenbring wrote on Mon, May 07, 2007 at 06:48:20PM CEST:
> 
> "If the failure comes from a substituted value with newlines, then I
> wonder how that could have worked before:  Autoconf before 2.60 wasn't
> able to deal with newlines in substituted values."
> 
> That is surprising because we have used Autoconf 2.59 for years and
> have never had trouble with newlines in substituted values.  Here is
> an example of the arguments we might pass to configure:
[...]

> (Note that the lines that run over the end of a line without a new
> character are one line in my file, but are too long for a line in my
> email editor.)

Well, it's too bad, because exactly this difference is crucial.  If I
take your configure invocation, escape all newlines properly, then I can
configure and execute 'make' successfully, with both using Autoconf
2.59/Automake 1.9.6 as well as Autoconf 2.61/Automake 1.10.  Are you
sure you did not by chance forget to escape one of those newline
characters?

Unrelated, please consider the patch below to fix some minor buglets in
your build system (do not use an absolute path in AC_CONFIG_SRCDIR; drop
unneeded AC_C_CONST; use ACLOCAL_AMFLAGS).

Cheers,
Ralf

--- configure.ac        2006-09-06 19:58:24.000000000 +0200
+++ configure.ac        2007-05-08 19:15:22.000000000 +0200
@@ -53,7 +53,7 @@
 # preferably one that is unlikely to be removed or renamed.
 
 # #np# - file name below
-AC_CONFIG_SRCDIR(/src/Teuchos_LAPACK.hpp)
+AC_CONFIG_SRCDIR([src/Teuchos_LAPACK.hpp])
 
 # Specify directory for auxillary build tools (e.g., install-sh,
 # config.sub, config.guess) and M4 files.
@@ -263,7 +263,6 @@
 fi
 
 # Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
 AC_C_INLINE
 
 # ------------------------------------------------------------------------
--- Makefile.am 2006-08-08 19:58:44.000000000 +0200
+++ Makefile.am 2007-05-08 19:13:00.000000000 +0200
@@ -34,7 +34,7 @@
 ## #######################################################################
 ## Aclocal command (rarely used - don't worry about it)
 ## #######################################################################
-ACLOCAL        = aclocal -I config
+ACLOCAL_AMFLAGS = -I config
 
 #
 #       I believe that by switching to AUX_DIR(../../config) one 




reply via email to

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