]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Initial draft of --cygnus mode.
authorTom Tromey <tromey@redhat.com>
Thu, 7 Nov 1996 22:47:12 +0000 (22:47 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 7 Nov 1996 22:47:12 +0000 (22:47 +0000)
Bug fixes for config.h in subdir

19 files changed:
ChangeLog
Makefile.am
Makefile.in
TODO
automake.in
dejagnu.am
lib/am/Makefile.am
lib/am/dejagnu.am
lib/am/remake-hdr.am
lib/am/subdirs.am
lib/am/texinfos.am
m4/Makefile.in
remake-hdr.am
remake-subd.am
remake.am
subdirs.am
tests/Makefile.in
texi-vars.am [deleted file]
texinfos.am

index 748e3423e4397ac115c2fdf892123220c8e51d74..67fda09231afd026d6e14e964eab6816963a0ec0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,59 @@
+Thu Nov  7 14:49:16 1996  Tom Tromey  <tromey@cygnus.com>
+
+       * remake.am ($(srcdir)/Makefile.in): Pass @ARGS@ to automake.
+       * remake-subd.am ($(srcdir)/Makefile.in): Pass @ARGS@ to
+       automake.
+       * automake.in (handle_configure): Pass --cygnus when running
+       automake again.
+
+       * remake-hdr.am ($(srcdir)/stamp-h.in): Depend on @FILES@, not
+       ACCONFIG, CONFIG_TOP, CONFIG_BOT.
+       * automake.in (handle_aclocal_m4): Always find aclocal.m4 in
+       top_srcdir.
+       (handle_configure): Don't define ACCONFIG, CONFIG_TOP, CONFIG_BOT;
+       instead substitute files directly.
+
+Wed Nov  6 10:22:26 1996  Tom Tromey  <tromey@cygnus.com>
+
+       * remake-hdr.am (stamp-h): Look in top_builddir for
+       config.status.
+       ($(srcdir)/stamp-h.in): Look in top_srcdir for configure.in.
+
+Thu Oct 31 10:55:59 1996  Tom Tromey  <tromey@cygnus.com>
+
+       * texinfos.am (.texi.dvi): Set MAKEINFO when running texi2dvi.
+       From Jim Meyering.
+
+       * automake.in (handle_texinfo): Push install-info-am, not
+       install-info.
+       (handle_merge_targets): Handle no-installinfo option.
+
+       * texinfos.am (install-info-am): Renamed from install-info.
+
+       * automake.in (handle_subdirs): Include install-info-recursive if
+       no-installinfo given.
+
+       * subdirs.am: Include INSTALLINFO token.
+
+       * automake.in (handle_texinfo): Explicitly define MAKEINFO,
+       TEXI2DVI.
+       (cygnus_mode): New global.
+       (handle_dist_worker): Pass --cygnus to automake.
+       (initialize_global_constants): Document --cygnus.
+       (check_cygnus): New sub.
+       (handle_texinfo): Don't require texinfo.tex in Cygnus mode.
+
+       * texi-vars.am: Removed.
+
+       * dejagnu.am (check-DEJAGNU): Don't define rootme.
+
+       * automake.in (handle_tests): Define EXPECT, RUNTEST.
+
+       * dejagnu.am (EXPECT): Removed.
+       (RUNTEST): Removed.
+
+       * automake.in (define_program_variable): New sub.
+
 Mon Oct 28 10:43:48 1996  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (handle_dependencies): Use -M, not -MM, for C++
index a689a2651e8650ed973f89fbaa1b782ce3b28857..53cc173f25a72fd3ef6c7eac4bf4ba68fb3ac3b3 100644 (file)
@@ -14,7 +14,7 @@ compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am footer.am \
 header.am header-vars.am kr-extra.am libs.am library.am \
 mans-vars.am program.am progs.am remake-hdr.am remake-subd.am \
 remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
-texi-vers.am texi-vars.am texinfos.am libs-clean.am \
+texi-vers.am texinfos.am libs-clean.am \
 progs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
 ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
index 043db4d9542a075383c255d7b3f04cb445f95a6f..d691e94ece80b667b5d5b045f9fda133b1259e6e 100644 (file)
@@ -52,7 +52,7 @@ compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am footer.am \
 header.am header-vars.am kr-extra.am libs.am library.am \
 mans-vars.am program.am progs.am remake-hdr.am remake-subd.am \
 remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
-texi-vers.am texi-vars.am texinfos.am libs-clean.am \
+texi-vers.am texinfos.am libs-clean.am \
 progs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
 ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
@@ -65,12 +65,11 @@ EXTRA_DIST = acinstall $(pkgdata_DATA)
 ETAGS_ARGS = automake.in aclocal.in --lang=none \
  --regex='/^@node[ \t]+\([^,]+\)/\1/' automake.texi
 TAGS_DEPENDENCIES = automake.in aclocal.in automake.texi
-ACLOCAL = aclocal.m4
+ACLOCAL = $(top_srcdir)/aclocal.m4
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
 CONFIG_CLEAN_FILES =  automake aclocal
 SCRIPTS =  $(bin_SCRIPTS) $(pkgdata_SCRIPTS)
 
-
 MAKEINFO = makeinfo
 TEXI2DVI = texi2dvi
 INFOS = automake.info automake.info[-0-9]*
@@ -101,14 +100,14 @@ aclocal.m4: configure.in
        cd $(srcdir) && aclocal
 
 $(srcdir)/Makefile.in: Makefile.am configure.in
-       cd $(srcdir) && automake --strictness=gnits Makefile
+       cd $(srcdir) && automake --strictness=@STRICTNESS@ Makefile
 
 # For an explanation of the following Makefile rules, see node
 # `Automatic Remaking' in GNU Autoconf documentation.
 Makefile: $(srcdir)/Makefile.in config.status $(BUILT_SOURCES)
-       CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+       CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
 config.status: configure
-       ./config.status --recheck
+       $(SHELL) ./config.status --recheck
 $(srcdir)/configure: configure.in $(ACLOCAL) $(CONFIGURE_DEPENDENCIES)
        cd $(srcdir) && autoconf
 automake: $(top_builddir)/config.status automake.in
@@ -180,7 +179,8 @@ automake.dvi: automake.texi version.texi
          && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
 
 .texi.dvi:
-       TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+       TEXINPUTS=$(srcdir):$$TEXINPUTS \
+         MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
 .texinfo.info:
        cd $(srcdir) \
@@ -189,7 +189,7 @@ automake.dvi: automake.texi version.texi
 .texinfo.dvi:
        TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
 
-install-info: $(INFO_DEPS)
+install-info-am: $(INFO_DEPS)
        $(NORMAL_INSTALL)
        $(mkinstalldirs) $(infodir)
        for file in $(INFO_DEPS); do \
@@ -253,7 +253,7 @@ uninstall-pkgdataDATA:
 @SET_MAKE@
 
 all-recursive install-data-recursive install-exec-recursive \
-installdirs-recursive install-recursive uninstall-recursive \
+installdirs-recursive install-recursive uninstall-recursive  \
 check-recursive installcheck-recursive info-recursive dvi-recursive \
 mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
@@ -352,7 +352,7 @@ all-am: $(INFO_DEPS) $(SCRIPTS) $(DATA) Makefile
 
 install-exec-am: install-binSCRIPTS
 
-install-data-am: install-info install-pkgdataSCRIPTS install-pkgdataDATA
+install-data-am: install-info-am install-pkgdataSCRIPTS install-pkgdataDATA
 
 uninstall-am: uninstall-binSCRIPTS uninstall-pkgdataSCRIPTS uninstall-info uninstall-pkgdataDATA
 
@@ -415,7 +415,7 @@ maintainer-clean:  maintainer-clean-am maintainer-clean-recursive
 
 .PHONY: default uninstall-binSCRIPTS install-binSCRIPTS \
 uninstall-pkgdataSCRIPTS install-pkgdataSCRIPTS mostlyclean-vti \
-distclean-vti clean-vti maintainer-clean-vti install-info \
+distclean-vti clean-vti maintainer-clean-vti install-info-am \
 uninstall-info mostlyclean-info distclean-info clean-info \
 maintainer-clean-info uninstall-pkgdataDATA install-pkgdataDATA \
 install-data-recursive uninstall-data-recursive install-exec-recursive \
diff --git a/TODO b/TODO
index a7f0ede279092b59f3da444f40e497311785fbf6..bdee987244fbdc45157a131915eb0ca3b2a641ad 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,5 +1,4 @@
 Priorities for release:
-!! MUST finish new deansification scheme...
 !! documentation (eg new macros)
 * `acinstall'
 * echo in installs?
@@ -21,12 +20,12 @@ Priorities for release:
   requests for pkg-dirs with version included
 
 Further:
-- texinfo/info changes
-- Per's suggestion
 - man page fixes
 - consider adding "echo"s to installs again.
   users can use make SHELL='sh -x' to get the full dirt
 
+* must move CONFIG_HEADER from tags.am... allow it to work in subdir.
+
 Avoid loops when installing; instead unroll them in automake
 
 Franc,ois> * ansi2knr was uselessly compiled, and it might be an
@@ -41,8 +40,6 @@ Some long-term projects:
 consider putting all check-* targets onto @check?
 To support --help/--version checking?
 
-must move CONFIG_HEADER from tags.am... allow it to work in subdir.
-
 take diff-n-query code from libit
 
 must at least partially rewrite dist system (to handle distributing
@@ -65,6 +62,7 @@ Per> .class files from a list of .java source files.
 
 From Jason Molenda:
 * allow a way to use "gzip --best"
+   [ Try  GZIP=--best make dist ]
 * don't assume GNU tar is "tar" (eg in distcheck)
 
 * actually use acinstall program
@@ -151,12 +149,7 @@ Then user must use "make -k check".  This is probably more natural.
 Consider: "cvs" option adds some cvs-specific rules?
 
 "Cygnus"-specific features:
-* Should look for certain tools in the build tree:
-  expect, dejagnu, makeinfo
-* `no-installinfo' is the default
-* always generate `info' and `install-info' targets
-* Allow `texinfo.tex' to be missing
-* don't force info files into srcdir
+* don't force info files into srcdir; ditto lex/yacc output
 
 Automake: devo/inet/Makefile.am has "all-local".  "install" depends on
 "all", but the local installs get run before the stuff in "all".  Gross.
@@ -166,6 +159,8 @@ overridable by user code.  This should probably be possible, even
 though it isn't very important.  This could be done by generating all
 internal rules via a function call instead of just appending to
 $output_rules.
+ [ this will be harder to implement when scanning a rule like all-recursive
+   from subdirs.am ]
 
 * Should be a way to have "nobuild_PROGRAMS" which aren't even built,
   but which could be by running the magic make command.
@@ -325,6 +320,11 @@ containing application.
 
 Document:
 
+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
index cc12d04e76a64c4f8506e3bbf4b4e7ac908aa7b7..1c38f6f834f54b54a69bbccd83ca61e217b5c71d 100755 (executable)
@@ -204,6 +204,9 @@ $dist_charset = 'utf8';             # recode doesn't support this yet.
 $am_file_name = '';
 $in_file_name = '';
 
+# TRUE if --cygnus seen.
+$cygnus_mode = 0;
+
 \f
 
 &initialize_global_constants;
@@ -312,6 +315,10 @@ sub parse_arguments
        {
            &set_strictness ('gnits');
        }
+       elsif ($arglist[0] eq '--cygnus')
+       {
+           $cygnus_mode = 1;
+       }
        elsif ($arglist[0] eq '--foreign')
        {
            &set_strictness ('foreign');
@@ -431,6 +438,7 @@ sub generate_makefile
     }
 
     # Check first, because we might modify some state.
+    &check_cygnus;
     &check_gnu_standards;
     &check_gnits_standards;
 
@@ -1465,10 +1473,14 @@ sub handle_texinfo
        }
     }
 
-    # Some boilerplate.
-    $output_vars .= &file_contents ('texi-vars');
+    # Find these programs wherever they may lie.  Yes, this has
+    # intimate knowledge of the structure of the texinfo distribution.
+    &define_program_variable ('MAKEINFO', 'build', 'texinfo/makeinfo',
+                             'makeinfo');
+    &define_program_variable ('TEXI2DVI', 'src', 'texinfo/util',
+                             'texi2dvi');
     $output_rules .= &file_contents ('texinfos');
-    push (@phony, 'install-info', 'uninstall-info');
+    push (@phony, 'install-info-am', 'uninstall-info');
 
     # How to clean.
     $output_rules .= "\nmostlyclean-info:\n";
@@ -1484,7 +1496,7 @@ sub handle_texinfo
     {
        push (@uninstall, 'uninstall-info');
        push (@installdirs, '$(infodir)');
-       unshift (@install_data, 'install-info');
+       unshift (@install_data, 'install-info-am');
 
        # Make sure documentation is made and installed first.  Use
        # $(INFO_DEPS), not 'info', because otherwise recursive makes
@@ -1503,8 +1515,11 @@ sub handle_texinfo
     # probably better, in case noinst_TEXINFOS is ever supported.
     &define_variable ("TEXINFOS", $contents{'info_TEXINFOS'});
 
-    # Do some error checking.
-    &require_file_with_line ('info_TEXINFOS', $FOREIGN, 'texinfo.tex');
+    # Do some error checking.  Note that this file is not required
+    # when in Cygnus mode -- a bletcherous hack.
+    &require_file_with_line ('info_TEXINFOS',
+                            $cygnus_mode ? $GNU : $FOREIGN,
+                            'texinfo.tex');
 }
 
 # Handle any man pages.
@@ -1672,7 +1687,9 @@ sub handle_dist_worker
          && cd $(srcdir) \\
          && automake --include-deps --build-dir=$$here --srcdir-name=$(srcdir) --output-dir=$$distdir --strictness='
                 # Set strictness of output.
-                . $strictness_name . "\n"
+                . $strictness_name
+                . ($cygnus_mode ? ' --cygnus' : '')
+                . "\n"
                 );
        }
     }
@@ -2056,7 +2073,12 @@ sub handle_subdirs
            if ! -d $relative_dir . '/' . $dir;
     }
 
-    $output_rules .= &file_contents ('subdirs');
+    local ($xform) = ('s/\@INSTALLINFO\@/' .
+                     (defined $options{'no-installinfo'}
+                      ? 'install-info-recursive'
+                      : '')
+                     . '/;');
+    $output_rules .= &file_contents_with_transform ($xform, 'subdirs');
 
     # Push a bunch of phony targets.
     local ($phonies);
@@ -2085,7 +2107,7 @@ sub handle_aclocal_m4
     local ($regen_aclocal) = 0;
     if (-f 'aclocal.m4')
     {
-       &define_variable ("ACLOCAL", "aclocal.m4");
+       &define_variable ("ACLOCAL", '$(top_srcdir)/aclocal.m4');
        &push_dist_common ('aclocal.m4');
 
        if (open (ACLOCAL, '< aclocal.m4'))
@@ -2131,19 +2153,19 @@ sub handle_configure
        if &variable_defined ('SUBDIRS') && ! $seen_make_set;
 
     local ($top_reldir);
+    local ($xform) = ('s/\@ARGS\@/--strictness=' . $strictness_name
+                     . ($cygnus_mode ? ' --cygnus' : '')
+                     . '/;');
     if ($relative_dir ne '.')
     {
        # In subdirectory.
-       $output_rules .= &file_contents ('remake-subd');
+       $output_rules .= &file_contents_with_transform ($xform, 'remake-subd');
        $top_reldir = '../';
     }
     else
     {
        &handle_aclocal_m4;
-       $output_rules .= &file_contents_with_transform ('s/\@STRICTNESS\@/'
-                                                       . $strictness_name
-                                                       . '/g',
-                                                       'remake');
+       $output_rules .= &file_contents_with_transform ($xform, 'remake');
        &examine_variable ('CONFIGURE_DEPENDENCIES');
        $top_reldir = '';
     }
@@ -2158,27 +2180,30 @@ sub handle_configure
                                      $FOREIGN, $ch_sans_dir);
 
        # Header defined and in this directory.
+       local (@files);
        if (-f $relative_dir . '/acconfig.h')
        {
-           &define_variable ("ACCONFIG", "acconfig.h");
-           &push_dist_common ('acconfig.h');
+           push (@files, 'acconfig.h');
        }
        if (-f $config_name . '.top')
        {
-           &define_variable ("CONFIG_TOP", "${cn_sans_dir}.top");
-           &push_dist_common ($cn_sans_dir . '.top');
+           push (@files, "${cn_sans_dir}.top");
        }
        if (-f $config_name . '.bot')
        {
-           &define_variable ("CONFIG_BOT", "${cn_sans_dir}.bot");
-           &push_dist_common ($cn_sans_dir . '.bot');
+           push (@files, "${cn_sans_dir}.bot");
        }
 
+       &push_dist_common (@files);
+       $output_rules .= &file_contents_with_transform ('s/\@FILES\@/'
+                                                       . join (' ', @files)
+                                                       . '/;',
+                                                       'remake-hdr');
+
        &touch ($relative_dir . '/stamp-h.in');
        &require_file_with_conf_line ($config_header_line, $FOREIGN,
                                      'stamp-h.in');
 
-       $output_rules .= &file_contents ('remake-hdr');
        push (@clean, 'hdr');
        &push_phony_cleaners ('hdr');
        &define_variable ("CONFIG_HEADER_IN", "${ch_sans_dir}");
@@ -2398,6 +2423,22 @@ sub handle_merge_targets
     &do_one_merge_target ('check', @check);
     &do_one_merge_target ('installcheck', @installcheck);
 
+    if (defined $options{'no-installinfo'})
+    {
+       # FIXME: this is kind of a hack; should find another way to
+       # know that this is required.
+       local (@dirs);
+       if (grep ($_ eq 'install-info-am', @phony))
+       {
+           push (@dirs, 'install-info-am');
+       }
+       if (&variable_defined ('SUBDIRS'))
+       {
+           push (@dirs, 'install-info-recursive');
+       }
+       &do_one_merge_target ('install-info', @dirs);
+    }
+
     # Handle the various install targets specially.  We do this so
     # that (eg) "make install-exec" will run "install-exec-recursive"
     # if required, but "make install" won't run it twice.  Step one is
@@ -2693,7 +2734,19 @@ sub handle_tests
     {
        push (@check, 'check-DEJAGNU');
        push (@phony, 'check-DEJAGNU');
-       $output_rules .= &file_contents ('dejagnu') . "\n";
+
+       local ($xform);
+       if (! $cygnus_mode)
+       {
+           $xform = 'next if /^CYGNUS/;';
+       }
+       $output_rules .= &file_contents_with_transform ($xform, 'dejagnu');
+
+       # In Cygnus mode, these are found in the build tree.
+       # Otherwise they are looked for in $PATH.
+       &define_program_variable ('EXPECT', 'build', 'expect', 'expect');
+       &define_program_variable ('RUNTEST', 'src', 'dejagnu', 'runtest');
+
        # Note that in the rule we don't directly generate site.exp to
        # avoid the possibility of a corrupted site.exp if make is
        # interrupted.  Jim Meyering has some useful text on this
@@ -3092,6 +3145,22 @@ sub scan_configure
 
 ################################################################
 
+# Set up for Cygnus mode.
+sub check_cygnus
+{
+    return unless $cygnus_mode;
+
+    &set_strictness ('foreign');
+    $options{'no-installinfo'} = 1;
+    $options{'no-dependencies'} = 1;
+    $use_dependencies = 0;
+
+    if (! $seen_maint_mode)
+    {
+       &am_conf_error ("\`AM_MAINTAINER_MODE' required when --cygnus specified");
+    }
+}
+
 # Do any extra checking for GNU standards.
 sub check_gnu_standards
 {
@@ -3304,6 +3373,35 @@ sub define_configure_variable
     &define_variable ($var, $value);
 }
 
+# Define a variable that represents a program to run.  If in Cygnus
+# mode, the program is searched for in the build (or source) tree.
+# Otherwise no searching is done at all.  Arguments are:
+# * VAR      Name of variable to define
+# * WHATDIR  Either `src' or `build', depending on where program should
+#            be found.  (runtest is in srcdir!)
+# * SUBDIR   Subdir of top-level dir
+# * PROGRAM  Name of program
+sub define_program_variable
+{
+    local ($var, $whatdir, $subdir, $program) = @_;
+
+    if ($cygnus_mode)
+    {
+       local ($full) = ('$(top_' . $whatdir . 'dir)/../'
+                        . $subdir . '/' . $program);
+       &define_variable ($var, ('`if test -f ' . $full
+                                . '; then echo ' . $full . '; else echo '
+                                . $program . '; fi`'));
+    }
+    else
+    {
+       &define_variable ($var, $program);
+    }
+}
+
+
+################################################################
+
 # Read Makefile.am and set up %contents.  Simultaneously copy lines
 # from Makefile.am into $output_trailer or $output_vars as
 # appropriate.  NOTE we put rules in the trailer section.  We want
@@ -3573,6 +3671,7 @@ sub initialize_global_constants
   -a, --add-missing     add missing standard files to package
   --amdir=DIR           directory storing config files
   --build-dir=DIR       directory where build being done (for dependencies)
+  --cygnus              assume program is part of Cygnus-style tree
   --foreign             same as --strictness=foreign
   --gnits               same as --strictness=gnits
   --gnu                 same as --strictness=gnu
index 189394855569f2b31ec6df3b3498ca412139dd8e..dbb54bf92f69a028c7aa7d4c1b6b26e610dfbe2f 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-## Work if expect is in our tree.
-EXPECT = ` \
-  if [ -f $$rootme/../expect/expect ] ; then \
-    echo $$rootme/../expect/expect ; \
-  else echo expect ; fi`
-
-## If DejaGNU is in our tree, we must run it out of srcdir.
-RUNTEST = ` \
-  if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
-    echo $(top_srcdir)/../dejagnu/runtest ; \
-  else echo runtest ;  fi`
-
 ## Flags for DejaGNU.
 RUNTESTFLAGS =
 
@@ -35,13 +23,13 @@ RUNTESTFLAGS =
 DEJATOOL = $(PACKAGE)
 
 check-DEJAGNU: site.exp
-       rootme=`cd $(top_builddir) && pwd`; \
 ## Life is easiest with an absolute srcdir, so do that.
        srcdir=`cd $(srcdir) && pwd`; export srcdir; \
        EXPECT=$(EXPECT); export EXPECT; \
 ## Allow this to work when expect and DejaGNU are in tree.
-       if [ -f $$rootme/../expect/expect ]; then \
-         TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
-         export TCL_LIBRARY; \
-       fi; \
+## Only required when --cygnus in force.
+CYGNUS if [ -f $(top_builddir)/../expect/expect ]; then \
+CYGNUS   TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
+CYGNUS   export TCL_LIBRARY; \
+CYGNUS fi; \
        $(RUNTEST) --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS)
index a689a2651e8650ed973f89fbaa1b782ce3b28857..53cc173f25a72fd3ef6c7eac4bf4ba68fb3ac3b3 100644 (file)
@@ -14,7 +14,7 @@ compile.am data.am dejagnu.am depend.am depend2.am dist-vars.am footer.am \
 header.am header-vars.am kr-extra.am libs.am library.am \
 mans-vars.am program.am progs.am remake-hdr.am remake-subd.am \
 remake.am scripts.am subdirs.am tags.am tags-subd.am tags-clean.am \
-texi-vers.am texi-vars.am texinfos.am libs-clean.am \
+texi-vers.am texinfos.am libs-clean.am \
 progs-clean.am data-clean.am COPYING INSTALL texinfo.tex ansi2knr.c \
 ansi2knr.1 aclocal.m4 lisp.am lisp-clean.am
 
index 189394855569f2b31ec6df3b3498ca412139dd8e..dbb54bf92f69a028c7aa7d4c1b6b26e610dfbe2f 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 
-## Work if expect is in our tree.
-EXPECT = ` \
-  if [ -f $$rootme/../expect/expect ] ; then \
-    echo $$rootme/../expect/expect ; \
-  else echo expect ; fi`
-
-## If DejaGNU is in our tree, we must run it out of srcdir.
-RUNTEST = ` \
-  if [ -f $(top_srcdir)/../dejagnu/runtest ] ; then \
-    echo $(top_srcdir)/../dejagnu/runtest ; \
-  else echo runtest ;  fi`
-
 ## Flags for DejaGNU.
 RUNTESTFLAGS =
 
@@ -35,13 +23,13 @@ RUNTESTFLAGS =
 DEJATOOL = $(PACKAGE)
 
 check-DEJAGNU: site.exp
-       rootme=`cd $(top_builddir) && pwd`; \
 ## Life is easiest with an absolute srcdir, so do that.
        srcdir=`cd $(srcdir) && pwd`; export srcdir; \
        EXPECT=$(EXPECT); export EXPECT; \
 ## Allow this to work when expect and DejaGNU are in tree.
-       if [ -f $$rootme/../expect/expect ]; then \
-         TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
-         export TCL_LIBRARY; \
-       fi; \
+## Only required when --cygnus in force.
+CYGNUS if [ -f $(top_builddir)/../expect/expect ]; then \
+CYGNUS   TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
+CYGNUS   export TCL_LIBRARY; \
+CYGNUS fi; \
        $(RUNTEST) --tool $(DEJATOOL) --srcdir $$srcdir $(RUNTESTFLAGS)
index d3a695b884be10707d1a998268b7c00580b3663b..3b3110c72cf44bbeed00f904f07cc383a0df9fb3 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 $(CONFIG_HEADER): stamp-h
-stamp-h: $(CONFIG_HEADER_IN) config.status
+stamp-h: $(CONFIG_HEADER_IN) $(top_builddir)/config.status
        cd $(top_builddir) \
          && CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER) \
             $(SHELL) ./config.status
        @echo timestamp > stamp-h
 $(srcdir)/$(CONFIG_HEADER_IN): @MAINT@stamp-h.in
-$(srcdir)/stamp-h.in: configure.in $(ACLOCAL) $(ACCONFIG) $(CONFIG_TOP) $(CONFIG_BOT)
+$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL) @FILES@
        cd $(top_srcdir) && autoheader
        echo timestamp > $(srcdir)/stamp-h.in
 
index 42bcfac3b589aa5bb474dba2586b6a1ed5cab458..ed0da37f0292fa80e96ec7d007ee40a98bb40c86 100644 (file)
@@ -25,7 +25,7 @@
 @SET_MAKE@
 
 all-recursive install-data-recursive install-exec-recursive \
-installdirs-recursive install-recursive uninstall-recursive \
+installdirs-recursive install-recursive uninstall-recursive @INSTALLINFO@ \
 check-recursive installcheck-recursive info-recursive dvi-recursive \
 mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
index 78de7dd2239283dc4ccda5dc1292c8a7088962ae..dee8d61678590387f2e1cdd045325eebcfd6d188 100644 (file)
          && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
 
 .texi.dvi:
-       TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+       TEXINPUTS=$(srcdir):$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+         MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
 .texinfo.info:
 ## We want to force the .info file to be built in srcdir.  This is
@@ -36,7 +39,9 @@
 ## Look in both . and srcdir because the info pages might have been
 ## rebuilt in the build directory.  Can't cd to srcdir; that might
 ## break a possible install-sh reference.
-install-info: $(INFO_DEPS)
+## Funny name due to --cygnus influence; we want to reserve
+## `install-info' for the user.
+install-info-am: $(INFO_DEPS)
        $(NORMAL_INSTALL)
        $(mkinstalldirs) $(infodir)
        for file in $(INFO_DEPS); do \
index 23a41191e92bf18d53c83906f37ef7cf2772caaf..2a2bbaffacf73508f85ba512c3b3645a2971cdf2 100644 (file)
@@ -37,6 +37,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 transform = @program_transform_name@
+PERL = @PERL@
 
 AUTOMAKE_OPTIONS = gnits
 MAINT_CHARSET = latin1
@@ -70,7 +71,8 @@ $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in
        cd $(top_srcdir) && automake $(subdir)/Makefile
 
 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in $(BUILT_SOURCES)
-       cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
+       cd $(top_builddir) \
+         && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
 install-m4dataDATA: $(m4data_DATA)
        $(NORMAL_INSTALL)
index d3a695b884be10707d1a998268b7c00580b3663b..3b3110c72cf44bbeed00f904f07cc383a0df9fb3 100644 (file)
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 $(CONFIG_HEADER): stamp-h
-stamp-h: $(CONFIG_HEADER_IN) config.status
+stamp-h: $(CONFIG_HEADER_IN) $(top_builddir)/config.status
        cd $(top_builddir) \
          && CONFIG_FILES= CONFIG_HEADERS=$(CONFIG_HEADER) \
             $(SHELL) ./config.status
        @echo timestamp > stamp-h
 $(srcdir)/$(CONFIG_HEADER_IN): @MAINT@stamp-h.in
-$(srcdir)/stamp-h.in: configure.in $(ACLOCAL) $(ACCONFIG) $(CONFIG_TOP) $(CONFIG_BOT)
+$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL) @FILES@
        cd $(top_srcdir) && autoheader
        echo timestamp > $(srcdir)/stamp-h.in
 
index 4dfce4c3fe03515890f5ea3ee9c21ce5c1108a11..90c34f2300731d7db3642da8c5cf34b950a64b39 100644 (file)
@@ -16,7 +16,7 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 $(srcdir)/Makefile.in: @MAINT@Makefile.am $(top_srcdir)/configure.in
-       cd $(top_srcdir) && automake $(subdir)/Makefile
+       cd $(top_srcdir) && automake @ARGS@ $(subdir)/Makefile
 
 Makefile: $(top_builddir)/config.status $(srcdir)/Makefile.in $(BUILT_SOURCES)
        cd $(top_builddir) \
index 2bbf381a567cdfd344763256d903cc1d44cb7bb8..5b75d4b08676eebbe4618ca9ffa91dcd8538fbc4 100644 (file)
--- a/remake.am
+++ b/remake.am
@@ -16,7 +16,7 @@
 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 ## 02111-1307, USA.
 $(srcdir)/Makefile.in: @MAINT@Makefile.am configure.in
-       cd $(srcdir) && automake --strictness=@STRICTNESS@ Makefile
+       cd $(srcdir) && automake @ARGS@ Makefile
 
 # For an explanation of the following Makefile rules, see node
 # `Automatic Remaking' in GNU Autoconf documentation.
index 42bcfac3b589aa5bb474dba2586b6a1ed5cab458..ed0da37f0292fa80e96ec7d007ee40a98bb40c86 100644 (file)
@@ -25,7 +25,7 @@
 @SET_MAKE@
 
 all-recursive install-data-recursive install-exec-recursive \
-installdirs-recursive install-recursive uninstall-recursive \
+installdirs-recursive install-recursive uninstall-recursive @INSTALLINFO@ \
 check-recursive installcheck-recursive info-recursive dvi-recursive \
 mostlyclean-recursive clean-recursive distclean-recursive \
 maintainer-clean-recursive:
index b8a684835b505e04b95ddb43721828b6857cea6e..7588cc58e57bd216f90179011be934a7b0fda6f1 100644 (file)
@@ -37,6 +37,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@
 INSTALL_SCRIPT = @INSTALL_SCRIPT@
 transform = @program_transform_name@
+PERL = @PERL@
 
 AUTOMAKE_OPTIONS = gnits
 
diff --git a/texi-vars.am b/texi-vars.am
deleted file mode 100644 (file)
index c78de04..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc.
-
-## This program is free software; you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation; either version 2, or (at your option)
-## any later version.
-
-## This program is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-## GNU General Public License for more details.
-
-## You should have received a copy of the GNU General Public License
-## along with this program; if not, write to the Free Software
-## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-## 02111-1307, USA.
-MAKEINFO = makeinfo
-TEXI2DVI = texi2dvi
index 78de7dd2239283dc4ccda5dc1292c8a7088962ae..dee8d61678590387f2e1cdd045325eebcfd6d188 100644 (file)
          && $(MAKEINFO) `echo $< | sed 's,.*/,,'`
 
 .texi.dvi:
-       TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
+       TEXINPUTS=$(srcdir):$$TEXINPUTS \
+## Must set MAKEINFO like this so that version.texi will be found even
+## if it is in srcdir.
+         MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
 
 .texinfo.info:
 ## We want to force the .info file to be built in srcdir.  This is
@@ -36,7 +39,9 @@
 ## Look in both . and srcdir because the info pages might have been
 ## rebuilt in the build directory.  Can't cd to srcdir; that might
 ## break a possible install-sh reference.
-install-info: $(INFO_DEPS)
+## Funny name due to --cygnus influence; we want to reserve
+## `install-info' for the user.
+install-info-am: $(INFO_DEPS)
        $(NORMAL_INSTALL)
        $(mkinstalldirs) $(infodir)
        for file in $(INFO_DEPS); do \