Skip to content

Commit

Permalink
BUILD: Add checks for intptr_t / uintptr_t
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Apr 20, 2011
1 parent 513e2d1 commit 6aabfca
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
14 changes: 14 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
/* Define if you have the iconv() function and it works. */
#undef HAVE_ICONV

/* Define to 1 if the system has the type `intptr_t'. */
#undef HAVE_INTPTR_T

/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H

Expand Down Expand Up @@ -96,6 +99,9 @@
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

/* Define to 1 if the system has the type `uintptr_t'. */
#undef HAVE_UINTPTR_T

/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

Expand Down Expand Up @@ -154,3 +160,11 @@

/* Define to empty if `const' does not conform to ANSI C. */
#undef const

/* Define to the type of a signed integer type wide enough to hold a pointer,
if such a type exists, and if the system does not define it. */
#undef intptr_t

/* Define to the type of an unsigned integer type wide enough to hold a
pointer, if such a type exists, and if the system does not define it. */
#undef uintptr_t
13 changes: 8 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ if test "x$with_werror" = "xyes"; then
WERROR="-Werror"
fi

AC_C_CONST
AC_HEADER_STDC

AC_C_BIGENDIAN()

AC_TYPE_INTPTR_T
AC_TYPE_UINTPTR_T

AC_CHECK_LIB([m], [cos])
AC_CHECK_FUNCS([fabs])
AC_CHECK_FUNCS([fmin])
Expand Down Expand Up @@ -68,11 +76,6 @@ if test -n "$nozlib"; then
AC_MSG_ERROR([zlib is required and could not be found])
fi

AC_C_CONST
AC_HEADER_STDC

AC_C_BIGENDIAN()

AM_ICONV

if test "x$am_cv_func_iconv" != "xyes"; then
Expand Down

0 comments on commit 6aabfca

Please sign in to comment.