[beast: 2/57] SFI: create sysconfig.h and provide BSE_SIZEOF_SYS_TYPESH_UINT



commit f00c4c7608f6989d24444e9dc428a400235d24a0
Author: Tim Janik <timj gnu org>
Date:   Tue Jul 4 13:01:20 2017 +0200

    SFI: create sysconfig.h and provide BSE_SIZEOF_SYS_TYPESH_UINT
    
    Signed-off-by: Tim Janik <timj gnu org>

 configure.ac       |    6 ++++++
 sfi/.gitignore     |    5 +++--
 sfi/sysconfig.h.in |    9 +++++++++
 3 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2be3333..0cc91e9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -431,6 +431,11 @@ AC_DEFUN([MC_BSE_REQUIREMENTS],
     AC_SUBST(BSE_PC_CFLAGS)
     AC_SUBST(BSE_PC_LIBS)
 
+    # == sizeof ==
+    AC_CHECK_SIZEOF(uint, 0, [#include <sys/types.h>])
+    BSE_SIZEOF_SYS_TYPESH_UINT="$ac_cv_sizeof_uint"
+    AC_SUBST(BSE_SIZEOF_SYS_TYPESH_UINT)
+
     dnl # --- sizeof types ---
     GLIB_SIZEOF([#include <pthread.h>], pthread_mutex_t, pth_mutex_t)
     SFI_SIZEOF_PTH_MUTEX_T="$glib_cv_sizeof_pth_mutex_t"
@@ -689,6 +694,7 @@ Makefile
 data/Makefile
 data/beast.applications
 sfi/Makefile
+sfi/sysconfig.h
 sfi/tests/Makefile
 bse/bseconfig.h
 bse/Makefile
diff --git a/sfi/.gitignore b/sfi/.gitignore
index 88e0393..00823cb 100644
--- a/sfi/.gitignore
+++ b/sfi/.gitignore
@@ -1,2 +1,3 @@
-libsfi.la
-sfidl
+/libsfi.la
+/sfidl
+/sysconfig.h
diff --git a/sfi/sysconfig.h.in b/sfi/sysconfig.h.in
new file mode 100644
index 0000000..5dc497f
--- /dev/null
+++ b/sfi/sysconfig.h.in
@@ -0,0 +1,9 @@
+// Generated via beast/configure.ac
+
+#ifndef __BSE_SYSCONFIG_H__
+#define __BSE_SYSCONFIG_H__
+
+// system specifics
+#define BSE_SIZEOF_SYS_TYPESH_UINT         @BSE_SIZEOF_SYS_TYPESH_UINT@
+
+#endif /* __BSE_SYSCONFIG_H__ */


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