Tom Tromey [Sun, 10 Jan 1999 21:06:52 +0000 (21:06 +0000)]
1999-01-10 Alexandre Oliva <oliva@dcc.unicamp.br>
* automake.in (handle_configure, stamp_dir): create only one stamp
file per header, instead of one in the top-level directory and one
in the directory that contains the header.
Tom Tromey [Sun, 10 Jan 1999 21:00:56 +0000 (21:00 +0000)]
1999-01-10 Tom Tromey <tromey@cygnus.com>
* automake.in (objc_extensions): New sub.
(handle_dependencies): Only generate dependency-tracking code for
ObjC when ObjC source seen.
1998-12-22 Marcus G. Daniels <mgd@chama.santafe.edu>
* automake.in (handle_dependencies): Transform EXT & PFX in
Objective C case.
1998-12-11 Marcus G. Daniels <mgd@chama.santafe.edu>
* automake.in: Register Objective C language.
(finish_languages): Consider Objective C to be non_c.
(lang_objc_rewrite, lang_objc_finish): New functions.
(resolve_linker): Recognize OBJCLINK before LINK.
Tom Tromey [Sun, 10 Jan 1999 20:39:23 +0000 (20:39 +0000)]
* automake.in (handle_texinfo): Set $conf_pat correctly when
config_aux_dir not used.
(handle_texinfo): Run maintainer-clean-aminfo rules in srcdir.
From Erez Zadok.
* texi-vers.am (maintainer-clean-@VTI@): Prefix file names with
$(srcdir). From Erez Zadok.
($(srcdir)/stamp-@VTI@): Don't run mdate-sh from srcdir.
Tom Tromey [Sun, 10 Jan 1999 18:12:43 +0000 (18:12 +0000)]
1999-01-10 Tom Tromey <tromey@cygnus.com>
* remake-hdr.am: Provide `else' clause for each `if'.
1999-01-10 Alexandre Oliva <oliva@dcc.unicamp.br>
* remake-hdr.am: recover from removal of config headers, and try
to get real timestamps, which is useful for CVS files
Tom Tromey [Thu, 7 Jan 1999 11:53:12 +0000 (11:53 +0000)]
Based on report from Marcus G. Daniels. Fixes include.test.
* automake.in (generate_makefile): Call read_main_am_file.
(read_main_am_file): New sub.
(read_am_file): Moved header generation code into
read_main_am_file.
Tom Tromey [Thu, 7 Jan 1999 11:19:04 +0000 (11:19 +0000)]
1999-01-06 Gary V. Vaughan <garyv@oranda.demon.co.uk>
* automake.in (require_file_internal): qub perl on win32 hangs
on a call to unlink for a non-existant file, which in turn causes
tests/symlink.test to hang on win32. Check that the file exists
before unlinking it!
Tom Tromey [Wed, 6 Jan 1999 13:11:37 +0000 (13:11 +0000)]
1998-12-24 Thomas Tanner <tanner@gmx.de>
* automake.in (handle_ltlibraries): check whether -module was
defined for libraries names without 'lib' prefix.
Tom Tromey [Wed, 6 Jan 1999 13:01:23 +0000 (13:01 +0000)]
Fri Dec 11 10:20:42 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* compile_f_c_cxx.test: Change to use F77 and F77LINK instead of
FC and FLINK, respectively.
* flibs.test: same
* fnoc.test: same
* fo.test: same
* fonly.test: same
* link_f_c.test: same
* link_f_c_cxx.test: same
* link_f_cxx.test: same
* link_f_only.test: same
Fri Dec 11 10:23:17 1998 Matthew D. Langston <langston@SLAC.Stanford.EDU>
* automake.in, automake.texi: Change all of the Fortran 77 code to
use the new `F77' prefix instead of the older `FC' prefix.
Specifically this changed FC, FCOMPILE, LTFCOMPILE, FLINK and FLD
to F77, F77COMPILE, LTF77COMPILE, F77LINK and F77LD, respectively.
Tom Tromey [Mon, 21 Dec 1998 13:32:54 +0000 (13:32 +0000)]
1998-12-21 Alexandre Oliva <oliva@dcc.unicamp.br>
* depend2.am: don't use .p and .P for dependencies; it loses on
case-insensitive filesystems.
Reported by Henrik Frystyk Nielsen <frystyk@w3.org>
Tom Tromey [Mon, 21 Dec 1998 13:22:53 +0000 (13:22 +0000)]
1998-12-20 Thomas Tanner <tanner@gmx.de>
* automake.in (handle_libraries, handle_ltlibraries): relax the
name checking to not enforce `^lib.*' for the sake of building libtool
modules.
Tom Tromey [Mon, 21 Dec 1998 13:11:53 +0000 (13:11 +0000)]
* automake.in (do_one_merge_target): Special case
install-data-hook and install-exec-hook.
(handle_merge_targets): Removed install-data-hook and
install-exec-hook code. Test insthook.test.
Tom Tromey [Fri, 11 Dec 1998 00:32:30 +0000 (00:32 +0000)]
Bug report from Paul D. Smith:
* automake.in (handle_merge_targets): Set
AM_INSTALL_PROGRAM_FLAGS, not INSTALL_PROGRAM.
* header-vars.am (INSTALL_PROGRAM): Added
AM_INSTALL_PROGRAM_FLAGS.
Tom Tromey [Tue, 1 Dec 1998 16:02:48 +0000 (16:02 +0000)]
* automake.texi (Dist): Documented GZIP_ENV.
* automake.in (handle_dist): Define and use GZIP_ENV, not GZIP.
(initialize_global_constants): Use GZIP_ENV, not GZIP.
Tom Tromey [Fri, 27 Nov 1998 22:55:41 +0000 (22:55 +0000)]
* automake.in (quote_cond_val): Use "\002", not '\002', to
represent null string.
(unquote_cond_val): Removing all "\002" strings from result. Test
cond7.test.
Tom Tromey [Wed, 18 Nov 1998 12:11:17 +0000 (12:11 +0000)]
* automake.in (finish_languages): Define CLD; use it in LINK
definition.
(lang_cxx_finish): Define CXXLD; use it in CXXLINK definition.
(lang_f77_finish): Define FLD; use it in FLINK definition.
(lang_ppf77_finish): Likewise.
(lang_ratfor_finish): Likewise.
Tom Tromey [Tue, 10 Nov 1998 16:37:50 +0000 (16:37 +0000)]
* automake.in (scan_one_configure_file): Recognize
AC_F77_LIBRARY_LDFLAGS, and recognize FLIBS as a configure
substitution.
* automake.texi: Fix several little Fortran 77 references to now
point to autoconf.texi. Rename associated Fortran 77 macros from
`AM_' to `AC_'.
Tom Tromey [Fri, 30 Oct 1998 14:14:59 +0000 (14:14 +0000)]
1998-10-29 Gary V. Vaughan <gvaughan@oranda.demon.co.uk>
* automake.in (parse_arguments): Fixed type of -c for copying
1998-10-30 Tom Tromey <tromey@cygnus.com>
* automake.texi (Install): Documented DESTDIR more fully. From
Jeff Garzik.
Tom Tromey [Wed, 28 Oct 1998 00:47:31 +0000 (00:47 +0000)]
* Makefile.am (maintainer-check): Changed code to be acceptable to
bash 2.01.1.
* automake.in (do_one_clean_target): Special-case config.status.
Report from Jeff Garzik.
Tom Tromey [Fri, 16 Oct 1998 10:09:28 +0000 (10:09 +0000)]
* Makefile.am (EXTRA_DIST): Removed automake.spec.in. From
Matthew D. Langston.
(info_TEXINFOS): Removed am-f77.texi.
* automake.in (handle_ltlibraries): Allow `noinst' LTLIBRARIES.
These are libtool convenience libraries.
Tom Tromey [Tue, 13 Oct 1998 18:57:09 +0000 (18:57 +0000)]
F77 additions from Matthew D Langston
* m4/f77.m4: New file.
* m4/Makefile.am (m4data_DATA): Added f77.m4.
* automake.in (resolve_linker): Put the Fortran 77 linker where it
needs to be.
* automake.in (lang_f77_finish): Add support for Fortran 77.
* automake.in (f77_extensions): New helper function for function
`lang_f77_finish'.
* automake.in (lang_f77_rewrite): Change to return success.
* automake.in (scan_one_configure_file): Add test for the Fortran
77 compiler.
* automake.in (finish_languages): Changed tests for "C++ only" to
"C++ and/or Fortran 77 only", and renamed `all_cxx' to `non_c'.
* automake.in: Registered the ppf77 language (`.F' extension) for
preprocessed Fortran 77.
* automake.in: Registered the ratfor language (`.r' extension).
* automake.in: Registered Fortran 77 header files with the "header
language" (`.inc' extension).
* automake.texi: Added several new index entries.
* automake.texi:
- Add `@ovindex' (output variable index).
- Merge `@defmac' (Autoconf macros) and `@ovindex' to the General
Index.
* automake.texi (Macros):
- Changed the `@table @code' list of macros to `@defmac'.
- Add `AC_PROG_FC' and `MDL_F77_LIBRARY_LDFLAGS' to the list.
* automake.texi (C++): Change `@table' to `@vtable'.
* automake.texi (Fortran 77): Add Fortran 77 documentation.
Tom Tromey [Tue, 13 Oct 1998 18:51:23 +0000 (18:51 +0000)]
F77 changes + some random fixes
* libobj7.test: Updated to reflect minor change in automake (test
wasn't resilient enough).
* instman.test: Updated to reflect fact that mkinstalldirs will be
in distribution.
* cxxonly.test: Removed.
* Makefile.am (TESTS): Added compile_f_c_cxx.test.
* compile_f_c_cxx.test: New file.
* Makefile.am (TESTS): Added flink.test link_c_cxx.test
link_f_c.test link_f_c_cxx.test link_f_cxx.test link_f_only.test.
Removed flink.test.
* flibs.test: New File.
* link_c_cxx.test: New file.
* link_f_c.test: New file.
* link_f_c_cxx.test: New file.
* link_f_cxx.test: New file.
* link_f_only.test: New file.
* Makefile.am (TESTS): Add cxxonly.test, fonly.test, flink.test,
fnoc.test and fo.test.
* cxxonly.test: New file.
* fonly.test: New file.
* flink.test: New file.
* fnoc.test: New file.
* fo.test: New file.
Tom Tromey [Fri, 9 Oct 1998 11:10:16 +0000 (11:10 +0000)]
* m4/winsz.m4 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
3-argument form of AC_DEFINE.
* m4/regex.m4 (AM_WITH_REGEX): Use 3-argument form of AC_DEFINE.
* m4/ptrdiff.m4 (AM_TYPE_PTRDIFF_T): Use 3-argument form of
AC_DEFINE.
* m4/protos.m4 (AM_C_PROTOTYPES):Use 3-argument form of
AC_DEFINE.
* m4/obstack.m4 (AM_FUNC_OBSTACK): Use 3-argument form of
AC_DEFINE.
* m4/init.m4 (AM_INIT_AUTOMAKE): Use 3-argument form of
AC_DEFINE.
* m4/dmalloc.m4 (AM_WITH_DMALLOC): Use 3-argument form of
AC_DEFINE.
Tom Tromey [Mon, 5 Oct 1998 23:11:10 +0000 (23:11 +0000)]
* depend2.am (%.lo): Handle case where compiler does not put space
before ":". From Raja R Harinath.
* automake.in (scan_one_configure_file): AC_CONFIG_HEADER is not
obsolete; it simply isn't preferred with automake.
(scan_one_configure_file): Likewise for AC_DECL_YYTEXT and
AC_PROG_LEX.
* automake.in (am_line_error): Handle case where variable defined
in configure.in. Fixes test badline.test.
(%configure_vars): Redefined meaning of values.
(scan_one_configure_file): Set $configure_vars values
appropriately.
Tom Tromey [Sat, 3 Oct 1998 11:28:00 +0000 (11:28 +0000)]
Bug fix from Jim Blandy:
* depend2.am (%.lo): When editing the dependency file to add the
.lo file to the targets, allow for whitespace between the end of
the filename and the colon. Some compilers (notably the Cygnus
release of GCC 2.7-97r1) put space there: "alist.o : ..."
Tom Tromey [Thu, 1 Oct 1998 00:23:33 +0000 (00:23 +0000)]
Some bug fixes, plus a complete rewrite of source file handling:
* texinfos.am (install-info-am): Handle case where INFO_DEPS is
empty. Reported by Andrew Cagney.
(uninstall-info): Likewise.
(dist-info): Likewise.
* automake.in (handle_texinfo): Error if user tries to generate
HTML.
* automake.in (do_one_clean_target): Don't push previous clean
target if this target is `mostly'. Report from Raja R Harinath.
* subdirs.am (mostlyclean-recursive ...): Build local_target, not
target. From Raja R Harinath.
Completely changed how languages and source files are handled:
* automake.in: Call register_language for each language.
(lang_c_rewrite): New function.
(lang_cxx_rewrite): Likewise.
(lang_header_rewrite): Likewise.
(lang_yacc_rewrite): Likewise.
(lang_yaccxx_rewrite): Likewise.
(lang_lex_rewrite): Likewise.
(lang_lexxx_rewrite): Likewise.
(lang_asm_rewrite): Likewise.
(lang_fortran_rewrite): Likewise.
(register_language): Likewise.
(extension_map): New global.
(language_map): Likewise.
(resolve_linker): New function.
(handle_single_transform_list): Rewrote to use lang_X_rewrite
functions. Changed meaning of first argument.
(initialize_per_input): Removed seen_any_source. Initialize
language_scratch, extension_seen. Removed cxx_extensions,
seen_c_source, dir_holds_headers, dir_holds_sources.
(handle_source_transform): Don't compute $objpat. Pass $obj
directly to handle_single_transform_list.
(handle_built_sources): Fixed call to
handle_single_transform_list.
(lang_c_finish): New function.
(lang_cxx_finish): Likewise.
(lang_header_finish): Likewise.
(lang_yacc_finish): Likewise.
(lang_yaccxx_finish): Likewise.
(lang_lex_finish): Likewise.
(lang_lexxx_finish): Likewise..
(lang_asm_finish): Likewise.
(lang_fortran_finish): Likewise.
(yacc_lex_finish_helper): Likewise.
(libtool_compiler): Likewise.
(saw_extension): New function.
(handle_lib_objects_cond): Use saw_extension, not old variables.
(handle_yacc_lex_cxx): Removed.
(finish_languages): New function.
(get_object_extension): Don't set dir_holds_sources.
(handle_headers): Don't set dir_holds_headers. Instead, call
saw_extension.
(saw_sources_p): New function.
(handle_tags): Use it.
(handle_dependencies): Likewise.
(cxx_extensions): New function.
(handle_dependencies): Use it.
(generate_makefile): Call finish_languages, not
handle_yacc_lex_cxx.