[balsa/wip/gtk4: 137/351] Test for <locale.h> and set HAVE_LOCALE_H if found



commit cd301b087d93f0599e6444a23429097467ac00a3
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Jan 26 16:57:55 2018 -0500

    Test for <locale.h> and set HAVE_LOCALE_H if found
    
        * meson.build: Test for <locale.h> and set HAVE_LOCALE_H if
        found.

 ChangeLog   |    5 +++++
 meson.build |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c280465..90b8c95 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-01-26  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       * meson.build: test for <locale.h> and set HAVE_LOCALE_H if
+       found.
+
 2018-01-21  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Meson build system changes to mirror the autotools changes in
diff --git a/meson.build b/meson.build
index 7a06c34..01ef30a 100644
--- a/meson.build
+++ b/meson.build
@@ -547,6 +547,11 @@ if not compiler.has_header('zlib.h')
   error('zlib library required')
 endif
 
+if compiler.has_header('locale.h')
+  conf.set('HAVE_LOCALE_H', 1,
+    description : 'Define to 1 if you have the <locale.h> header')
+endif
+
 # set more warnings.
 #
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]