* amd/sun_map.c (sun_entry2amd): isspace takes an int, not a char.
authorErez Zadok <ezk@cs.sunysb.edu>
Wed, 14 Sep 2005 00:26:42 +0000 (00:26 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Wed, 14 Sep 2005 00:26:42 +0000 (00:26 +0000)
* configure.in: keep a dummy unused AM_PROG_LEX, because old
Automake (1.6.3) looks for it if you refer to LEX in your
Makefile.am files.  Silly thing, fixed in newer versions of
Automake (1.9.2).

ChangeLog
amd/sun_map.c
configure.in

index ea77a805872af3f48ff0b9601743fd6e2416194d..b976fcaf830b389c28942ebb4df3db059198d58e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-09-13  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * amd/sun_map.c (sun_entry2amd): isspace takes an int, not a char.
+
+       * configure.in: keep a dummy unused AM_PROG_LEX, because old
+       Automake (1.6.3) looks for it if you refer to LEX in your
+       Makefile.am files.  Silly thing, fixed in newer versions of
+       Automake (1.9.2).
+
 2005-09-11  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * Makefile.am (EXTRA_DIST_M4): add prog_{lex,yacc}.m4 to distro.
index d71d41cc8115e37dea28dc16155c0e6522e57e1b..79992c9df3a184594ff999ad2c6e2437c42dc4e5 100644 (file)
@@ -533,7 +533,7 @@ sun_entry2amd(const char *key, const char *s_entry_str)
   /* Make sure there are no trailing white spaces or '\n'. */
   xstrlcpy(line_buff, s_entry_str, sizeof(line_buff));
   ws = strlen(line_buff) - 1;
-  while (ws >= 0 && (isspace(line_buff[ws]) || line_buff[ws] == '\n')) {
+  while (ws >= 0 && (isspace((int)line_buff[ws]) || line_buff[ws] == '\n')) {
     line_buff[ws--] = '\0';
   }
   
index 7068a7c50392dfad0290f2520ca3e5e3d9c79509..ca04bdcdf99aa0688b1ff87a623fec0f8079f582 100644 (file)
@@ -55,7 +55,7 @@ AH_BOTTOM([
 dnl
 dnl AC_CONFIG_AUX_DIR(m4)
 AC_PREREQ(2.52)
-AC_REVISION($Revision: 1.113 $)
+AC_REVISION($Revision: 1.114 $)
 AC_COPYRIGHT([Copyright (c) 1997-2005 Erez Zadok])
 dnl find out system type
 AC_MSG_NOTICE(*** SYSTEM TYPES ***)
@@ -191,8 +191,13 @@ dnl AC_PROG_LN_S
 dnl AC_PROG_RANLIB
 dnl AC_PROG_YACC
 AMU_PROG_YACC
-dnl AM_PROG_LEX
 AMU_PROG_LEX
+dnl I have to keep a unused dummy AM_PROG_LEX here, because old Automake
+dnl (1.6.3) looks for it if you refer to LEX in your Makefile.am files.
+dnl Silly thing, fixed in newer versions of Automake (1.9.2).
+if test 0 != 0 ; then
+AM_PROG_LEX
+fi
 
 dnl ======================================================================
 dnl Generic Program Checks