autoconf-patches
[Top][All Lists]
Advanced

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

FYI: Don't rm core.*


From: Akim Demaille
Subject: FYI: Don't rm core.*
Date: Mon, 27 Oct 2003 12:14:40 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

This is from Debian fixes to Autoconf 2.57.

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * lib/autoconf/general.m4 (_AC_RUN_IFELSE, _AC_INIT_PREPARE):
        Don't remove core.* as it may remove valid user files.
        * lib/autoconf/functions.m4 (AC_FUNC_SETVBUF_REVERSED)
        (AC_FUNC_UTIME_NULL): Likewise.

Index: NEWS
===================================================================
RCS file: /cvsroot/autoconf/autoconf/NEWS,v
retrieving revision 1.316
diff -u -u -r1.316 NEWS
--- NEWS 24 Oct 2003 10:01:27 -0000 1.316
+++ NEWS 27 Oct 2003 11:11:54 -0000
@@ -1,5 +1,8 @@
 * Major changes in Autoconf 2.57h                       -*- outline -*-
 
+** core.*
+  core.* files are no longer removed, as they may be valid user files.
+
 * Major changes in Autoconf 2.57g
 
   Released 2003-10-24, by Akim Demaille
Index: lib/autoconf/functions.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/functions.m4,v
retrieving revision 1.80
diff -u -u -r1.80 functions.m4
--- lib/autoconf/functions.m4 13 Oct 2003 19:09:58 -0000 1.80
+++ lib/autoconf/functions.m4 27 Oct 2003 11:11:55 -0000
@@ -1618,8 +1618,8 @@
                  exit (1);
                putchar ('\r');
                exit (0); /* Non-reversed systems SEGV here.  */]])],
-          ac_cv_func_setvbuf_reversed=yes,
-          rm -f core core.* *.core,
+          [ac_cv_func_setvbuf_reversed=yes],
+          [rm -f core *.core],
           [[: # Assume setvbuf is not reversed when cross-compiling.]])]
        ac_cv_func_setvbuf_reversed=yes)])])
 if test $ac_cv_func_setvbuf_reversed = yes; then
@@ -1678,7 +1678,7 @@
              ac_cv_func_utime_null=yes,
              ac_cv_func_utime_null=no,
              ac_cv_func_utime_null=no)
-rm -f core core.* *.core])
+rm -f core *.core])
 if test $ac_cv_func_utime_null = yes; then
   AC_DEFINE(HAVE_UTIME_NULL, 1,
            [Define to 1 if `utime(file, NULL)' sets file's timestamp to the
Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.822
diff -u -u -r1.822 general.m4
--- lib/autoconf/general.m4 23 Oct 2003 07:56:53 -0000 1.822
+++ lib/autoconf/general.m4 27 Oct 2003 11:11:55 -0000
@@ -1191,7 +1191,7 @@
       echo "$as_me: caught signal $ac_signal"
     echo "$as_me: exit $exit_status"
   } >&AS_MESSAGE_LOG_FD
-  rm -f core core.* *.core &&
+  rm -f core *.core &&
   rm -rf conftest* confdefs* conf$[$]* $ac_clean_files &&
     exit $exit_status
      ' 0
@@ -2256,7 +2256,7 @@
 m4_ifvaln([$3],
          [( exit $ac_status )
 $3])dnl])[]dnl
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext 
conftest.$ac_objext m4_ifval([$1],
+rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext 
m4_ifval([$1],
                                                     [conftest.$ac_ext])[]dnl
 ])# _AC_RUN_IFELSE
 




reply via email to

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