autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.62-29-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.62-29-g7bedbd5
Date: Mon, 09 Jun 2008 12:27:17 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7bedbd5be1009092bc211f50b3f4108b99f9334c

The branch, master has been updated
       via  7bedbd5be1009092bc211f50b3f4108b99f9334c (commit)
       via  7758a34286265603496c94edfb1e491d13ca6e5d (commit)
      from  ceb74d50210a0937f8ff88873729930970b55183 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7bedbd5be1009092bc211f50b3f4108b99f9334c
Author: Eric Blake <address@hidden>
Date:   Mon Jun 9 06:25:35 2008 -0600

    Mark AC_TYPE_SIGNAL as obsolete.
    
    * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
    * doc/autoconf.texi (Function Portability): Update documentation.
    (Particular Types): Move AC_TYPE_SIGNAL...
    (Obsolete Macros): ...here, and mention why.
    
    Signed-off-by: Eric Blake <address@hidden>

commit 7758a34286265603496c94edfb1e491d13ca6e5d
Author: Eric Blake <address@hidden>
Date:   Mon Jun 9 06:19:17 2008 -0600

    Allow lib64 as a default X library location.
    
    * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
    * NEWS: Mention the change.
    * THANKS: Update.
    Reported by Brad Walker.
    
    Signed-off-by: Eric Blake <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |   14 +++++++++++
 NEWS                  |    3 ++
 THANKS                |    1 +
 doc/autoconf.texi     |   59 ++++++++++++++++++++++++++++--------------------
 lib/autoconf/libs.m4  |    2 +-
 lib/autoconf/types.m4 |   13 ++++++----
 6 files changed, 61 insertions(+), 31 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 6c16ecc..8288f12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2008-06-09  Eric Blake  <address@hidden>
+
+       Mark AC_TYPE_SIGNAL as obsolete.
+       * lib/autoconf/types.m4 (AC_TYPE_SIGNAL): Switch to AU_DEFUN.
+       * doc/autoconf.texi (Function Portability): Update documentation.
+       (Particular Types): Move AC_TYPE_SIGNAL...
+       (Obsolete Macros): ...here, and mention why.
+
+       Allow lib64 as a default X library location.
+       * lib/autoconf/libs.m4 (_AC_PATH_X_XMKMF): Add lib64.
+       * NEWS: Mention the change.
+       * THANKS: Update.
+       Reported by Brad Walker.
+
 2008-06-05  Eric Blake  <address@hidden>
 
        Fix regression in AT_KEYWORDS([Macro]), from 2007-10-18.
diff --git a/NEWS b/NEWS
index 8b866ad..7b3dafc 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ GNU Autoconf NEWS - User visible changes.
 
 * Major changes in Autoconf 2.62a (2008-??-??)
 
+** AC_PATH_X now includes /lib64 and /usr/lib64 in its list of default
+   library directories.
+
 ** Clients of m4_expand, such as AS_HELP_STRING and AT_SETUP, can now
    handle properly quoted but otherwise unbalanced parentheses (for
    some macros, this fixes a regression in 2.62).
diff --git a/THANKS b/THANKS
index 224cdea..dfc26eb 100644
--- a/THANKS
+++ b/THANKS
@@ -46,6 +46,7 @@ Bob Friesenhahn             address@hidden
 Bob Proulx                  address@hidden
 Bob Rossi                   address@hidden
 Bob Wilson                  address@hidden
+Brad Walker                 address@hidden
 Braden McDaniel             address@hidden
 Bram Moolenaar              address@hidden
 Brian Gough                 address@hidden
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index cef2d3b..43a84bc 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -4352,6 +4352,7 @@ NextStep).
 @item @code{signal} handler
 @c @fuindex signal
 @prindex @code{signal}
address@hidden @code{sigaction}
 Normally @code{signal} takes a handler function with a return type of
 @code{void}, but some old systems required @code{int} instead.  Any
 actual @code{int} value returned is not used; this is only a
@@ -4359,8 +4360,12 @@ difference in the function prototype demanded.
 
 All systems we know of in current use return @code{void}.  The
 @code{int} was to support K&R C, where of course @code{void} is not
-available.  @code{AC_TYPE_SIGNAL} (@pxref{Particular Types}) can be
-used to establish the correct type in all cases.
+available.  The obsolete macro @code{AC_TYPE_SIGNAL}
+(@pxref{AC_TYPE_SIGNAL}) can be used to establish the correct type in
+all cases.
+
+In most cases, it is more robust to use @code{sigaction} when it is
+available, rather than @code{signal}.
 
 @item @code{snprintf}
 @c @fuindex snprintf
@@ -6222,28 +6227,6 @@ Define @code{pid_t} to a suitable type, if standard 
headers do not
 define it.
 @end defmac
 
address@hidden
address@hidden AC_TYPE_SIGNAL
address@hidden
address@hidden RETSIGTYPE
address@hidden
-If @file{signal.h} declares @code{signal} as returning a pointer to a
-function returning @code{void}, define @code{RETSIGTYPE} to be
address@hidden; otherwise, define it to be @code{int}.
-
-Define signal handlers as returning type @code{RETSIGTYPE}:
-
address@hidden
address@hidden
-RETSIGTYPE
-hup_handler ()
address@hidden
address@hidden
address@hidden
address@hidden group
address@hidden example
address@hidden defmac
-
 @anchor{AC_TYPE_SIZE_T}
 @defmac AC_TYPE_SIZE_T
 @acindex{TYPE_SIZE_T}
@@ -19220,7 +19203,8 @@ issue.
 
 @defmac AC_RETSIGTYPE
 @acindex{RETSIGTYPE}
-Replaced by @code{AC_TYPE_SIGNAL} (@pxref{AC_TYPE_SIGNAL}).
+Replaced by @code{AC_TYPE_SIGNAL} (@pxref{AC_TYPE_SIGNAL}), which itself
+is obsolete when assuming C89 or better.
 @end defmac
 
 @defmac AC_RSH
@@ -19480,6 +19464,31 @@ AC_RUN_IFELSE(
 @xref{Runtime}.
 @end defmac
 
address@hidden
address@hidden AC_TYPE_SIGNAL
address@hidden
address@hidden RETSIGTYPE
address@hidden
+If @file{signal.h} declares @code{signal} as returning a pointer to a
+function returning @code{void}, define @code{RETSIGTYPE} to be
address@hidden; otherwise, define it to be @code{int}.  These days, it is
+portable to assume C89, and that signal handlers return @code{void},
+without needing to use this macro or @code{RETSIGTYPE}.
+
+When targetting older K&R C, it is possible to define signal handlers as
+returning type @code{RETSIGTYPE}, and omit a return statement:
+
address@hidden
address@hidden
+RETSIGTYPE
+hup_handler ()
address@hidden
address@hidden
address@hidden
address@hidden group
address@hidden example
address@hidden defmac
+
 @defmac AC_UID_T
 @acindex{UID_T}
 Replaced by @code{AC_TYPE_UID_T} (@pxref{AC_TYPE_UID_T}).
diff --git a/lib/autoconf/libs.m4 b/lib/autoconf/libs.m4
index 45bfc6c..429918c 100644
--- a/lib/autoconf/libs.m4
+++ b/lib/autoconf/libs.m4
@@ -217,7 +217,7 @@ _ACEOF
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
     esac
     case $ac_im_usrlibdir in
-       /usr/lib | /lib) ;;
+       /usr/lib | /usr/lib64 | /lib | /lib64) ;;
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
     esac
   fi
diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4
index 866bdca..50a489c 100644
--- a/lib/autoconf/types.m4
+++ b/lib/autoconf/types.m4
@@ -1,8 +1,8 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Type related macros: existence, sizeof, and structure members.
 #
-# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007 Free Software
-# Foundation, Inc.
+# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2008 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
@@ -693,8 +693,10 @@ AC_DEFUN([_AC_TYPE_UNSIGNED_INT],
 # AC_TYPE_SIGNAL
 # --------------
 # Note that identifiers starting with SIG are reserved by ANSI C.
-AN_FUNCTION([signal],  [AC_TYPE_SIGNAL])
-AC_DEFUN([AC_TYPE_SIGNAL],
+# C89 requires signal handlers to return void; only K&R returned int;
+# modern code does not need to worry about using this macro (not to
+# mention that sigaction is better than signal).
+AU_DEFUN([AC_TYPE_SIGNAL],
 [AC_CACHE_CHECK([return type of signal handlers], ac_cv_type_signal,
 [AC_COMPILE_IFELSE(
 [AC_LANG_PROGRAM([#include <sys/types.h>
@@ -706,7 +708,8 @@ AC_DEFUN([AC_TYPE_SIGNAL],
 AC_DEFINE_UNQUOTED(RETSIGTYPE, $ac_cv_type_signal,
                   [Define as the return type of signal handlers
                    (`int' or `void').])
-])
+], [your code may safely assume C89 semantics that RETSIGTYPE is void.
+Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])
 
 
 ## ------------------------ ##


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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