Fri Nov 8 09:49:09 1996 Tom Tromey <tromey@cygnus.com>
+ * compile-kr.am ($(OBJECTS)): Removed.
+
+ * automake.in (get_object_extension): Define ANSI2KNR. Push onto
+ @all if ansi2knr is in this directory.
+
* configure.in: Don't run AC_ARG_PROGRAM, AC_PROG_MAKE_SET.
* m4/init.m4: Run AM_SANITY_CHECK.
Consider: "cvs" option adds some cvs-specific rules?
-"Cygnus"-specific features:
-* 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.
# Make sure ansi2knr can be found: if no path specified,
# specify "./".
local ($apath) = $options{'ansi2knr'};
- $apath = './' . $apath
- unless $apath =~ /\//;
- &define_variable ("ANSI2KNR", $apath);
+ if ($apath =~ /\//)
+ {
+ # Found in another directory.
+ &define_variable ("ANSI2KNR", $apath);
+ }
+ else
+ {
+ # Substitution from AM_C_PROTOTYPES. This makes it be
+ # built only when necessary.
+ &define_configure_variable ('ANSI2KNR');
+ push (@all, '$(ANSI2KNR)');
+ }
$output_rules .= &file_contents ('compile-kr');
$output_rules .= &file_contents ('clean-kr');
@echo $(COMPILE) -c $*._c
@rm -f _$*.c
@ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
-
-$(OBJECTS): $(ANSI2KNR)