This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
a question re: variable expansion
- From: Thomas Vander Stichele <thomas at urgent dot rug dot ac dot be>
- To: automake at gnu dot org
- Date: Thu, 28 Mar 2002 18:47:28 +0100 (CET)
- Subject: a question re: variable expansion
I hope it's ok to ask here, since i'm not sure if this is an autoconf or
automake issue.
I have an AUTHORS file, and I pull it in in configure.in like this :
AUTHORS=`cat AUTHORS`
AC_DEFINE_UNQUOTED(AUTHORS, "$AUTHORS")
AC_SUBST(AUTHORS)
When AUTHORS is more than one line, of course this doesn't work, I get sed
errors running configure.
My question is basically, what is the cleanest way to pull in the AUTHORS
file and protect the newlines some way that later on the AUTHORS variable
expands to a multiline where appropriate (for example, in a generated spec
file) ?
Thomas
--
The Dave/Dina Project : future TV today ! - http://davedina.apestaart.org/
<-*- -*->
We'll walk right up to the sun
hand in hand
<-*- thomas@apestaart.org -*->
URGent, the best radio on the Internet - 24/7 ! - http://urgent.rug.ac.be/