[PATCH] configure: pass HAVE_TIMEGM to build
authorTomi Ollila <tomi.ollila@iki.fi>
Fri, 22 Jan 2016 22:01:53 +0000 (00:01 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:20:55 +0000 (16:20 -0700)
05/27e735c43c61a0b8a407134b38fc0a9665ff52 [new file with mode: 0644]

diff --git a/05/27e735c43c61a0b8a407134b38fc0a9665ff52 b/05/27e735c43c61a0b8a407134b38fc0a9665ff52
new file mode 100644 (file)
index 0000000..0bcea3f
--- /dev/null
@@ -0,0 +1,86 @@
+Return-Path: <too@guru-group.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 642926DE0C42\r
+ for <notmuch@notmuchmail.org>; Fri, 22 Jan 2016 14:01:48 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.064\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.064 tagged_above=-999 required=5 tests=[AWL=0.604, \r
+ RP_MATCHES_RCVD=-0.55, T_HEADER_FROM_DIFFERENT_DOMAINS=0.01]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id xzAeshWCelkh for <notmuch@notmuchmail.org>;\r
+ Fri, 22 Jan 2016 14:01:45 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 79D286DE0B38\r
+ for <notmuch@notmuchmail.org>; Fri, 22 Jan 2016 14:01:45 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id D82E0100090; Sat, 23 Jan 2016 00:01:54 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Cc: tomi.ollila@iki.fi\r
+Subject: [PATCH] configure: pass HAVE_TIMEGM to build\r
+Date: Sat, 23 Jan 2016 00:01:53 +0200\r
+Message-Id: <1453500113-13315-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.6.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 22 Jan 2016 22:01:48 -0000\r
+\r
+Checking the existence of timegm() function and setting\r
+configure internal variable ${have_timegm} was done, but\r
+actually defining HAVE_TIMEGM in build was not done --\r
+meaning that compat timegm() was always part of final\r
+notmuch binaries.\r
+---\r
+ configure | 6 ++++++\r
+ 1 file changed, 6 insertions(+)\r
+\r
+diff --git a/configure b/configure\r
+index abd28da..a79f6bd 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -969,6 +969,10 @@ HAVE_STRCASESTR = ${have_strcasestr}\r
+ # build its own version)\r
+ HAVE_STRSEP = ${have_strsep}\r
\r
++# Whether the timegm function is available (if not, then notmuch will\r
++# build its own version)\r
++HAVE_TIMEGM = ${have_timegm}\r
++\r
+ # Whether struct dirent has d_type (if not, then notmuch will use stat)\r
+ HAVE_D_TYPE = ${have_d_type}\r
\r
+@@ -1041,6 +1045,7 @@ CONFIGURE_CFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS)      \\\r
+                  \$(VALGRIND_CFLAGS)                                   \\\r
+                  -DHAVE_STRCASESTR=\$(HAVE_STRCASESTR)                 \\\r
+                  -DHAVE_STRSEP=\$(HAVE_STRSEP)                         \\\r
++                 -DHAVE_TIMEGM=\$(HAVE_TIMEGM)                         \\\r
+                  -DHAVE_D_TYPE=\$(HAVE_D_TYPE)                         \\\r
+                  -DSTD_GETPWUID=\$(STD_GETPWUID)                       \\\r
+                  -DSTD_ASCTIME=\$(STD_ASCTIME)                         \\\r
+@@ -1054,6 +1059,7 @@ CONFIGURE_CXXFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS)    \\\r
+                    \$(VALGRIND_CFLAGS) \$(XAPIAN_CXXFLAGS)             \\\r
+                    -DHAVE_STRCASESTR=\$(HAVE_STRCASESTR)               \\\r
+                    -DHAVE_STRSEP=\$(HAVE_STRSEP)                       \\\r
++                   -DHAVE_TIMEGM=\$(HAVE_TIMEGM)                       \\\r
+                    -DHAVE_D_TYPE=\$(HAVE_D_TYPE)                       \\\r
+                    -DSTD_GETPWUID=\$(STD_GETPWUID)                     \\\r
+                    -DSTD_ASCTIME=\$(STD_ASCTIME)                       \\\r
+-- \r
+1.9.3\r
+\r