diff options
| author | Rod Whitby <rod@whitby.id.au> | 2006-12-11 21:47:16 +0000 |
|---|---|---|
| committer | Rod Whitby <rod@whitby.id.au> | 2006-12-11 21:47:16 +0000 |
| commit | 50725900c4dfcdf9d73d8462df510832d723e1a5 (patch) | |
| tree | 962342b2a97b097a65e8a879c4b90131ec7c59ea | |
| parent | ba04001af57fd3ce90494c750e273bd715d775db (diff) | |
| parent | ce848328aa4730b8c4b9f570ae4714bbbe515f48 (diff) | |
merge of d0a4ca99d60eab8fc98b8cfdcc8d85e1a07bb5ce
and dc5138ded31c9c1aacd6c0bf37d83ec11d95747c
| -rw-r--r-- | contrib/site-conf/aclocal.m4 | 17 | ||||
| -rw-r--r-- | contrib/site-conf/configure.ac | 2 | ||||
| -rw-r--r-- | contrib/site-conf/m4/gnu.m4 | 35 |
3 files changed, 51 insertions, 3 deletions
diff --git a/contrib/site-conf/aclocal.m4 b/contrib/site-conf/aclocal.m4 index 8d4b7eed8c..f415403d6d 100644 --- a/contrib/site-conf/aclocal.m4 +++ b/contrib/site-conf/aclocal.m4 @@ -1,2 +1,15 @@ -dnl # local file.. -m4_include(builtin.m4) +# generated automatically by aclocal 1.9.6 -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_include([m4/builtin.m4]) +m4_include([m4/gnu.m4]) diff --git a/contrib/site-conf/configure.ac b/contrib/site-conf/configure.ac index 0f08732a08..283008a4a7 100644 --- a/contrib/site-conf/configure.ac +++ b/contrib/site-conf/configure.ac @@ -6,6 +6,6 @@ AC_PREREQ([2.60]) AC_GNU_SOURCE OE_CHECK_BUILTIN - +OE_CHECK_GNU AC_OUTPUT([]) 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 +]) |
