CVS update by stephent xemacs ...

xemacs-cvs at xemacs.org xemacs-cvs at xemacs.org
Tue Mar 13 12:48:40 EDT 2007


  User: stephent
  Date: 07/03/13 17:48:40

  Modified:    xemacs   ChangeLog configure.ac
Log:
Autoconf improvements. <87fy89ay3n.fsf at uwakimon.sk.tsukuba.ac.jp>

Revision  Changes    Path
1.523     +5 -0      XEmacs/xemacs/ChangeLog

Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.522
retrieving revision 1.523
diff -u -p -r1.522 -r1.523
--- ChangeLog	2007/02/15 16:11:52	1.522
+++ ChangeLog	2007/03/13 16:48:37	1.523
@@ -1,3 +1,8 @@
+2006-12-24  Stephen J. Turnbull  <stephen at xemacs.org>
+
+	* configure.ac (ar): Sun has it but hides it; check for it.
+	(ssize_t): Use the modern check and document todo.
+
 2007-02-16  Stephen J. Turnbull  <stephen at xemacs.org>
 
 	* configure.ac (canna):



1.56      +14 -2     XEmacs/xemacs/configure.ac

Index: configure.ac
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/configure.ac,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -p -r1.55 -r1.56
--- configure.ac	2007/02/15 16:11:52	1.55
+++ configure.ac	2007/03/13 16:48:38	1.56
@@ -2877,6 +2877,13 @@ dnl Some other nice autoconf tests.  If 
 dnl should make an entry in src/config.h, do not forget to add an
 dnl #undef clause to src/config.h.in for autoconf to modify.
 
+dnl Sun likes to hide these utilities.  Steve Baur asked that we make
+dnl the failure occur at configure time, not at use time.
+AC_CHECK_PROG(AR,ar,ar,not_found)
+if test "$AR" = "not_found"; then
+  XE_DIE(["ar not found -- is PATH set correctly?"])
+fi
+dnl These tests don't necessarily check that the program exists.
 AC_PROG_RANLIB
 AC_PROG_INSTALL
 AC_PROG_YACC
@@ -2937,8 +2944,13 @@ AC_TYPE_PID_T
 AC_TYPE_UID_T
 AC_TYPE_MODE_T
 AC_TYPE_OFF_T
-dnl #### deprecated 2.13-ism
-AC_CHECK_TYPE(ssize_t, int)
+dnl #### Translated from deprecated 2.13-ism.
+dnl We probably want to DTRT with #ifdef HAVE_SSIZE_T in src/config.h.in.
+dnl Specifically, we should typedef st sizeof(ssize_t) == sizeof(size_t).
+AC_CHECK_TYPE([ssize_t],,
+              [AC_DEFINE_UNQUOTED([ssize_t], [int],
+                                  [Define to `int' if
+                                   <sys/types.h> does not define.])])
 
 dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef
 if test "$ac_cv_header_inttypes_h" != "yes"; then





More information about the XEmacs-CVS mailing list