Jim Meyering [Sun, 6 Aug 2000 13:34:09 +0000 (13:34 +0000)]
(handle_dependencies): Set $require_file_found{'depcomp'}
if the depcomp file exists, before calling require_config_file on
`depcomp'. This makes require_file_internal skip its buggy existence
test that would make automake fail (with `required file `lib/depcomp'
not found') when AC_CONFIG_AUX_DIR is not set.
This change change does not fix the existing bug where, if `depcomp'
is not present in the build directory (at the top level), automake
still gives the inaccurate diagnostic about *lib*/depcomp rather
than ./depcomp.
Jim Meyering [Sun, 6 Aug 2000 12:36:53 +0000 (12:36 +0000)]
(AM_CONFIG_HEADER): Fix typo in last change:
add missing closing bracket and closing parenthesis.
Don't quote the first argument to AC_OUTPUT_COMMANDS.
Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt.
Tom Tromey [Fri, 4 Aug 2000 17:32:33 +0000 (17:32 +0000)]
Idea from Nicolas Thiery:
* automake.texi (Tests): Document DEJATOOL as a list.
* dejagnu.am (RUNTESTDEFAULTFLAGS): Use $$tool, not $(DEJATOOL).
(check-DEJAGNU): Run runtest in a loop.
Akim Demaille [Wed, 2 Aug 2000 08:59:15 +0000 (08:59 +0000)]
* m4: Quote properly the name of the macros being defined.
Use `#' instead of `dnl' where appropriate.
* m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just
quote.
Don't quote passive characters.
Pull the AC_PREREQ outside the macro.
* m4/init.m4: Pull the AC_PREREQ outside the macro.
Jim Meyering [Fri, 5 May 2000 08:56:36 +0000 (08:56 +0000)]
2000-05-04 Akim Demaille <akim@epita.fr>
AM_INIT_AUTOMAKE is no longer optional, so don't look for
`VERSION=' and `PACKAGE='.
* automake.in (seen_package, seen_version): Remove initializations of
unnecessary variables.
(scan_one_configure_file): Don't set them.
(scan_configure): Don't use them.
Tom Tromey [Mon, 1 May 2000 21:03:23 +0000 (21:03 +0000)]
2000-05-01 Pavel Roskin <pavel_roskin@geocities.com>
* install2.test: Prevent automake from looking into .. and ../..
by using AC_CONFIG_AUX_DIR(.) in configure.in
* pr19.test: Likewise
* subobj3.test: Likewise
Jim Meyering [Mon, 1 May 2000 10:57:08 +0000 (10:57 +0000)]
From Akim Demaille <akim@epita.fr>
* m4/init.m4 (AC_PROVIDE_IFELSE): If it is not defined, do it.
(AM_INIT_AUTOMAKE): Update the writing conventions.
Quote the arguments properly.
Add a few missing `dnl'.
Use AC_PROVIDE_IFELSE.
Tom Tromey [Sun, 19 Mar 2000 23:33:42 +0000 (23:33 +0000)]
Fix for test nodepcomp.test:
* automake.in (require_file_internal): Use readlink on symlinks.
Only unlink file if we are going to try to add it again.
(handle_dependencies): Require `depcomp' here.
(scan_configure): Don't require `depcomp'.
* automake.in (handle_configure): Remove $(BUILT_SOURCES) from
the rule to remake Makefile, whether $use_dependencies is true
or not. This was a historical one and doesn't make sense any
longer.
Tom Tromey [Sun, 19 Mar 2000 21:54:13 +0000 (21:54 +0000)]
Fix for PR automake/45:
* automake.texi (configure): Mention requirement to run
AM_INIT_AUTOMAKE.
(Requirements): Removed most text.
* automake.in (seen_init_automake): New global.
(scan_configure): Error if AM_INIT_AUTOMAKE not seen.
(scan_one_configure_file): Don't support AM_INIT_GUILE_MODULE.
Set seen_init_automake if needed.
Tom Tromey [Sun, 19 Mar 2000 21:04:46 +0000 (21:04 +0000)]
Fix for PR automake/41:
* automake.in (require_file_found): New global.
(require_file_internal): Set require_file_found entry.
(handle_texinfo): Require file any number of times.
Jim Meyering [Sat, 4 Mar 2000 08:56:13 +0000 (08:56 +0000)]
(dist-info):
Don't use `ln' (which was just a space optimization anyway) to
populate $(distdir). Otherwise, the dist rules that change
permissions would end up affecting the master sources.
Jim Meyering [Sat, 4 Mar 2000 08:55:19 +0000 (08:55 +0000)]
(handle_dist_worker) [generating rules for distdir]:
Don't use `ln' (which was just a space optimization anyway) to
populate $(distdir). Otherwise, the dist rules that change
permissions would end up affecting the master sources.
Tom Tromey [Wed, 2 Feb 2000 04:29:01 +0000 (04:29 +0000)]
2000-02-02 Assar Westerlund <assar@sics.se>
* automake.in (handle_single_transform_list): do not use $< which
is not handled by all non-GNU makes. Instead do explicit sh code
testing for the file in this directory and srcdir. Based on a
suggestion by Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Tom Tromey [Sun, 19 Dec 1999 10:37:58 +0000 (10:37 +0000)]
* automake.in (handle_dist_worker): Expand DIST_COMMON under all
conditions.
(require_file_internal): Corrected arguments to second invocation
of maybe_push_required_file.
Tom Tromey [Sun, 19 Dec 1999 10:00:06 +0000 (10:00 +0000)]
Fix for PR automake/9:
* automake.in (make_dirs, make_dirs_set): New globals.
(is_make_dir): New function.
(handle_configure): Use it.
(require_file_internal): Push file if there is no Makefile in its
directory.
(initialize_per_input): Initialize handle_dist_run.
(push_dist_common): Inspect handle_dist_run.
(handle_dist): Set handle_dist_run. Push items from
configure_dist_common onto dist_common if appropriate.
(configure_dist_common): New global.
(scan_configure): Set it.
(maybe_push_required_file): New function.
(require_file_internal): Use it.
Tom Tromey [Tue, 14 Dec 1999 06:11:31 +0000 (06:11 +0000)]
Fix for PR automake/30 and PR automake/23. Fixes test
suffix3.test.
* automake.in (initialize_per_input): Initialize
source_suffix_pattern.
(derive_suffix): New function.
(handle_single_transform_list): Call it.
Tom Tromey [Fri, 10 Dec 1999 07:49:32 +0000 (07:49 +0000)]
* automake.in (initialize_global_constants): If unreadable by
owner, make it readable by owner regardless of number of links.
Fixes more of install2.test.
* missing: Try to see if gnutar or gtar exist before invoking
them.
* m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
install_sh value. Look for install-sh and install.sh in a
somewhat more sensible way. Fixes test install2.test. Partially
from Jim Meyering.