aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/site-conf/m4
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2006-12-11 21:37:47 +0000
committerHolger Freyther <zecke@selfish.org>2006-12-11 21:37:47 +0000
commitce848328aa4730b8c4b9f570ae4714bbbe515f48 (patch)
tree962342b2a97b097a65e8a879c4b90131ec7c59ea /contrib/site-conf/m4
parent17f8633debabec561de2d61ae997e1957235494b (diff)
downloadopenembedded-ce848328aa4730b8c4b9f570ae4714bbbe515f48.tar.gz
openembedded-ce848328aa4730b8c4b9f570ae4714bbbe515f48.tar.bz2
openembedded-ce848328aa4730b8c4b9f570ae4714bbbe515f48.zip
Add gnu.m4 which has a copy of the libiberty calls from binutils.m4
Make sure we can regenerate the values for binutils which koen just added to OpenEmbedded.
Diffstat (limited to 'contrib/site-conf/m4')
-rw-r--r--contrib/site-conf/m4/gnu.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/contrib/site-conf/m4/gnu.m4 b/contrib/site-conf/m4/gnu.m4
new file mode 100644
index 0000000000..1f9331e2ef
--- /dev/null
+++ b/contrib/site-conf/m4/gnu.m4
@@ -0,0 +1,35 @@
+# Collection of binutils, gcc, glibc
+
+
+AC_DEFUN([BINUTILS_CHECK_UINT64],
+[AC_TRY_COMPILE(
+[#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif],
+[extern uint64_t foo;],
+liberty_cv_uint64=uint64_t,
+[AC_TRY_COMPILE(
+[#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#ifndef CHAR_BIT
+#define CHAR_BIT 8
+#endif],
+[extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];],
+liberty_cv_uint64="unsigned long",
+[AC_TRY_COMPILE(
+[#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#ifndef CHAR_BIT
+#define CHAR_BIT 8
+#endif],
+[extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];],
+liberty_cv_uint64="unsigned long long", liberty_cv_uint64=none)])])])
+
+AC_DEFUN([OE_CHECK_GNU],
+[
+AC_CHECK_SIZEOF([int])
+AC_CHECK_TYPE(uintptr_t, unsigned long)
+BINUTILS_CHECK_UINT64
+])