+2002-04-24 Akim Demaille <akim@epita.fr>
+
+ * bin/autoreconf.in (autoreconf): Run automake after autoconf and
+ autoheader, so that automake does not complain about a missing
+ config.h.in that was to be created.
+
2002-04-23 Akim Demaille <akim@epita.fr>
* bin/autoheader.in (parse_args): --warning takes an argument.
}
- # ------------------ #
- # Running automake. #
- # ------------------ #
-
- # Assumes that there is a Makefile.am in the topmost directory.
- if (!-f 'Makefile.am')
- {
- verbose "$configure_ac: not using Automake";
- }
- else
- {
- # We should always run automake, and let it decide whether it shall
- # update the file or not. In fact, the effect of `$force' is already
- # included in `$automake' via `--no-force'.
- xsystem ($automake);
- }
-
-
# ------------------ #
# Running autoconf. #
# ------------------ #
- # Don't try to be smarter than `autoconf', which does its own
- # up to date checks.
+ # Don't try to be smarter than `autoconf', which does its own up to
+ # date checks.
+ #
+ # We prefer running autoconf before autoheader, because (i) the
+ # latter runs the former, and (ii) autoconf is stricter than
+ # autoheader. So all in all, autoconf should give better error
+ # messages.
xsystem ($autoconf);
# We now consider that if AC_CONFIG_HEADERS is used, then autoheader
# is used too.
- # Just as for autoconf, up to date ness is performed by the tool itself.
+ #
+ # Just as for autoconf, up to date ness is performed by the tool
+ # itself.
+ #
+ # Run it before automake, since the latter checks the presence of
+ # config.h.in when it sees an AC_CONFIG_HEADERS.
if (!$uses_autoheader)
{
verbose "$configure_ac: not using Autoheader";
xsystem ($autoheader);
}
+
+ # ------------------ #
+ # Running automake. #
+ # ------------------ #
+
+ # Assumes that there is a Makefile.am in the topmost directory.
+ if (!-f 'Makefile.am')
+ {
+ verbose "$configure_ac: not using Automake";
+ }
+ else
+ {
+ # We should always run automake, and let it decide whether it shall
+ # update the file or not. In fact, the effect of `$force' is already
+ # included in `$automake' via `--no-force'.
+ xsystem ($automake);
+ }
+
chdir $cwd
or die "$me: cannot chdir to $cwd: $!\n";
}