autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: overriding autoconf's own exeext detection


From: Ralf Wildenhues
Subject: Re: overriding autoconf's own exeext detection
Date: Fri, 11 Nov 2005 18:00:26 +0100
User-agent: Mutt/1.5.11

Hi Stefan,

* Stefan Seefeld wrote on Fri, Nov 11, 2005 at 03:31:18PM CET:
> I'm using autoconf with a greenhills cross-compiler.
> It compiles source code into .ppc executables, but
> generates auxiliary files with other extensions on-the-fly
> (.map, for example).

Does the patch below fix it?

> From a look into the relevant code it seems it would be
> possible to fix this by adding some extensions to the
> exclusion list, though I'm not sure how robust / scalable
> a solution that is.

Well, a shell pattern for exclusion is cheap, and the number of
different things to exclude seems not so high, so I think that's
the best solution for now.  Until one compiler produces an extension
that needs to be excluded for another one.

Cheers,
Ralf

        * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT):
        Add `*.map' for Green Hills compiler.
        Reported by Stefan Seefeld <address@hidden>.

Index: lib/autoconf/lang.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/lang.m4,v
retrieving revision 1.171
diff -u -r1.171 lang.m4
--- lib/autoconf/lang.m4        14 May 2005 07:00:40 -0000      1.171
+++ lib/autoconf/lang.m4        11 Nov 2005 16:59:37 -0000
@@ -421,6 +421,9 @@
 #
 # - *.xSYM
 #   Created on BeOS.  Seems to be per executable.
+# 
+# - *.map
+#   Created by the Green Hills compiler.
 
 
 # _AC_COMPILER_OBJEXT_REJECT
@@ -428,7 +431,7 @@
 # Case/esac pattern matching the files to be ignored when looking for
 # compiled object files.
 m4_define([_AC_COMPILER_OBJEXT_REJECT],
-[*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg])
+[*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map])
 
 
 # _AC_COMPILER_EXEEXT_REJECT




reply via email to

[Prev in Thread] Current Thread [Next in Thread]