[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7635: AC_LIBSOURCE doesn't fail as it should if AC_OUTPUT is not use
bug#7635: AC_LIBSOURCE doesn't fail as it should if AC_OUTPUT is not used
Mon, 13 Dec 2010 23:35:32 +0100
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )
If configure.ac does not contain a call to AC_OUTPUT, Automake
does not fail as expected when file(s) specified in calls to
macros AC_LIBSOURCE and/or AC_LIBSOURCES do not exist. See the
attached test script.
Now, while the lack of AC_OUTPUT in configure.ac is almost surely
a user error, IMHO it shouldn't prevent Automake from warning about
other errors (in this case, the non-existence of files specified in
calls to macros AC_LIBSOURCE and AC_LIBSOURCES).
# Nonexistent source for AC_LIBSOURCE should cause Automake to fail.
. ./defs || Exit 1
cat >> configure.in << 'END'
cat > Makefile.am << 'END'
noinst_LIBRARIES = libtu.a
libtu_a_LIBADD = $(LIBOBJS)
grep 'configure\.in:.*required file.*foobar\.c.*' stderr
grep 'configure\.in:.*required file.*bazquux\.c.*' stderr
- bug#7635: AC_LIBSOURCE doesn't fail as it should if AC_OUTPUT is not used,
Stefano Lattarini <=