# HG changeset patch # User stephent # Date 1173804518 0 # Node ID cfc59907fb1e8fcf7f96db2d2a0f7b21794b947a # Parent a4663d9754ac4bb428e4a1ee21704e6967779bf3 [xemacs-hg @ 2007-03-13 16:48:37 by stephent] Autoconf improvements. <87fy89ay3n.fsf@uwakimon.sk.tsukuba.ac.jp> diff -r a4663d9754ac -r cfc59907fb1e ChangeLog --- a/ChangeLog Mon Mar 12 22:51:14 2007 +0000 +++ b/ChangeLog Tue Mar 13 16:48:38 2007 +0000 @@ -1,3 +1,8 @@ +2006-12-24 Stephen J. Turnbull + + * 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 * configure.ac (canna): diff -r a4663d9754ac -r cfc59907fb1e configure.ac --- a/configure.ac Mon Mar 12 22:51:14 2007 +0000 +++ b/configure.ac Tue Mar 13 16:48:38 2007 +0000 @@ -2877,6 +2877,13 @@ 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_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 + does not define.])]) dnl not AC_CHECK_TYPE; lisp.h does hairy conditional typedef if test "$ac_cv_header_inttypes_h" != "yes"; then