This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
Re: Error because README is missing
- From: Andreas Schwab <schwab at suse dot de>
- To: psmith at gnu dot org
- Cc: Alexandre Duret-Lutz <adl at src dot lip6 dot fr>, automake at gnu dot org
- Date: Tue, 30 Nov 2004 00:31:41 +0100
- Subject: Re: Error because README is missing
- References: <16762.54511.805811.434788@lemming.engeast.baynetworks.com><2004-10-24-01-15-44+20914+adl@gnu.org><vpdrr7mczepu.fsf@lemming.engeast.baynetworks.com>
"Paul D. Smith" <psmith@gnu.org> writes:
> However, I actually had a second error that I didn't mention because I
> figured it would be the same problem... but it's not.
>
> The second error is this:
>
> $ automake --add-missing --no-force
> configure.in:398: required file `build.sh.in' not found
>
> This file is being created with this in my configure.in file:
>
> if test -f $srcdir/build.sh.in; then
> AC_CONFIG_FILES(build.sh)
> fi
AC_CONFIG_FILES is a declaration-like macro, you can't execute it
conditionallyon the shell level. If you want to make it conditional on
the existence of the input file you need to do that on the m4 level.
Untested code ahead.
m4_syscmd([test -f build.sh.in])dnl
m4_if(m4_sysval, 0, [AC_CONFIG_FILES(build.sh)])
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."