[balsa/wip/gmime3: 164/197] meson.build: Fix the definition of HAVE_CTIME_R
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gmime3: 164/197] meson.build: Fix the definition of HAVE_CTIME_R
- Date: Wed, 23 May 2018 21:26:09 +0000 (UTC)
commit f429113ae4cc98b999a7a9e73891ce87f6efcc1e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Jan 26 17:25:40 2018 -0500
meson.build: Fix the definition of HAVE_CTIME_R
It was always defined, to 0 if ctime_r is not available, which is not
what autotools does.
* meson.build: fix the definition of HAVE_CTIME_R.
ChangeLog | 4 ++++
meson.build | 7 ++++---
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cb2d2df..701e8c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2018-01-26 Peter Bloomfield <pbloomfield bellsouth net>
+ * meson.build: fix the definition of HAVE_CTIME_R.
+
+2018-01-26 Peter Bloomfield <pbloomfield bellsouth net>
+
* meson.build: test for <locale.h> and set HAVE_LOCALE_H if
found.
diff --git a/meson.build b/meson.build
index 1658936..fc41db3 100644
--- a/meson.build
+++ b/meson.build
@@ -551,9 +551,10 @@ conf.set('HAVE_DECL_CTIME_R',
compiler.has_header_symbol('time.h', 'ctime_r') ? 1 : 0,
description : 'Define to 1 if you have the declaration of ctime_r, and to 0 if you do not.')
-conf.set('HAVE_CTIME_R',
- compiler.has_function('ctime_r') ? 1 : 0,
- description : 'Define to 1 if you have the ctime_r function.')
+if compiler.has_function('ctime_r')
+ conf.set('HAVE_CTIME_R', 1,
+ description : 'Define to 1 if you have the ctime_r function.')
+endif
if not compiler.has_header('zlib.h')
error('zlib library required')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]