From b600d6aa876b322249cf8f50fa432a78bbeb4054 Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Wed, 14 Sep 2005 00:26:42 +0000 Subject: [PATCH] * 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). --- ChangeLog | 9 +++++++++ amd/sun_map.c | 2 +- configure.in | 9 +++++++-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ea77a80..b976fca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-09-13 Erez Zadok + + * 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 * Makefile.am (EXTRA_DIST_M4): add prog_{lex,yacc}.m4 to distro. diff --git a/amd/sun_map.c b/amd/sun_map.c index d71d41c..79992c9 100644 --- a/amd/sun_map.c +++ b/amd/sun_map.c @@ -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'; } diff --git a/configure.in b/configure.in index 7068a7c..ca04bdc 100644 --- a/configure.in +++ b/configure.in @@ -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 -- 2.43.0