Changeset 238 for trunk/aclocal.m4


Ignore:
Timestamp:
Jul 15, 2009, 8:08:00 PM (13 years ago)
Author:
katerina
Message:

Fix timezone format in email date header (ticket #158).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r236 r238  
    20642064])# AC_PROG_LD_GNU
    20652065
     2066# SH_STRFTIME_Z
     2067# -------------
     2068# check whether strftime supports %z
     2069AC_DEFUN([SH_STRFTIME_Z],
     2070[
     2071AC_MSG_CHECKING([whether strftime supports %z])
     2072AC_TRY_RUN([
     2073#include <time.h>
     2074#include <string.h>
     2075int main()
     2076{
     2077   struct tm tm;
     2078   char tt[64];
     2079   memset(&tm, 0, sizeof(tm));
     2080   strftime(tt, sizeof(tt), "%z", &tm);
     2081
     2082   if (strlen(tt) != 5) return 1;
     2083   return 0;
     2084}
     2085],
     2086[
     2087AC_MSG_RESULT([yes])
     2088AC_DEFINE(HAVE_STRFTIME_Z, 1, [strftime supports %z])
     2089],
     2090[
     2091AC_MSG_RESULT([no])
     2092],[
     2093AC_MSG_RESULT([no])
     2094])])
     2095
     2096
     2097
     2098
     2099
    20662100dnl *-*wedit:notab*-*  Please keep this as the last line.
    20672101
Note: See TracChangeset for help on using the changeset viewer.