+Mon Jul 6 14:52:49 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * compile.am (mostlyclean-compile): If OBJEXT, remove *.$(OBJEXT)
+ along with *.o.
+
+Thu May 28 18:49:47 1998 Ian Lance Taylor <ian@cygnus.com>
+
+ * automake.in (seen_objext): New variable.
+ (get_object_extension): If seen_objext, use .$(OBJEXT) rather than
+ .o. When including compile.am, keep or discard OBJEXT lines
+ according to whether seen_objext is set. If seen_objext, add .obj
+ to @suffixes. If seen_objext, use .$(OBJEXT) rather than .o when
+ building ansi2knr.
+ (handle_yacc_lex_cxx): If seen_objext, add a rule to create .obj
+ files. If seen_objext, use .$(OBJEXT) rather than .o when
+ building ansi2knr.
+ (scan_one_configure_file): Check for .obj as well as .o in
+ LIBOBJS. Set seen_exeext if we see AC_EXEEXT. Look for
+ AC_OBJEXT, and if found set seen_objext and set OBJEXT in
+ configure_vars.
+ (check_cygnus): Change error message to permit AC_EXEEXT.
+ * compile.am: Add OBJEXT lines for .c.obj compilation.
+ * Makefile.in: Rebuild.
+ * m4/Makefile.in: Rebuild.
+ * tests/Makefile.in: Rebuild.
+
+Mon Sep 11 16:07:55 1997 Chris Provenzano <proven@cygnus.com>
+
+ * header-vars.am: SHELL=@SHELL@
+ Ran aclocal, autoconf, and automake.
+
Sat Sep 26 16:31:29 1998 Tom Tromey <tromey@cygnus.com>
* ltlib.am: Use $(INSTALL) and not $(INSTALL_DATA).
# TRUE if we've seen AM_PATH_LISPDIR.
$seen_lispdir = 0;
-# TRUE if we've seen AM_EXEEXT.
+# TRUE if we've seen AM_EXEEXT or AC_EXEEXT.
$seen_exeext = 0;
+# TRUE if we've seen AC_OBJEXT.
+$seen_objext = 0;
+
# Hash table of discovered configure substitutions. Keys are names,
# values are meaningless.
%configure_vars = ();
# Maybe require libtool library object files.
local ($extension) = '.o';
+ $extension = '.$(OBJEXT)' if $seen_objext;
$extension = '.lo' if ($out =~ /\.la$/);
if (! $included_generic_compile)
$xform = 's/\@CONFIG_INCLUDE_SPEC\@/' . $xform . '/go;';
$output_vars .= &file_contents_with_transform ($xform,
'comp-vars');
- $output_rules .=
- &file_contents_with_transform
- ($use_dependencies ? 's/^NOTDEPEND.*$//;' : 's/^NOTDEPEND//;',
- 'compile');
+
+ $xform = (($use_dependencies
+ ? 's/^NOTDEPEND.*$//;'
+ : 's/^NOTDEPEND//;')
+ . ($seen_objext ? 's/^OBJEXT//;' : 's/^OBJEXT.*$//;'));
+ $output_rules .= &file_contents_with_transform ($xform, 'compile');
&push_phony_cleaners ('compile');
}
push (@suffixes, '.c', '.o', '.S', '.s');
+ push (@suffixes, '.obj') if $seen_objext;
push (@clean, 'compile');
$included_generic_compile = 1;
# Generate rules to build ansi2knr. If it is in some
# other directory, then generate dependencies but have the
# rule just run elsewhere.
+ $objext = $seen_objext ? ".$(OBJEXT)" : ".o";
$output_rules .= ($options{'ansi2knr'} . ': '
- . $options{'ansi2knr'} . ".o\n");
+ . $options{'ansi2knr'} . $objext . "\n");
if ($options{'ansi2knr'} eq 'ansi2knr')
{
- $output_rules .= ("\t\$(LINK) ansi2knr.o \$(LIBS)\n"
- . "ansi2knr.o: \$(CONFIG_HEADER)\n\n");
+ $output_rules .= ("\t\$(LINK) ansi2knr" . $objext
+ . " \$(LIBS)\n"
+ . "ansi2knr" . $objext
+ . ": \$(CONFIG_HEADER)\n\n");
}
else
{
. " && \$(MAKE) \$(AM_MAKEFLAGS) "
. "ansi2knr\n\n");
# This is required for non-GNU makes.
- $output_rules .= ($options{'ansi2knr'} . ".o:\n");
+ $output_rules .= ($options{'ansi2knr'} . $objext . ":\n");
$output_rules .= ("\tcd " . &dirname ($options{'ansi2knr'})
- . " && \$(MAKE) \$(AM_MAKEFLAGS) "
- . "ansi2knr.o\n\n");
+ . " && \$(MAKE) \$(AM_MAKEFLAGS)"
+ . " ansi2knr" . $objext . "\n\n");
}
# Make sure ansi2knr can be found: if no path specified,
{
$output_rules .= ("$ext.o:\n"
. "\t\$(CXXCOMPILE) -c \$<\n");
+ # FIXME: Using cygpath should be somehow conditional.
+ $output_rules .= ("$ext.obj:\n"
+ . "\t\$(CXXCOMPILE) -c `cygpath -w \$<`\n")
+ if ($seen_objext);
$output_rules .= ("$ext.lo:\n"
. "\t\$(LTCXXCOMPILE) -c \$<\n")
if ($seen_libtool);
. '; else echo ' . $base . '.c; fi` '
. "| sed 's/^# \\([0-9]\\)/#line \\1/' "
. '| $(ANSI2KNR) > ' . $base . "_.c\n");
- push (@objects, $base . '_.o');
+ push (@objects, $base . '_'
+ . ($seen_objext ? '.$(OBJEXT)' : '.o'));
push (@objects, $base . '_.lo') if $seen_libtool;
}
{
foreach $libobj_iter (split (' ', $1))
{
- if ($libobj_iter =~ /^(.*)\.o$/)
+ if ($libobj_iter =~ /^(.*)\.o(bj)?$/)
{
$libsources{$1 . '.c'} = 1;
}
$am_c_prototypes = 1 if /AM_C_PROTOTYPES/;
# Check for exe extension stuff.
- if (/AM_EXEEXT/)
+ if (/AM_EXEEXT/ || /AC_EXEEXT/)
{
$seen_exeext = 1;
$configure_vars{'EXEEXT'} = 1;
}
+ if (/AC_OBJEXT/)
+ {
+ $seen_objext = 1;
+ $configure_vars{'OBJEXT'} = 1;
+ }
+
# Check for NLS support.
if (/AM_GNU_GETTEXT/)
{
if (! $seen_exeext)
{
- &am_conf_error ("\`AM_EXEEXT' required when --cygnus specified");
+ &am_conf_error ("\`AM_EXEEXT' or \`AC_EXEEXT' required when --cygnus specified");
}
}