/[autoconf]/autoconf/lib/autoconf/headers.m4
ViewVC logotype

Diff of /autoconf/lib/autoconf/headers.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28 by akim, Sun Oct 27 18:21:32 2002 UTC revision 1.29 by akim, Sun Oct 27 18:23:14 2002 UTC
# Line 586  fi Line 586  fi
586    
587  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
588    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
589    AC_TRY_RUN(    AC_RUN_IFELSE([AC_LANG_SOURCE(
590  [#include <ctype.h>  [[#include <ctype.h>
591  #if ((' ' & 0x0FF) == 0x020)  #if ((' ' & 0x0FF) == 0x020)
592  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')  # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
593  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))  # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
594  #else  #else
595  # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \  # define ISLOWER(c) \
596                       (('a' <= (c) && (c) <= 'i') \
597                       || ('j' <= (c) && (c) <= 'r') \                       || ('j' <= (c) && (c) <= 'r') \
598                       || ('s' <= (c) && (c) <= 'z'))                       || ('s' <= (c) && (c) <= 'z'))
599  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))  # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
# Line 608  main () Line 609  main ()
609          || toupper (i) != TOUPPER (i))          || toupper (i) != TOUPPER (i))
610        exit(2);        exit(2);
611    exit (0);    exit (0);
612  }], , ac_cv_header_stdc=no, :)  }]])], , ac_cv_header_stdc=no, :)
613  fi])  fi])
614  if test $ac_cv_header_stdc = yes; then  if test $ac_cv_header_stdc = yes; then
615    AC_DEFINE(STDC_HEADERS, 1,    AC_DEFINE(STDC_HEADERS, 1,

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26