autoconf-patches
[Top][All Lists]
Advanced

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

autoconf CVS: DJGPP & normalization of test results [PATCH]


From: Richard Dawe
Subject: autoconf CVS: DJGPP & normalization of test results [PATCH]
Date: Sat, 01 Mar 2003 14:08:08 +0000

Hello.

Below is a patch against autoconf CVS. It adds more substitutions
to the normalization of the test results, to work better with DJGPP:

* strip "exe" extensions;
* strip error codes from DJGPP's error messages, e.g.:

    No such file or directory (ENOENT)

Bye, Rich =]

Index: ChangeLog
===================================================================
RCS file: /cvsroot/autoconf/autoconf/ChangeLog,v
retrieving revision 1.2120
diff -p -u -3 -r1.2120 ChangeLog
--- ChangeLog   28 Feb 2003 10:46:19 -0000      1.2120
+++ ChangeLog   1 Mar 2003 13:59:01 -0000
@@ -1,3 +1,10 @@
+2003-03-01  Richard Dawe  <address@hidden>
+
+       * tests/atspecific.m4 (AT_CHECK_AUTOM4TE): Normalize
+       file name for the m4 program, when it has an "exe" file extension.
+       DJGPP's error messages include the error code in brackets -
+       remove the error code during normalization.
+
 2003-02-28  Akim Demaille  <address@hidden>
 
        * doc/autoconf.texi (Present But Cannot Be Compiled): New.
Index: tests/atspecific.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/atspecific.m4,v
retrieving revision 1.76
diff -p -u -3 -r1.76 atspecific.m4
--- tests/atspecific.m4 28 Feb 2003 10:11:12 -0000      1.76
+++ tests/atspecific.m4 1 Mar 2003 13:59:02 -0000
@@ -1,6 +1,6 @@
 # M4 macros used in building Autoconf test suites.        -*- Autotest -*-
 
-# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -55,6 +55,8 @@ m4_ifval([$4],
 [AT_CHECK([[sed -e 's,^\([^:]*\): *\([0-9][0-9]*\): *[^:]*m4: ,m4: \1: \2: ,' \
                 -e 's,^[^:]*m4: *\([^:]*\): *\([0-9][0-9]*\): ,m4: \1: \2: ,' \
                 -e 's/^autom4te: [^ ]*m4 /autom4te: m4 /' \
+                -e 's/^autom4te: [^ ]*m4.exe /autom4te: m4 /' \
+                -e 's/ (E[A-Z]*)$//' \
            stderr]], [0],[$4])])
 ])
 





reply via email to

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