From d3982b7128d0de2c67d939231eebedd4b35fb536 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Thu, 15 Nov 2001 18:11:24 +0000 Subject: 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 --- libiberty/configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libiberty/configure.in') 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. -- cgit v1.1