lib/Automake


Log

Author Commit Date CI Message
Alexandre Duret-Lutz 7b53cc3f 2004-07-17T11:40:23 * configure.ac, NEWS: Bump version to 1.8d.
Alexandre Duret-Lutz bcb160f8 2004-07-11T22:13:20 * lib/Automake/Variable.pm (define): Fix precondition check.
Alexandre Duret-Lutz 21e87c93 2004-06-03T20:19:27 * lib/am/clean.am (distclean-generic): Do no `rm -f $(CONFIG_CLEAN_FILES)' if `$(CONFIG_CLEAN_FILES)' is empty. Report from Nicolas Joly.
Alexandre Duret-Lutz 5b8ccc44 2004-05-23T19:30:14 * configure.ac, NEWS: Bump version to 1.8c.
Alexandre Duret-Lutz 95853b65 2004-05-23T19:02:40 * configure.ac, NEWS: Bump version to 1.8b.
Alexandre Duret-Lutz 4a393459 2004-05-23T09:57:55 regen
Alexandre Duret-Lutz bf7ab094 2004-05-22T07:19:37 Check directory names for unportable names. Shaking the code to check this also led to the removal of the no-"/"-in-SUBDIRS restriction, and a fix to _do_recursive_traversal. * automake.in (check_directory): New function extracted from handle_subdirs, and augmented to check for reserved W32/DOS name. (check_directories_in_var): New function. (handle_subdirs): Call check_directories_in_var. Doing so also suppress the restriction that SUBDIRS should not contain slashes. (scan_autoconf_traces) <AC_CONFIG_AUX_DIR>: Call check_directory to ensure the argument exists and is safe. * doc/automake.texi (Top level): Do not say that src/subdir cannot be put in SUBDIRS. (Dist): Mention that distdir and top_distdir can be absolute. * lib/Automake/Variable.pm (_do_recursive_traversal) Support undefined $fun_collect, and fix two bugs introduced with skip_ac_subst on 2004-03-07. * lib/am/distdir.am (distdir): Use absolute distdir and top_distdir when recursing, because we can no longer prepend only `..' in case of SUBDIRS with `/'. * tests/auxdir4.test, tests/subdir9.test: New files. * tests/Makefile.am (TESTS): Add auxdir4.test. * tests/cond2.test, tests/subdir7.test: Augment to check location in diagnostics.
Alexandre Duret-Lutz 4978246f 2004-05-13T20:14:08 regen
Alexandre Duret-Lutz 4e060078 2004-04-24T14:18:52 * lib/Automake/VarDef.pm (append): Turn VAR_ASIS variables into VAR_PRETTY variables to work around make implementation with limited line length, such as OSF1/Tru64 make. * tests/longline.test: New file. * tests/Makefile.am (TESTS): Add it. * tests/pluseq3.test, tests/pluseq8.test: Adjust. Report from Simon Josefsson.
Alexandre Duret-Lutz c0cb2500 2004-04-24T10:45:42 * lib/am/tags.am (TAGS): Pass `.' to Exuberant Ctags if --etags-include is used but no other files are supplied, so it creates the TAGS file anyway. Report from Akim Demaille.
Alexandre Duret-Lutz 014ec4f2 2004-04-23T21:57:44 For PR automake/414: Introduce option filename-length-max=99. * doc/automake.texi (Options): Document it. * configure.ac (AM_INIT_AUTOMAKE): Use it. * lib/Automake/Options.pm (_process_option_list): Recognize it. * automake.in (handle_dist): Set FILENAME_FILTER. * lib/am/distdir.am (distdir) [FILENAME_FILTER]: Diagnose long filenames. * tests/fn99.test: New file. * tests/Makefile.am (TESTS): Add fn99.test.
Alexandre Duret-Lutz ae040111 2004-04-19T23:20:08 For PR automake/414: Introduce options tar-v7, tar-ustar, and tar-pax to select tar format. * doc/automake.texi (Options): Document them. * lib/Automake/Options.pm (_process_option_list): Process these new options. * lib/am/distdir.am (dist-gzip, dist-bzip2, dist-tarZ, dist, distcheck): Adjust to use am__tar and am__untar. * m4/tar.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add tar.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Support the new options and call _AM_PROG_TAR. * tests/tar.test, tests/tar2.test, tests/tar3.test: New files. * tests/Makefile.am (TESTS): Add them.
Alexandre Duret-Lutz 9590e75c 2004-04-02T07:14:27 Better support for Fortran 9x. * automake.in: Add "fc" and "ppfc" languages for Fortran 9x. * doc/automake.texi (Fortran 9x Support): New section. * lib/Automake/Variable.pm (%_ac_macro_for_var): Add AC_PROG_FC. * tests/compile_f90_c_cxx.test: New file. * tests/ext.test: Add AC_PROG_FC. * tests/f90only.test: New file. * tests/link_f90_only.test: New file. * tests/Makefile.am (TESTS): Add new tests.
Alexandre Duret-Lutz 1726496d 2004-03-19T20:34:28 Overriding JAVAROOT is legitimate, do not warn about it. * lib/Automake/Variable.pm (%_silent_variable_override): Add JAVAROOT. * tests/java2.test: Run automake without -Wno-override. Report from Simon Josefsson.
Alexandre Duret-Lutz 9a0d838f 2004-03-07T12:36:54 Fix for PR automake/285: * automake.in (handle_ltlibraries): Keep track of installation directories for each condition, then define a $(am_TARGET_rpath) variable to hold the -rpath flags of Libtool libraries conditionally installed in different directories. * lib/Automake/DisjConditions.pm (merge): New function. * tests/libtool6.test: Adjust. * tests/libtool8.test: New file. * tests/Makefile.am (TEST): Add libtool8.test.
Alexandre Duret-Lutz b95837bf 2004-03-07T09:24:21 * lib/Automake/Variable.pm (traverse_recursively, _do_recursive_traversal): Honor the skip_ac_subst option. * automake.in (handle_dist): Use skip_ac_subst.
Alexandre Duret-Lutz 2ac4685e 2004-02-29T19:10:21 * automake.in (lang_yacc_target_hook): Use Automake::Rule::define so that rules for the same headers are not output twice. * lib/Automake/Variable.pm (value_as_list_recursive): Do not call `return' inside `map'. * tests/cond30.test: Make sure `a.c' and `b.c' both appear in the Makefile.in. * tests/cond35.test, tests/cond36.test: New files. * tests/Makefile.am (TESTS): Add cond35.test and cond36.test. Report from Roman Fietze.
Alexandre Duret-Lutz 58393a7d 2004-02-07T13:45:32 * aclocal.in (rel2abs): New function. (scan_configure_dep): Use rel2abs instead of File::Spec->rel2abs, the later does was introduced in Perl 5.6 so using it breaks with Perl 5.005. Report from Werner John.
Alexandre Duret-Lutz ce2c881e 2004-02-01T18:06:51 * lib/Automake/Variable.pm (transform_variable_recursively): Define rewritten variables in all conditions not *covered* by user definitions, not simply in conditions without a previous definition. * tests/cond34.test: New file. * tests/Makefile.am (TESTS): Add cond34.test. Report from Elena A. Vengerova
Alexandre Duret-Lutz b5a48a38 2004-01-28T20:50:43 * Makefile.am (maintainer-check): Check for unquoted $(DESTDIR) uses. * lib/am/data.am, lib/am/distdir.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Quote installation paths in install, uninstall, and installcheck rules, as well as in am__installdirs variables. This is for the sake of paths containing spaces. * lib/am/install.am (installdirs-am, installdirs): Do not try to create "" directories. * test/instspc.test: New file. * test/Makefile.am (TESTS): Add instspc.test. Report from James Amundson.
Alexandre Duret-Lutz d4a09a87 2004-01-05T22:21:31 Mimic Paul Eggert's changes to Autoconf. * Makefile.am (automake, aclocal): Use `chmod a-w', not `chmod -w'. * lib/Automake/Makefile.am (Config.pm): Likewise. * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Likewise.
Alexandre Duret-Lutz af2cb9d0 2004-01-05T21:49:14 * lib/am/inst-vars.am: New file, define am__vpath_adj_setup, am__vpath_adj, and am__strip_dir. * lib/am/Makefile.am (dist_am_DATA): Add inst-vars.am. * lib/am/data.am, lib/am/lisp.am, lib/am/python.am, lib/am/scripts.am: Include inst-vars.am, and use $(am__vpath_adj), $(am__vpath_adj_setup), and $(am__strip_dir) in install and uninstall rules. This fixes installation of nobase_ files in VPATH setups with Sun and OSF1/Tru64 Make. * lib/am/libs.am, lib/am/ltlib.am: Include inst-vars.am, and use $(am__strip_dir) to simplify install and uninstall rules. * tests/nobase.test: Augment to check installation from VPATH builds.
Alexandre Duret-Lutz fcbb51ad 2004-01-03T12:42:41 * lib/Automake/Variable.pm (define): Rework the way we check Automake variable definition. Ensure consistent :=/+=/= definitions only for variables that have been and are defined by Automake, and make it an internal error. Ignore Automake attempts to touch a user variable, even with += assignments. * tests/txinfo29.test: New file. * tests/Makefile.am (TESTS): Add txinfo29.test. Reported by Bruce Korb.
Alexandre Duret-Lutz 16773768 2004-01-01T17:34:18 * automake.in, aclocal.in: Bump copyright years.
Alexandre Duret-Lutz 5a6db4d7 2003-12-25T18:09:01 * lib/Automake/Config.in: Require Exporter. Report from Kevin Ryde (failure with Perl 5.005_03).
Alexandre Duret-Lutz b0d2aa09 2003-12-10T19:09:15 * configure.ac, NEWS: Bump version to 1.8a.
Alexandre Duret-Lutz 3cef4cd7 2003-12-10T19:06:17 * configure.ac, NEWS: Bump version to 1.8.
Alexandre Duret-Lutz f69c59b8 2003-12-10T17:20:06 * lib/Automake/Rule.pm (define): Remove debugging traces. Report from Akim Demaille.
Alexandre Duret-Lutz c24bd613 2003-12-09T21:24:12 * Makefile.am (do_subst): Fix the substitution of @configure_input@. (automake, aclocal): Create the output atomically and make it read-only, as done in the Autoconf package. * lib/Automake/Makefile.am (do_subst): Fix the substitution of @configure_input@. (Config.pm): Create the output atomically and make it read-only. * m4/Makefile.am ($(top_srcdir)/m4/amversion.m4): Substitute @configure_input@ and make the output read-only. * lib/Automake/Config.in, m4/amversion.in, tests/aclocal.in, tests/automake.in, tests/defs.in: Add a @configure_input@ line.
Alexandre Duret-Lutz a5fc5b6d 2003-12-08T18:00:02 * lib/Automake/Variable.pm (hook): Use $$ as prototype, not $&. Perl 5.6.0 will not accept a reference sub reference for the latter. * automake.in (var_SUFFIXES_trigger): Adjust registration via Automake::Variabke::hook. (handle_texinfo_helper): Make sure `inner_expand => 1' appears on one line, so that Perl 5.6.0 does not complain about inner_expand being a bare identifier.
Alexandre Duret-Lutz 1baa604d 2003-12-02T20:55:19 * configure.ac, NEWS: Bump version to 1.7i.
Alexandre Duret-Lutz d29f6b27 2003-12-02T20:43:16 * configure.ac, NEWS: Bump version to 1.7h.
Alexandre Duret-Lutz 0a1c8dcb 2003-11-29T23:47:02 * lib/Automake/Variable.pm (loc_and_value_as_list_recursive, _value_as_list_recursive_worker): Merge into ... (value_as_list_recursive): ... this function. Pass options as a hash argument, and use the `location' option to trigger the behavior of loc_and_value_as_list_recursive. (traverse_recursively, transform_variable_recursively): Take options as a %options argument. (_do_recursive_traversal): Perform expansion of inner variables (as in `$(FILE).ext') on request. * automake.in (handle_options, check_libobjs_sources) (handle_source_transform, handle_LIBOBJS, handle_ltlibraries) (handle_ltlibraries, handle_man_pages, handle_dist) (handle_gettext, am_install_var): Adjust usage of value_as_list_recursive. (handle_texinfo_helper): Pass inner_expand to value_as_list_recursive. * tests/txinfo28.test: New file. * tests/Makefile.am (TESTS): Add txinfo28.test. Report from Ralf Corsepius.
Alexandre Duret-Lutz 0099f67b 2003-11-29T21:47:27 * lib/Automake/Variable.pm (_do_recursive_traversal): Do not update @_substfroms and @_substfroms for undefined variables. * tests/substre2.test: New file. * tests/Makefile.am (TESTS): Add substre2.test.
Alexandre Duret-Lutz 9177ef89 2003-11-29T18:02:40 * lib/Automake/VarDef.pm (value): Rename as ... (raw_value): ... this. (value): New method, strip # and \n. (dump): Use raw_value. * lib/Automake/Variable.pm (output): Use raw_value. (value_as_list): Simplify, now that backslash and comments are already removed. * tests/txinfo22.test: Make sure Automake isn't confused by comments in variables.
Alexandre Duret-Lutz 6f7ba322 2003-11-25T22:58:07 * configure.ac, NEWS: Bump version to 1.7g.
Alexandre Duret-Lutz b82f7257 2003-11-25T22:50:00 * configure.ac, NEWS: Bump version to 1.7f.
Alexandre Duret-Lutz 2028e01e 2003-11-24T22:13:42 * lib/Automake/Variable.pm (output): Add $(am__empty) to variable definitions that end with a line full of @substitutions@ that would confuse HP-UX Make if it were blank. (transform_variable_recursively): Make sure not to erase empty variables. * tests/Makefile.am (TESTS): Add subst2.test. * tests/subst2.test: New file. Report from Harlan Stenn.
Alexandre Duret-Lutz 17820676 2003-11-22T18:05:35 Fix for PR automake/411: * automake.in (rewrite_inputs_into_dependencies): Simplify, and rename into ... (prepend_srcdir): ... this. (rewrite_inputs_into_dependencies): New function, extracted from ... (handle_configure): ... here. Adjust to use prepend_srcdir or rewrite_inputs_into_dependencies where needed. Especially, using (the new) rewrite_inputs_into_dependencies to compute Makefile dependencies will fix PR/411. * lib/am/configure.am (DIST_COMMON): Remove %MAKEFILE-IN%, it's already distributed by rewrite_inputs_into_dependencies. * tests/Makefile.am (TESTS): Add output10.test, remove distcom.test. * tests/colon3.test: Use set -e. Don't allow any AUTOMAKE invocation refer to zardoz. Make sure two.in and three.in appear as $(srcdir)/two.in and $(srcdir)/three.in dependencies. * tests/distcom.test: Delete. This is covered by tests/output9.test. * tests/output10.test: New file, for PR/411.
Alexandre Duret-Lutz 60bcced5 2003-11-19T20:09:46 * lib/am/configure.am (%MAKEFILE%): Remove %MAINTAINER-MODE%, mistakenly added on 2001-03-05. * tests/remake5.test: New file. * tests/Makefile.am (TESTS): Add remake5.test. Report from Ralf Corsepius.
Alexandre Duret-Lutz f79c3a44 2003-11-18T21:23:03 * configure.ac, NEWS: Bump version to 1.7e.
Alexandre Duret-Lutz a73e6326 2003-11-18T21:21:00 * configure.ac, NEWS: Bump version to 1.7d.
Alexandre Duret-Lutz 9b5e57d5 2003-11-17T23:18:20 * automake.in (generate_makefile): Define SUBDIRS if it is not defined and DIST_SUBDIRS is. * tests/subpkg2.test: New file. * tests/Makefile.am (TESTS): Add subpkg2.test. Report from Gary V. Vaughan.
Alexandre Duret-Lutz 8e1c45e2 2003-11-17T21:13:00 * tests/suffix11.test: Check for suffixes containing `-'. * lib/Automake/Rule.pm ($_SUFFIX_RULE_PATTERN): Accept `-' in suffixes.
Alexandre Duret-Lutz 5167e179 2003-11-17T19:08:30 * lib/Automake/Rule.pm (define): Suggest using target-local instead of target-am, not target-am-local. * tests/overrid.test: Check the diagnostic for clean-am. Report from Bruno Haible.
Alexandre Duret-Lutz 851f11ea 2003-11-11T21:44:05 * configure.ac, NEWS: Bump version to 1.7c.
Alexandre Duret-Lutz 0e85cb3d 2003-11-11T21:39:26 * configure.ac, NEWS: Bump version to 1.7b. * Makefile.am (maintainer-check): Ignore comments while scanning for rm without -f.
Alexandre Duret-Lutz 526a21cd 2003-11-11T00:07:17 * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML, MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI, TEXI2PDF, DVIPS, and TEXINFO_TEX in a table. (Uniform): Do not speak of missing HTML support, this is confusing. * lib/Automake/Variable.pm (_silent_variable_override): Add AM_MAKEINFOHTMLFLAGS. * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS. * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define. * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
Alexandre Duret-Lutz 2a8e1b17 2003-11-10T20:55:33 * automake.in (handle_configure): Distribute and define mkinstalldirs only if it is already present in the package. (scan_autoconf_files): Do not require mkinstalldirs. (require_build_directory): Use $(mkdir_p), not $(mkinstalldirs). * lib/am/data.am, lib/am/distdir.am, lib/am/install.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Use $(mkdir_p) instead of $(mkinstalldirs). * m4/mkdirp.m4: New file. * m4/Makefile.am (dist_m4data_DATA): Add mkdirp.m4. * m4/init.m4 (AM_INIT_AUTOMAKE): Call AM_PROG_MKDIR_P. * tests/Makefile.am (TESTS): Remove insh.test. * tests/insh.test: Delete. * tests/defs.in, tests/instsh.test: Do not install mkinstalldirs. * tests/auxdir.test: Install mkinstalldirs. * tests/distdir.test, tests/instman.test, tests/pr2.test: Use $(mkdir_p), not $(mkinstalldirs). * tests/empty.test: Run configure, do not substitute things by hand. * doc/automake.texi (Optional) <AC_CONFIG_FILES>: Take install-sh as an example, not mkinstalldirs. (Auxiliary Programs) <mkinstalldirs>: Update.
Alexandre Duret-Lutz 73d377d2 2003-11-08T16:07:45 * lib/am/tags.am (ETAGSFLAGS, CTAGSFLAGS): Remove. * lib/am/dejagnu.am (RUNTESTFLAGS): Remove. * lib/am/java.am (JAVACFLAGS): Remove. * tests/dejagnu3.test: Check that the environment value of RUNTESTFLAGS get passed down to runtest. Suggested by Mark Mitchell.
Alexandre Duret-Lutz 0768132f 2003-10-27T07:52:00 * automake.in (handle_configure): Rename am__configure_deps as am__aclocal_m4_deps and include $(ACLOCAL_M4_SOURCES) and $configure_ac. Define am__configure_deps as am__aclocal_m4_deps + $(CONFIGURE_DEPENDENCIES) + $(ACLOCAL_M4). Do not define ACLOCAL_M4_DEPS while processing configure.am. (make_paragraphs): Do not define %CONFIGURE_AC%, now unused. (scan_aclocal_m4): Do not distribute aclocal.m4, this is done from lib/am/configure.am. * lib/am/configure.am (%MAKEFILE-IN%, DIST_COMMON, $(top_srcdir)/configure, $(ACLOCAL_M4)): Simplify using $(am__configure_deps) or $(am__aclocal_m4_deps). * lib/am/remake-hdr.am ($(srcdir)/%CONFIG_HIN%): Likewise.
Akim Demaille 52cb203d 2003-10-23T14:29:22 * lib/Automake/XFile.pm: Don't assume -j is solo. Issue a more-informative diagnostic. Problems reported by Eric Sunshine.
Alexandre Duret-Lutz 2f048a8c 2003-10-21T13:05:55 * lib/am/install.am (install-strip): Override install_sh_PROGRAM too. Report from Elmar Hoffmann.
Akim Demaille 0a46c5b4 2003-10-01T07:14:32 * lib/Automake/XFile.pm: Use Errno. (lock): Ignore ENOLCK errors. Problem reported Andreas Schwab in <http://mail.gnu.org/archive/html/bug-autoconf/2003-09/msg00141.html>.
Tom Tromey 8735ca14 2003-09-30T19:05:54 * lib/Automake/Options.pm (_process_option_list): Recognize no-dist. * NEWS: Update. * doc/automake.texi (Options): Document no-dist. * automake.in (check_cygnus): Set no-dist option. (handle_dist): Recognize no-dist. * tests/nodist3.test: New file. * tests/Makefile.am (TESTS): Added nodist3.test.
Alexandre Duret-Lutz 18d5b482 2003-09-24T21:20:06 * configure.in: Rename as ... * configure.ac: ... this. * README: s/configure.in/configure.ac/.
Alexandre Duret-Lutz 74fe06a8 2003-09-23T08:14:35 Support for multiple inputs in AC_CONFIG_FILES. Requested long ago by Harlan Stenn. * automake.in (handle_dist): Remove unused argument $makefile. (handle_subdirs): Expect SUBDIRS elements in $relative_dir, not $am_relative_dir. (rewrite_inputs_into_dependencies): Allow $add_srcdir to be a filename that must always be prefixed by $(srcdir) or $(top_srcdir). (handle_configure, generate_makefile): Revamp to make the Makefile.am, Makefile.in, Makefile more independent. (locate_am): New function. (scan_configure_dep, parse_arguments): Use locate_am. (MAIN): Adjust call to generate_makefile. * lib/am/configure.am: Remove %MAKEFILE-IN% from the dependencies of %MAKEFILE%. %MAKEFILE-IN% is already in %MAKEFILE-DEPS%. * tests/output6.test, tests/output7.test: New files. * tests/Makefile.am (TESTS): Add them. * automake.texi (Requirements) <AC_CONFIG_FILES>: Document how multiple inputs are scanned.
Alexandre Duret-Lutz 31e9e7bb 2003-09-13T21:54:26 * Makefile.am (FETCHFILES, fetch): Do not fetch lib/Automake/XFile.pm and lib/Automake/Struct.pm from Autoconf. * lib/Automake/XFile.pm: Update comment, Automake is now the master for this file. Cosmetic changes.
Akim Demaille b02c8bff 2003-09-12T08:37:57 * lib/Automake/FileUtils.pm (&update_file): s/cannot not/cannot/g. Reported by Gary Vaughan. (&find_file): Walk the @include in forward order.
Akim Demaille 9293885d 2003-09-09T12:27:28 * lib/Automake/FileUtils.pm (&update_file): Be sure not to leave trailing files.
Alexandre Duret-Lutz 9e88c16c 2003-09-07T09:55:36 * aclocal.in (configure_ac): Do not call require_configure_ac before parsing the options. * automake.in (configure_ac): Likewise. * lib/Automake/Variable.pm (configure_ac): Do not require configure.ac, find it. * lib/Automake/Configure_ac.pm (require_configure_ac): find_configure_ac never return an undefined value, so test the file's existence instead. * tests/Makefile.am (TESTS): Add help.test. * tests/help.test: New file.
Alexandre Duret-Lutz 09cce90f 2003-09-06T21:10:40 * lib/Automake/XFile.pm: Update to use ChannelDefs. (close): Call Automake::FileUtils::handle_exec_errors on errors. * automake.in (scan_autoconf_files): Exit with $?=63 on version mismatch. (scan_autoconf_traces): Likewise. Close the autoconf pipe to capture abnormal exits. * aclocal.in ($exit_status): Remove, and use Channels.pm's $exit_code instead. (trace_used_macros): Close the autom4te pipe to capture abnormal exits. * lib/missing: When a tool has run and exited with $?=63, emulate it. Adjust the diagnostic and pretend the tool is tool old in this case. Use an emacs-updated "scriptversion" variable. * configure.in: Output tests/aclocal-${APIVERSION} and tests/automake-${APIVERSION}. * tests/aclocal.in, tests/automake.in, tests/missing.test, tests/missing2.test: New files. * tests/defs.in (AUTOMAKE, ACLOCAL, PATH): Define to use tests/aclocal-$APIVERSION and tests/automake-$APIVERSION. * tests/dup3.test: Remove. alocal9.test, acloca10.test, and others are already testing for this. * tests/depacl2.test, tests/dup2.test, tests/order.test: Fix configure.in so that aclocal works. * tests/defun.test: Quote the AC_DEFUN body. * tests/Makefile.am (TESTS): Add missing.test and missing2.test, and remove dup3.test. (check_SCRIPTS): Add aclocal and automake.
Paul Eggert 636c8076 2003-09-06T05:36:57 Spelling and minor grammar fixes.
Alexandre Duret-Lutz 4de3f2b8 2003-08-24T02:16:31 * automake.in (file_contents_internal): Do not add newlines before empty actions.
Alexandre Duret-Lutz 0bdf8b9d 2003-08-24T02:00:58 * aclocal.in (write_aclocal): Take an output file and list of used macros in arguments and make up the file contents here. (trace_used_macros): New function. (add_file): Do not update $output. ($output): Delete. (MAIN): Call trace_used_macros. Then rewrite aclocal.m4 only for these traced macros. This should shorten aclocal.m4 by stripping out unused macros. * automake.texi (Invoking aclocal): Document ${AUTOM4TE}. * tests/aclibobj.test: Make sure configure.in exists by the time aclocal runs. * tests/aclocal8.test: New file. * tests/Makefile.am (TESTS): Add aclocal8.test. Suggested by Bruno Haible and Akim Demaille.
Akim Demaille 1e118082 2003-08-21T08:49:25 * lib/Automake/Configure_ac.pm (&find_configure_ac) (&require_configure_ac): Accept an optional directory argument. ($configure_ac): Remove. * aclocal.in, automake.in ($configure_ac): New. * lib/Automake/Variable.pm: Don't use $configure_ac, just configure.ac.
Akim Demaille 38fc65e9 2003-08-20T17:28:05 * lib/Automake/FileUtils.pm: More perldoc. (&up_to_date_p): New.
Raja R Harinath 206ac50a 2003-08-12T23:32:59 * lib/Automake/Condition.pm (strip): Replace loop with 'grep'. (not): Replace loop with 'map'. * lib/Automake/DisjConditions.pm (sub_conditions): Likewise. * lib/Automake/Item.pm (not_alwasy_defined_in_cond): Don't 'simplify' result of 'invert', since it's already in canonical form. * lib/Automake/Rule.pm (define): Replace loop with 'not_always_defined_in_cond'.
Raja R Harinath c5548fdc 2003-08-12T22:33:44 typos in comments
Alexandre Duret-Lutz 9a792314 2003-08-12T17:52:09 * lib/Automake/Item.pm, lib/Automake/ItemDef.pm: New files. * lib/Automake/Rule.pm, lib/Automake/RuleDef.pm: New files. * lib/Automake/Makefile.am (dist_perllib_DATA): Add them. * lib/Automake/VarDef.pm: Make this a subclass of Automake::ItemDef. (new): Adjust to call Automake::ItemDef::new. (comment, location, owner): Delete. Now inherited from ItemDef. * lib/Automake/Variable.pm: Make this a subclass of Automake::Item. (_new): Adjust to call Automake::Item::new. (name, def, rdef, _set, conditions, not_always_defined_in_cond): Delete. How inherited from Item, where `_set' is called `set'. * automake.in (SUFFIX_RULE_PATTERN): Delete. Now in Automake::Rule. (suffix_rules_default): Delete. Now Automake::Rule::_suffix_rules_default (suffixes): Delete. Now Automake::Rule::suffixes. (TARGET_AUTOMAKE, TARGET_USER): Delete. Now Automake::RuleDef::RULE_AUTOMAKE and Automake::RuleDef::RULE_USER. (%targets, %target_source, %target_name, %target_owner): Delete, replaced by the Rule and RuleDef classes. (dependencies, depend, actions): Delete. Now in Automake::Rule. (suffix_rules, register_suffix_rule): Likewise. (KNOWN_EXTENSIONS_PATTERN, accept_extensions): Likewise. (known_extensions_list): Delete. Now Automake::Rule::_known_extensions_list. (target_conditions): Delete. Now inherited by Automake::Rule from Automake::Item::conditions. (rule_define): Delete. Now Automake::Rule::define. Adjust all callers. (target_defined): Delete. Now Automake::Rule::rule. Adjust all callers. (initialize_per_input): Adjust to call Automake::Rule::reset. (err_target, err_cond_target, msg_cond_target, msg_target, reject_target): Delete. Now defined in Automake::Rule as err_rule, err_cond_rule, msg_cond_rule, msg_rule and reject_target. Adjust all callers. (handle_languages): Call suffix_rules_count. * tests/location.test: Adjust expected diagnostics. We now display $(EXEEXT) accurately.
Alexandre Duret-Lutz 90793a74 2003-08-09T22:34:30 Revert the fix for PR automake/291: * lib/Automake/Variable.pm (define): Do not warn about variables starting with `_' which are an issue on NEWS-OS 4.2R. According to Paul Eggert, NEWS-OS 4.2R is ten years old, the latest version was released on 1996 and is not in wide use. On the other hand, variables starting with `_' are mandatory in several situations, so diagnosing them is more annoying than useful. * tests/canon5.test: Do not use -Wno-portability. * tests/vars2.test: Delete. * tests/Makefile.am (TESTS): Remove vars2.test. Suggested by Jim Meyering.
Raja R Harinath 12e201a4 2003-08-09T20:11:45 * lib/Automake/DisjConditions.pm (ambiguous_p): Simplify slightly. * lib/Automake/tests/DisjConditions.pl (test_ambig): Test Automake::Disjunctions::ambiguous_p.
Alexandre Duret-Lutz 6af7d2d3 2003-08-09T12:04:10 ignore Config.pm
Alexandre Duret-Lutz a1be9812 2003-08-07T21:20:12 * lib/Automake/Variable.pm (condition_ambiguous_p): Move ... * lib/Automake/DisjConditions.pm (ambiguous_p): ... here. * automake.in (rule_define): Adjust usage. * lib/Automake/Variable.pm (_check_ambiguous_condition): Likewise.
Alexandre Duret-Lutz 7c50114c 2003-08-07T20:30:04 * lib/Automake/Options.pm: New file. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Options.pm. * automake.in (FOREIGN, GNU, GNITS, $default_strictness) ($default_strictness_name, $strictness, $strictness_name) (%options, %global_options, process_option_list) (set_strictness): Remove, now in Options.pm. (initialize_per_input): Call Automake::Options::reset. (handle_options, get_object_extension, get_object_extension) (handle_languages, handle_single_transform_list, handle_compile) (handle_texinfo_helper, handle_man_pages, handle_dist) (handle_configure, do_check_merge_target) (handle_factored_dependencies, handle_tests) (handle_minor_options, scan_autoconf_traces, check_cygnus) (lang_sub_obj, lang_c_rewrite, lang_c_finish, rule_define) (make_paragraphs, am_install_var, parse_arguments): Adjust to set and read options via the new interface.
Raja R Harinath 9ee3ce16 2003-08-07T11:21:45 * Makefile.am (maintainer-check): Update perllibdir. * lib/Automake/Makefile.am (Config.pm): Depend on Makefile too. (EXTRA_DIST): Add Config.in. * Makefile.in, lib/Automake/Makefile.in: Regenerate. * tests/defs.in (AUTOMAKE, ACLOCAL): Use absolute paths in $perllibdir.
Alexandre Duret-Lutz 271e79f4 2003-08-06T21:20:15 * lib/Automake/Config.in: New file. * lib/Automake/Makefile.am (nodist_perllib_DATA, do_subst, CLEANFILES): New variables. (Config.pm): New rule. * Makefile.am (maintainer-check): Adjust expected differences between automake.in and automake. * aclocal.in, automake.in: Use Automake::Config.
Raja R Harinath bbde2866 2003-08-03T21:17:32 * lib/Automake/Variable.pm (@EXPORT): Remove traverse_variable_recursively and require_variables_for_variable. (require_variables_for_variable, traverse_variable_recursively) (_traverse_variable_recursively_worker): Convert to Automake::Variable methods, remove support for being invoked with variable names, and rename to ... (requires_variables, traverse_recursively) (_do_recursive_traversal): ... these. (_value_as_list_recursive_worker, transform_variable_recursively): Update to reflect changes. * automake.in (handle_LIBOBJS, handle_ALLOCA) (handle_libraries, handle_ltlibraries, am_primary_prefixes): Likewise. (define_objects_from_sources): Fix typo in comment.
Raja R Harinath 797e4c6e 2003-08-02T04:27:03 * lib/Automake/Variables.pm (variables): Return a list of Automake::Variable instances, not a list of strings. (dump): Remove support for being invoked with a string. (variables_dump): Adapt to these changes. * automake.in (check_typos): Likewise. (am_primary_prefixes): Likewise.
Alexandre Duret-Lutz 2056a8f3 2003-07-27T21:25:17 * lib/Automake/Variable.pm (@EXPORT): Remove variable_dump. (variable_dump): Replace by ... (dump): ... this method. (rdef, _check_ambiguous_condition): Adjust to use ->dump. (define, variables_dump): Adjust to use Automake::Variable::dump
Alexandre Duret-Lutz cfea6a81 2003-07-24T21:26:56 Fix missing rebuilds during `make dist' with BSD make. * automake.in (generate_makefile): Do not push Makefile.in, and Makefile.am into DIST_COMMON here. * lib/am/configure.am (DIST_COMMON): Do it here, and use %MAKEFILE-AM% and %MAKEFILE-IN% so that items in DIST_COMMON actually match the targets. Prefix `configure' with `$(srcdir)/' to match the target. * tests/remake4.test: New file. * tests/Makefile.am (TESTS): Add remake4.test. Report from Akim Demaille.
Alexandre Duret-Lutz eaddaf5c 2003-07-24T08:05:03 regen
Derek R. Price ff8634e6 2003-07-16T19:10:07 * automake.in (scan_autoconf_traces): Handle AC_CONFIG_LINKS. (handle_configure): Handle adding AC_CONFIG_LINKS arguments to distclean targets (CONFIG_CLEAN_FILES makefile var). * NEWS: Note new handling of AC_CONFIG_LINKS. * automake.texi (Other things Automake recognizes): Ditto. * tests/Makefile.am (TESTS): Add new tests. * tests/conflnk.test: New test that links are cleaned on distclean. * tests/conflnk2.test: New test that source files for links are distributed. * Makefile.in: Regenerated. * aclocal.m4: Ditto. * configure: Ditto. * stamp-vti: Ditto. * version.texi: Ditto. * lib/Makefile.in: Ditto. * lib/Automake/Makefile.in: Ditto. * lib/Automake/tests/Makefile.in: Ditto. * lib/am/Makefile.in: Ditto. * m4/Makefile.in: Ditto. * tests/Makefile.in: Ditto.
Raja R Harinath 2b957614 2003-07-10T23:39:09 Avoid using refs as hash keys. * lib/Automake/Variable.pm ($_traversal): New. (reset): Reset $_traversal. (_new): New attribute 'scanned'. (%_vars_scanned): Remove. (traverse_variable_recursively) (traverse_variable_recursively_worker): Use $_traversal instead of %_vars_scanned to detect recursively defined variables.
Alexandre Duret-Lutz 05ab9332 2003-07-10T20:51:27 * lib/Automake/Variable.pm (define): Make clear the diagnostic about variable names starting with `_' is about *Make* variables.
Alexandre Duret-Lutz 4152bd4a 2003-07-09T22:09:28 * aclocal.in: Use Automake::FileUtils. (parse_arguments, scan_configure, scan_m4_files): Never call "die" to print an error message. Use print and exit. * automake.in: Use Automake::FileUtils. * lib/Automake/General.pm ($debug, $help, $tmp, $verbose, $version, &debug, &getopt, &mktmpdir, &verbose): Remove. (END): Do not massage Perl's exit code. Do not clean any temporary directory. (find_file, mtime, update_file, xsystem, contents): Move to ... * lib/Automake/FileUtils.pm: ... this new file. Adjust to report errors using Channels. (handle_exec_errors, xqx): New functions, from Autoconf. * lib/Automake/Makefile.am (dist_perllib_DATA): Add FileUtils.pm.
Alexandre Duret-Lutz 1a37abc5 2003-07-09T22:07:10 * lib/Automake/Variable.pm (_traverse_variable_recursively_worker): Return the empty list on recursively defined variable. This supersedes my change of 2003-07-02.
Akim Demaille 164a3583 2003-07-06T19:30:46 * lib/am/subdirs.am (RECURSIVE_TARGETS): Move install-recursive, install-exec-recursive, install-data-recursive and uninstall-recursive addition to... * lib/am/texinfos.am: here. * lib/am/texinfos.am, lib/am/subdirs.am: Remove the .PHONY declaration of RECURSIVE_TARGETS.
Akim Demaille d23e6821 2003-07-06T19:27:29 * automake.in (&define_files_variable): New. (&handle_texinfo_helper): Move the handling of user variables from here, to... (&handle_texinfo): here. This is to balance the size of these functions, and to match the convention of other _helper functions. (&handle_texinfo_helper): Use &define_files_variable. Move some code to use less variables. Rename $info_cursor as $texi. (&handle_texinfo): Do not call handle_texinfo_helper if there are no TEXINFOS. * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps and html. Remove *-recursive targets from .PHONY, they are part of $(RECURSIVE_TARGETS) anyway. (install-info, mostlyclean-aminfo): Are .PHONY.
Akim Demaille f9cef4a3 2003-07-06T07:42:36 * automake.in (&define_files_variable): New. (&handle_texinfo_helper): Move the handling of user variables from here, to... (&handle_texinfo): here. This is to balance the size of these functions, and to match the convention of other _helper functions. (&handle_texinfo_helper): Use &define_files_variable. Move some code to use less variables. Rename $info_cursor as $texi. (&handle_texinfo): Do not call handle_texinfo_helper if there are no TEXINFOS. * lib/am/texinfos.am: Sort the occurrences of dvi, info, pdf, ps and html. Remove *-recursive targets from .PHONY, they are part of $(RECURSIVE_TARGETS) anyway. (install-info, mostlyclean-aminfo): Are .PHONY.
Alexandre Duret-Lutz 21af290f 2003-07-02T21:57:51 * lib/Automake/Variable.pm (_traverse_variable_recursively_worker): Do not return undef when a variable is recursively defined, this causes warnings all over the place. Return the empty string instead.
Alexandre Duret-Lutz 41740be4 2003-06-30T06:35:55 * automake.in ($SUBST_REF_PATTERN): Do not define. (%gen_varname): Move to Variable.pm, as %_gen_varname. (initialize_per_input): Do not clean %gen_varname. (handle_options, check_libobjs_sources, handle_source_transform, handle_LIBOBJS, handle_ltlibraries, handle_texinfo_helper, handle_man_pages, handle_dist, handle_subdirs, handle_gettext, am_install_var): Adjust to use value_as_list_recursive, loc_and_value_as_list_recursive, and has_conditional_contents. (require_file_with_macro): Accept an Automake::Variable as argument. (traverse_variable_recursively, traverse_variable_recursively_worker, gen_varname, transform_variable_recursively): Move ... * lib/Automake/Variable.pm (traverse_variable_recursively, _traverse_variable_recursively_worker, _gen_varname, transform_variable_recursively): ... here. * automake.in (variable_conditionally_defined, variable_value_as_list_recursive_worker, variable_value_as_list_recursive variable_loc_and_value_as_list_recursive): Move ... * lib/Automake/Variable.pm (has_conditional_contents, _value_as_list_recursive_worker, value_as_list_recursive, loc_and_value_as_list_recursive): ... here. (reset): Reset %_gen_varname.
Akim Demaille 782464d3 2003-06-25T14:01:24 * automake.texi (Top): Use @copying and @insertcopying. Make Alexandre an author. * automake.in ($gen_copyright): Add the "(C)" to Copyright. * lib/depcomp: Likewise.
Alexandre Duret-Lutz 5b94845c 2003-06-23T21:39:54 * lib/Automake/Variable.pm (vardef, rvardef, set_seen): New functions. (variable_defined, examine_variable): Remove. (%_ac_macro_for_var): Add an entry for ALLOCA. (require_variables): Use vardef instead of variable_defined. Do not use _cvar. * automake.in (generate_makefile): Do not push $(SOURCE) into @sources. Use define_pretty_variable to define SOURCES. (handle_LIBOBJS, handle_ALLOCA): Use require_variables_for_variable to require LIBOBJS, LTLIBOBJS and ALLOCA. (handle_programs, handle_ltlibraries): Do not define an empty _DEPENDENCIES or _LDFLAGS variable when none is defined. (define_configure_variable): Do not check whether the variable already exists (it's Automake::Variable::define's job). (require_build_directory): Likewise, do not check the existence of am__dirstamp. (generate_makefile, handle_options, handle_languages) (check_libobjs_sources, handle_single_transform_list) (traverse_variable_recursively_worker, handle_source_transform) (handle_lib_objects, handle_LIBOBJS, handle_compile) (handle_libtool, handle_programs, handle_libraries) (handle_ltlibraries, check_typos, handle_texinfo_helper) (handle_man_pages, handle_tags, handle_dist, handle_subdirs) (scan_aclocal_m4, handle_gettext, handle_footer, handle_install) (handle_all, do_check_merge_target, handle_clean, lang_c_finish) (handle_tests, lang_yacc_target_hook, define_pretty_variable) (define_compiler_variable, define_linker_variable) (make_paragraphs, am_primary_prefixes, am_install_var): Adjust to call var, vardef, or set_seen, instead of variable_defined. Use set_seen only for variables which are actually checked by check_typos. * tests/target.test: Delete. * tests/alloca.test, tests/alloca2.test: New files. * tests/libobj3.test: Check error message. * tests/distcom4.test: Make sure configure is in DIST_COMMON. This replace confdist.test. * tests/Makefile.am (TESTS, XFAIL_TESTS): Remove target.test. (TESTS): Add alloca.test and alloca2.test. Remove confdist.test.
Alexandre Duret-Lutz 97aee5d7 2003-06-20T20:38:58 * automake.in (handle_dist): Delete DIST_COMMON before redefining it. Bug report from Akim Demaille. (rewrite_inputs_into_dependencies): Make sure we always return something, even when $add_srcdir is 0. * tests/distcom4.test, tests/distcom5.test: New files. * tests/Makefile.am (TESTS): Add distcom4.test and distcom5.test.
Alexandre Duret-Lutz 7be4b03a 2003-06-03T21:09:22 * lib/Automake/Configure_ac.pm (search_configure_ac, find_configure_ac): Rename as ... (find_configure_ac, require_configure_ac): ... these. * aclocal.in (scan_configure): Adjust call to require_configure_ac. * automake.in (scan_autoconf_files): Likewise. Suggested by Tim Van Holder.
Alexandre Duret-Lutz 9f02b686 2003-06-02T23:35:00 * alocal.in: Use Automake::Configure_ac. ($configure_ac): Delete. (scan_configure): Adjust use of find_configure_ac; * automake.in: Use Automake::Configure_ac. ($configure_ac): Delete. (scan_autoconf_files): Adjust use of find_configure_ac; * lib/Automake/Configure_ac.pm: New file. * lib/Automake/General.pm (find_configure_ac): Delete. Now replaced by Automake::Configure_ac::search_configure_ac. * lib/Automake/Makefile.am (dist_perllib_DATA): Add Configure_ac.pm. * lib/Automake/Variable.pm: Use Automake::Configure_ac. (require_variables): Adjust use of $configure_ac.
Akim Demaille f68696e2 2003-06-02T07:08:40 * lib/am/texi-vers.am, lib/am/subdirs.am, lib/am/scripts.am, * lib/am/remake-hdr.am, lib/am/python.am, lib/am/progs.am, * lib/am/program.am, lib/am/multilib.am, lib/am/mans.am, * lib/am/mans-vars.am, lib/am/ltlibrary.am, lib/am/ltlib.am, * lib/am/lisp.am, lib/am/libtool.am, lib/am/library.am, * lib/am/lang-compile.am, lib/am/java.am, lib/am/header.am, * lib/am/header-vars.am, lib/am/footer.am, lib/am/depend.am, * lib/am/dejagnu.am, lib/am/data.am, lib/am/compile.am, * lib/am/clean.am, lib/am/clean-hdr.am, lib/am/check.am, * lib/am/ansi2knr.am, lib/am/Makefile.am, lib/Makefile.am, * m4/strip.m4, m4/sanity.m4, m4/runlog.m4, m4/regex.m4, * m4/python.m4, m4/protos.m4, m4/options.m4, m4/obsolete.m4, * m4/obsol-lt.m4, m4/obsol-gt.m4, m4/multi.m4, m4/missing.m4, * m4/minuso.m4, m4/maintainer.m4, m4/lispdir.m4, m4/lex.m4, * m4/install-sh.m4, m4/header.m4, m4/gcj.m4, m4/dmalloc.m4, * m4/depout.m4, m4/cond.m4, m4/ccstdc.m4, m4/auxdir.m4, m4/as.m4, * m4/Makefile.am: White space changes and Copyright updates.
Alexandre Duret-Lutz 4f299408 2003-05-29T19:05:55 * lib/Automake/Variable.pm (check_defined_unconditionally): Add the $parent_cond argument. (output): Use $self->name in diagnostic not $self. (variable_value_as_list): Rename as ... (value_as_list): ... this. Declare as a method. Take a $parent_cond argument and pass it to check_defined_unconditionally. Do not call variable_assert, now that this is a method. (variable_assert): Delete (unused). * automake.in (traverse_variable_recursively_worker): Adjust to use check_defined_unconditionally and value_as_list as a methods.
Alexandre Duret-Lutz 66fdf15e 2003-05-29T17:34:52 * lib/Automake/Variable.pm (output): Declare as a method, since it is only used this way. (define): Fix documentation of $cond. Suggested by Raja R. Harinath.