+Thu Nov 14 23:11:09 1996 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_yacc_lex_cxx): Don't auto-define YACC, LEX,
+ CXX, CC.
+
+ * dejagnu.am: Print warning if runtest missing.
+
+ From Joerg-Martin Schwarz:
+ * automake.in (handle_aclocal_m4): Find aclocal.m4 in srcdir.
+ (require_file_internal): Unlink file before creating it.
+
+ * depend2.am (.deps/%.P): Don't print commands when running.
+
+Mon Nov 11 10:35:08 1996 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (handle_single_transform_list): Simplified C++
+ matching expression.
+
Fri Nov 8 09:49:09 1996 Tom Tromey <tromey@cygnus.com>
+ * Released 1.1g.
+
* compile-kr.am ($(OBJECTS)): Removed.
* automake.in (get_object_extension): Define ANSI2KNR. Push onto
-New in 1.1g:
+New in 1.1h:
* Bug fixes
* Better DejaGNU support
* Added no-installinfo option
-This is Automake, an experimental Makefile generator. It was inspired
-by the 4.4BSD make and include files, but aims to be portable and to
-conform to the GNU standards for Makefile variables and targets.
+This is Automake, a Makefile generator. It was inspired by the 4.4BSD
+make and include files, but aims to be portable and to conform to the
+GNU standards for Makefile variables and targets.
Automake is a Perl script. The input files are called Makefile.am.
The output files are called Makefile.in; they are intended for use
A few notes on this particular release:
-* If upgrading from a previous test release, you must remove all the
- old installed m4 files; their names have changed to fit into the 14
- char limit. These files are ordinarily in $(prefix)/share/aclocal.
-
-* The `missing' program is still not in use, pending
+* The `missing' program is still not in use.
* The `acinstall' program is distributed but not used; I still must
write the internal support for it. This is the program that will be
used to install macro files for aclocal.
-* The documentation needs more work. For instance the macros that
- come with aclocal are not fully documented.
-
-* Right now the generated Makefiles will print the commands used for
- (eg) installing, no matter how ugly. These commands give no
- feedback as they do their work. It has been suggested that these
- command be made invisible (using "@"), and also print something as
- they work (eg "installing foo as /a/b/foo"). I'd appreciate
- feedback on this idea, especially if you have particular reasons for
- preferring one over the other.
+* The documentation needs a lot more work.
Please send comments and problem reports about this test release to
tromey@cygnus.com -- ignore the bug reporting addresses given by the
* `missing' program
* copyrights on m4 files, aclocal output
+* clean up source directory by moving stuff into subdirs
+
!! foo_LIBRARIES = @JOE@ -> _LIBFILES is wrong
[ have implemented temporary fix, but something better must be done
probably do Gord's idea ]
* Handle clean changes
* New definition for LINK
+DJM wants ``LINKS'' variable; list of things to link together after
+install. In BSD environment, use:
+ LINKS = from1 to1 from2 to2 ...
+
Need way to say there are no suffixes in a Makefile (Franc,ois'
"override" idea suffices here)
* Consider supporting syntax from autoconf "derived:source", eg:
y.tab.c:perly.y
for yacc and lex source
+* allow generating c++ source from lex? Eg using flex?
Multi-language support:
* should have mapping of file extensions to languages
write example of using automake with dejagnu
follow calc example in dejagnu docs
-document gdb's yacc hack for including multiple parsers
-
document which variables are actually scanned and which are not.
finish yacc, lex
+ need for LEXLIB
+ document gdb's yacc hack for including multiple parsers
Document customary ordering of Makefile.am. From François.
# 02111-1307, USA.
# Originally written by David Mackenzie <djm@gnu.ai.mit.edu>.
-# Perl reimplementation by Tom Tromey <tromey@drip.colorado.edu>.
+# Perl reimplementation by Tom Tromey <tromey@cygnus.com>.
# Parameters set by configure. Not to be changed. NOTE: assign
if ($yacc_count)
{
push (@suffixes, '.y');
- &define_configure_variable ('YACC');
$output_rules .= ".y.c:\n\t";
if ($yacc_count > 1)
{
if (! defined $configure_vars{'YACC'})
{
- # FIXME: should include a reference line.
- &am_error ("yacc source seen but \`YACC' not defined in \`configure.in'\n");
+ &am_error ("yacc source seen but \`YACC' not defined in \`configure.in'");
}
}
if ($lex_count)
{
push (@suffixes, '.l');
- &define_configure_variable ('LEX');
&define_configure_variable ('LEX_OUTPUT_ROOT');
&define_configure_variable ('LEXLIB');
$output_rules .= ".l.c:\n\t";
if (! defined $configure_vars{'LEX'})
{
- &am_error ("lex source seen but \`LEX' not defined in \`configure.in'\n");
+ &am_error ("lex source seen but \`LEX' not defined in \`configure.in'");
}
if (! $seen_decl_yytext)
{
- &am_error ("lex source seen but \`AC_DECL_YYTEXT' not in \`configure.in'\n");
+ &am_error ("lex source seen but \`AC_DECL_YYTEXT' not in \`configure.in'");
}
}
{
push (@suffixes, @cxx_list);
- &define_configure_variable ("CXX");
&define_configure_variable ("CXXFLAGS");
&define_variable ('CXXCOMPILE', '$(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS)');
&define_variable ('CXXLINK', '$(CXX) $(LDFLAGS) -o $@');
if (! defined $configure_vars{'CXX'})
{
- &am_error ("C++ source seen but \`CXX' not defined in \`configure.in'\n");
+ &am_error ("C++ source seen but \`CXX' not defined in \`configure.in'");
}
}
#
if ($seen_c_source)
{
- &define_configure_variable ('CC');
&define_configure_variable ('CFLAGS');
&define_variable ('COMPILE',
'$(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)');
&define_variable ('LINK', '$(CC) $(LDFLAGS) -o $@');
+
+ if (! defined $configure_vars{'CC'})
+ {
+ &am_error
+ ("C source seen but \`CC' not defined in \`configure.in'");
}
}
# Transform source files into .o files. List of C++
# extensions comes from Emacs 19.32 etags.
- if (s/\.c\+\+$/.o/g
- || s/\.cc$/.o/g
- || s/\.cpp$/.o/g
- || s/\.cxx$/.o/g
- || s/\.C$/.o/g)
+ if (s/\.(c\+\+|cc|cpp|cxx|C)$/o/)
{
- $cxx_extensions{$&} = 1;
+ $cxx_extensions{'.' . $1} = 1;
$linker = 'CXXLINK';
}
else
# important.
if ($regen_aclocal)
{
- $output_rules .= ("aclocal.m4: "
+ $output_rules .= ("\$(srcdir)/aclocal.m4: "
. ($seen_maint_mode ? "\@MAINT\@" : "")
. "configure.in"
. ($acinclude ? ' acinclude.m4' : '')
{
$trailer = "; installing";
$suppress = 1;
- # Install the missing file. Symlink if we can, copy
- # if we must.
+ # Install the missing file. Symlink if we can,
+ # copy if we must. Note: delete the file first,
+ # in case it is a dangling symlink.
+ unlink ($errfile);
if ($symlink_exists)
{
if (! symlink ($am_dir . '/' . $file, $errfile))
and is consistent with GNU Automake @value{VERSION}.@*
@sp 2
Published by the Free Software Foundation @*
-59 Template Place - Suite 330, @*
+59 Temple Place - Suite 330, @*
Boston, MA 02111-1307 USA @*
Permission is granted to make and distribute verbatim copies of
#define PACKAGE "$PACKAGE"
EOF
-VERSION=1.1g
+VERSION=1.1h
cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
dnl Process this file with autoconf to produce a configure script.
AC_INIT(automake.in)
-AM_INIT_AUTOMAKE(automake, 1.1g)
+AM_INIT_AUTOMAKE(automake, 1.1h)
AC_PATH_PROG(PERL, perl)
if test -z "$PERL"; then
CYGNUS TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
CYGNUS export TCL_LIBRARY; \
CYGNUS fi; \
- $(RUNTEST) --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS)
+ runtest=$(RUNTEST); \
+## If runtest can't be found, print a warning but don't die. It is
+## pointless to cause a failure if the tests cannot be run at all.
+ if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
+ $$runtest --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS); \
+ else echo "WARNING: could not find \`runtest'" 1>&2; :;\
+ fi
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
.deps/%.P: $(srcdir)/%@EXT@
- $(@MKDEP@) $< > $@-tmp
+ @echo "Computing dependencies for $<..."
+ @$(@MKDEP@) $< > $@-tmp
## FIXME: shouldn't do this for languages other than C.
- if test -n "$o"; then \
+ @if test -n "$o"; then \
sed 's/\.o:/$$o:/' $@-tmp > $@; \
rm $@-tmp; \
else \
CYGNUS TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
CYGNUS export TCL_LIBRARY; \
CYGNUS fi; \
- $(RUNTEST) --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS)
+ runtest=$(RUNTEST); \
+## If runtest can't be found, print a warning but don't die. It is
+## pointless to cause a failure if the tests cannot be run at all.
+ if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
+ $$runtest --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS); \
+ else echo "WARNING: could not find \`runtest'" 1>&2; :;\
+ fi
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
## 02111-1307, USA.
.deps/%.P: $(srcdir)/%@EXT@
- $(@MKDEP@) $< > $@-tmp
+ @echo "Computing dependencies for $<..."
+ @$(@MKDEP@) $< > $@-tmp
## FIXME: shouldn't do this for languages other than C.
- if test -n "$o"; then \
+ @if test -n "$o"; then \
sed 's/\.o:/$$o:/' $@-tmp > $@; \
rm $@-tmp; \
else \
-@set UPDATED 20 October 1996
-@set EDITION 1.1g
-@set VERSION 1.1g
+@set UPDATED 14 November 1996
+@set EDITION 1.1h
+@set VERSION 1.1h