diff options
author | Jeffrey A Law <law@cygnus.com> | 2001-11-15 18:11:24 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2001-11-15 11:11:24 -0700 |
commit | d3982b7128d0de2c67d939231eebedd4b35fb536 (patch) | |
tree | 3ec44408c0caf6a35fc908c7b6a6e08021a49721 /libiberty/configure.in | |
parent | 7ddfb6510be7c234613740311fa1d2b5974d02dc (diff) | |
download | gcc-d3982b7128d0de2c67d939231eebedd4b35fb536.zip gcc-d3982b7128d0de2c67d939231eebedd4b35fb536.tar.gz gcc-d3982b7128d0de2c67d939231eebedd4b35fb536.tar.bz2 |
config.in (HAVE_UINTPTR_T): Provide autoconf stub.
* config.in (HAVE_UINTPTR_T): Provide autoconf stub.
* configure.in (HAVE_UINTPTR_T): Test for system defining
uintptr_t and define HAVE_UINTPTR_T appropriately.
* regex.c (uintptr_t): Do not provide a definition if the
system provided one.
From-SVN: r47068
Diffstat (limited to 'libiberty/configure.in')
-rw-r--r-- | libiberty/configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libiberty/configure.in b/libiberty/configure.in index 505b520..7fc4856 100644 --- a/libiberty/configure.in +++ b/libiberty/configure.in @@ -126,6 +126,18 @@ AC_HEADER_TIME libiberty_AC_DECLARE_ERRNO +AC_MSG_CHECKING(for uintptr_t) +AC_EGREP_HEADER(uintptr_t, sys/types.h, + libiberty_cv_uintptr_t=yes, libiberty_cv_uintptr_t=no) + +if test $libiberty_cv_uintptr_t = yes +then + AC_DEFINE(HAVE_UINTPTR_T) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + # This is the list of functions which libiberty will provide if they # are not available on the host. |