]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
authorAkim Demaille <akim@epita.fr>
Wed, 3 Apr 2002 09:27:04 +0000 (09:27 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 3 Apr 2002 09:27:04 +0000 (09:27 +0000)
(_AC_COMPILER_EXEEXT_REJECT): New.
Also recognize *.bb and *.bbg as compilation byproducts.
(_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
(_AC_COMPILER_OBJEXT): Use them.
Fixes Debian #138666.

ChangeLog
lib/autoconf/lang.m4

index 4b8ba72edd98f4d6f63b486e739f8c72319e5d6b..8b964a148fd89019f1f9af764cf632fed72cdaa2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-04-03  Akim Demaille  <akim@epita.fr>
+
+       * lib/autoconf/lang.m4 (_AC_COMPILER_OBJEXT_REJECT)
+       (_AC_COMPILER_EXEEXT_REJECT): New.
+       Also recognize *.bb and *.bbg as compilation byproducts.
+       (_AC_COMPILER_EXEEXT_DEFAULT, _AC_COMPILER_EXEEXT_O)
+       (_AC_COMPILER_OBJEXT): Use them.
+       Fixes Debian #138666.
+
 2002-04-02  Peter Eisentraut  <peter_e@gmx.net>
 
        Integrate AC_PROG_CC_STDC into AC_PROG_CC.
index d498716d3cf37ee8b82e59195960a5f4f0f39d43..9b0af7b42a14d5050295d393a0d9ebaefa2be0b4 100644 (file)
@@ -391,7 +391,29 @@ m4_divert_pop()dnl
 #
 # When the w32 free Borland C++ command line compiler links a program
 # (conftest.exe), it also produces a file named `conftest.tds' in
-# addition to `conftest.obj'
+# addition to `conftest.obj'.
+#
+# - *.bb, *.bbg
+#   Created per object by GCC when given -ftest-coverage.
+#
+# - *.xSYM
+#   Created on BeOS.  Seems to be per executable.
+
+
+# _AC_COMPILER_OBJEXT_REJECT
+# --------------------------
+# 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_COMPILER_EXEEXT_REJECT
+# --------------------------
+# Case/esac pattern matching the files to be ignored when looking for
+# compiled executables.
+m4_define([_AC_COMPILER_EXEEXT_REJECT],
+[_AC_COMPILER_OBJEXT_REJECT | *.o | *.obj])
 
 
 # We must not AU define them, because autoupdate would then remove
@@ -430,7 +452,7 @@ for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
                 ls a.out conftest 2>/dev/null;
                 ls a.* conftest.* 2>/dev/null`; do
   case $ac_file in
-    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
+    _AC_COMPILER_EXEEXT_REJECT ) ;;
     a.out ) # We found the default executable, but exeext='' is most
             # certainly right.
             break;;
@@ -496,7 +518,7 @@ AS_IF([AC_TRY_EVAL(ac_link)],
 # `rm'.
 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
-    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    _AC_COMPILER_EXEEXT_REJECT ) ;;
     *.* ) ac_cv_exeext=`expr "$ac_file" : ['[^.]*\(\..*\)']`
           export ac_cv_exeext
           break;;
@@ -554,7 +576,7 @@ rm -f conftest.o conftest.obj
 AS_IF([AC_TRY_EVAL(ac_compile)],
 [for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
   case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
+    _AC_COMPILER_OBJEXT_REJECT ) ;;
     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
        break;;
   esac